Hi Folks,
Does anyone know how to delete a external file within Navision. Everytime i run a dataport to export records and if the file already exist on my C: drive system gives a message 'File already exist. Do you want to overwrite'. I want to delete the file evertime i run the dataport.
Has anyone done this kind of modification. Any help is really appreciated.
Thanks
Best regards
Suresh.
0
Comments
Best regards
Suresh.
First step: delete the existing file
example: ERASE('c:\Testfile.txt');
Second step: Launch the dataport
example: dataport.run(50000)
Check out: http://www.mbsonline.org/forum/topic.asp?TOPIC_ID=9660
This way the user is "notified" of a possible mistake!
If it was hard to write, it should be hard to understand."
really nice code - works well. But it doesn´t work if I call it via Navision batch. At least in my Navision 3.7.
The batch ist stopped and is waiting for input (overwrite? Y/N). Just like your code ist ignored.
Any ideas?!