Dynamics AX
  RSS Feed  LinkedIn  Twitter
Want to turn you're data into a true asset? Ready to break free from the report factory?
Ready to gain true insights that are action focused for truly data informed decisions?
Want to do all of this across mutliple companies, instances of Dynamics and your other investments?
Hillstar Business Intelligence is the answer then! (www.HillstarBI.com)

Hillstar Business Intelligence for Microsoft Dynamics AX and NAV on Mobile, Desktop, Tablet


Let us prove to you how we can take the complexity out of the schema and truly enable users to answer the needed questions to run your business! Visit Hillstar Business Solutions at: www.HillstarBI.com

Wednesday, December 07, 2005

WinAPI::copyFile() Method

To continue on with my post about the WinAPI class I thought I would post about something I used today! The WinAPI::copyFile() method. This is a great little method, that came in handy for me today, when I had to copy files to a location from within X++. The Method looks something like this:

WinAPI::copyFile(str _strFile, str _newfile, [boolean _overwrite])

With Example as:

WinAPI::copyFile("c:\\test.txt","c:\\temp\\test.txt",true);

Look for more post soon!

Find a job at: www.DynamicsAXJobs.com

3 Comments:

Blogger papu said...

using WinAPI::copyfile() method is it possible to copy xml files(with overwritting).I tried with .txt.doc wtc,its working fine but has anybody tried for xml files????

5:40 AM  
Blogger christobaal said...

Thanks Brandon for this winapi copy tricks. That's usefull to me! Better than write twice the records ...

2 Papu : Xml files are nothing else than txt files ... thus it should work perfectly. Go on ! ^^

Shusss !
°J°c

10:21 AM  
Blogger Rahul said...

Hi All,
In addition to the copyFile(), there are a no. of methods that can be used regarding files and directory.
Like checking if the folder exists, if the file exists at a given path, creating a folder etc.

Rahul

3:12 AM  

Post a Comment

Links to this post:

Create a Link

<< Home


Copyright 2005-2011, J. Brandon George - All rights Reserved