THANKS, it works, but when my files are moved, and in the next repeat loop processing
navision displays a exeption: the file "file name" already exists..
is what I can add a control on the existence of the file before the transfer??
is what I can add a control to verify the existence of the file, if there is no file transfer, the program stops, it's possible??
Why dont you read some basic navision technical documents..
what project you have done so far and what you have learnt?
this forum is not a training institute or we are not partners to you..
You can use EXIST function to know if a file exists.
Maybe you can change a little the code changing destiny forlder file name.
TFile.RESET;
TFile.SETRANGE(Path,'c:\Origen');
TFile.SETRANGE("Is a file",TRUE);
IF TFile.FIND('-') THEN
REPEAT
DestinyPath:='c:\Destiny\'+DELCHR(Format(TODAY),'=','/')+'-'+DELCHR(Format(TIME),'=',':')+'-'+TFile.Name;
COPY(TFile.Path+'\'+TFile.Name,DestinyPath);
ERASE(TFile.Path+'\'+TFile.Name);
UNTIL TFile.NEXT=0;
I read a lot of paper on navision, but there are a few tips on the files I connet not, in addition, the forum has emissions improve the level of each user and to ask questions, thank you for your help, but if you're not a interrese help others, you're free
hi,
I have a small question about navision, I have a codeunit that can detect the presence on a text file in a directory, if I add a new file, it does not detect except that if I restart Navision.
my question is: I can improve this codeunit so that it can detect adding the new later file without reboot navision?
thanks..
Comments
navision displays a exeption: the file "file name" already exists..
is what I can add a control on the existence of the file before the transfer??
is what I can add a control to verify the existence of the file, if there is no file transfer, the program stops, it's possible??
what project you have done so far and what you have learnt?
this forum is not a training institute or we are not partners to you..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
You can use EXIST function to know if a file exists.
Maybe you can change a little the code changing destiny forlder file name.
Bye
thanks for your help..
@ Mr Mohana
I read a lot of paper on navision, but there are a few tips on the files I connet not, in addition, the forum has emissions improve the level of each user and to ask questions, thank you for your help, but if you're not a interrese help others, you're free
If you start asking all questions, you dont get chance to explore navision and learn..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I have a small question about navision, I have a codeunit that can detect the presence on a text file in a directory, if I add a new file, it does not detect except that if I restart Navision.
my question is: I can improve this codeunit so that it can detect adding the new later file without reboot navision?
thanks..