x++


Creating a folder on fileSystem dynamics ax


i need to check if a folder exists in a particular location,if not then create that folder and save the appropriate file there.How can i acheive this using X++.
Please advice.
To check folder existence you can use WinApi::pathExists,
to create one WinApi::createDirectory or WinApi::createDirectoryPath:
str path = 'C:\\tmp\\aFolder';
;
if (!WinApi::pathExists(path))
{
WinApi::createDirectoryPath(path);
}
I have no idea what is meant by "the appropriate file", but have a look at the TextIO, BinaryIO or the other *IO classes.

Related Links

How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?
How can I set the Backgoundcolor of an AX2012 Action Pane Button
How to Edit address using X++ in AX 2012
Number sequence issue Ax 2012?
Find code that's running in a Batch Job
What is the _isMexican boolean for in the Global::Checkpower method?
AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria
Table: PrintMgmtSettings Field: Printjobsettings(Blob)
What happened to the hrplimittablerelationship table in ax-2012-r2?
Why is my changes ignored to releaseupdate scripts in dynamics ax 2012 r2
What is “old sys” exactly and why would I receive errors in 2012 because of a missing Macro?
How to filter records in line grid based on selected record in header grid?

Categories

HOME
cygwin
nunit
apache-spark-mllib
serialization
mstest
requirements
google-cloud-functions
database-normalization
soa
rom
switch-statement
scripting
cq5
3d-reconstruction
hpc
jquery-ui
nuget-package
performancepoint
sendgrid-api-v3
google-schemas
mod-security
mautic
naivebayes
azure-powershell
null-pointer
aws-sdk
forgot-password
identity-management
cfml
rubymotion
joptionpane
mongoid6
expressionengine3
itunes
datastax-enterprise-graph
deltaspike
linkedhashmap
android-maps-extensions
openwhisk
python-import
reverse
servicestack-text
xajax
mongoose-schema
p4merge
android-checkbox
apache-directory
openresty
corruption
aquamacs
azure-cli
yii2-user
avx
skin
oozie-coordinator
cmp
rmongo
donations
taocp
smartfoxserver
cubism.js
flex-monkey
xcode-server
observablecollection
stream-processing
turbo-prolog
yajsw
ellucian-scribe
state-restoration
page.js
sapscript
typemock
vacuum
apache-commons-daemon
matlab-deployment
osc
openbabel
addressing-mode
easyrtc
formview
genymotion-call
gii
reflector
xml-dsig
vsx
file-not-found
ui-select2
fb.ui
twisted.web
vfs
pyunit
correlated-subquery
stress
ikimagebrowserview
u2netdk
clrstoredprocedure
easyb
murmurhash
interop-domino
sifr3
fail-fast-fail-early
sqlobject
wspbuilder

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App