Question about GetNewestFile
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 132
- Joined: Mon Dec 22, 2008 4:56 pm
- Location: St Augustine FL
Question about GetNewestFile
It it normal for the Result Var of GetNewestFile command to include the complete path and not just the file name?
Thank you in advance for all your help
Gil
Gil
Re: Question about GetNewestFile
Seems to be the norm. Use ExtractFileName> to extract the name sans the path.
Code: Select all
GetNewestFile>%temp_dir%*.txt,vFile
ExtractFileName>vFile,vFileName
-
- Pro Scripter
- Posts: 132
- Joined: Mon Dec 22, 2008 4:56 pm
- Location: St Augustine FL
Re: Question about GetNewestFile
JRL,
Thanks for your answer, but still having problem with this simple script
Also can you please tell me why the [Code] [/Code] does not work for me?
[code]GetNewestFile>C:\Alldocs\*.Docx,strNewFile
ExtractFileName>strNewFile,NewFile
MessageModal>NewFile
CopyFile>NewFile,C:\OldDocs\NewFile[/code]
Thanks for your answer, but still having problem with this simple script
Also can you please tell me why the [Code] [/Code] does not work for me?
[code]GetNewestFile>C:\Alldocs\*.Docx,strNewFile
ExtractFileName>strNewFile,NewFile
MessageModal>NewFile
CopyFile>NewFile,C:\OldDocs\NewFile[/code]
Thank you in advance for all your help
Gil
Gil
Re: Question about GetNewestFile
The problem with the script is probably because you strip off the path then when you try to copy the file the file is not found. Try doing the copyfile using the strNewFile variable.
Why the (code)...(/code) doesn't work I don't know. I logged in and edited your code and it still didn't work. Must be some setting in your user options. Perhaps you have "Disable BBCode" checked?
Why the (code)...(/code) doesn't work I don't know. I logged in and edited your code and it still didn't work. Must be some setting in your user options. Perhaps you have "Disable BBCode" checked?