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

AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
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

Categories

HOME
c++11
merge
jax-rs
camera
rom
jtextpane
recordrtc
endeca
stellar.js
enterprise-architect
forgot-password
template-engine
google-picker
symbols
guzzle
cgbitmapcontext
angular-routing
event-store
resourcebundle
jackson-modules
angularjs-components
has-and-belongs-to-many
genexus-sd
spotipy
sqlpackage
google-cast
autodesk-designautomation
send
utorrent
android-sugarorm
papaparse
sammy.js
keras-layer
xajax
python-pptx
opensmpp
magento-1.9.3
sharp-snmp
subclipse
oracle-service-bus
clang++
apache-spark-dataset
uiimage
strftime
opennms
mongotemplate
google-cse
corruption
flyout
django-1.10
rmongo
slackware
async.js
mongodb-php
jodd
nservicebus5
riot
spreadjs
yajsw
database-relations
kendo-upload
assertion
r-package
forwarding
batik
jsvc
mraid
shopizer
rapidsvn
metatrader5
human-computer-interface
kissfft
xml-dsig
alternate
amslidemenu
sphinxql
mvc-editor-templates
sqlclr
cakephp-1.2
subproject
thttpd
fitbounds
entitydatasource
cuteeditor
cruisecontrol.rb
zend-rest
opml
lobo-cobra
fdf
unmanagedresources
commercial-application

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