Create Folder in server

BeToXBeToX Member Posts: 2
edited 2012-11-27 in NAV Three Tier
Hi guys,

I have a problem with Createfolder()

The server have Dynamics NAV 2009 R2 and we use RTC Client. We have a report that import a txt file (The file is in the server in c:\files) and after importing we want to créate a new folder with the date like c:\files\20121212 and move the file.

The import was fine but at the end shows a message "The secified path is invalid". This is because the folder its créate in the client and because of that shows the error.

Does anyone know to créate the folder in the server?

this is my code:

IF NOT auto.FolderExists(NewPath) THEN BEGIN
auto.CreateFolder(NewPath)

Thanks in advance,
Sign In or Register to comment.