I am unable to get wildcards to work with these commands. Sample script below:
Month>MM
Day>DD
Year>YYYY
Let>CF_OVERWRITE=1
CopyFile>D:\Laserapps\Spool\Xactimed\EXPORTPOSTUB92*.*,D:\LASERAPPS\SPOOL\XACTIMED\BACKUP\UB92%YYYY%%MM%%DD%.TXT
rem>MoveFile>d:\laserapps\spool\xactimed\EXPORTPOSTUB92*,D:\LASERAPPS\SPOOL\UB92X\UB92X.TXT
I can only make this work if I code the exact filenames.
Any thoughts?
Wildcards in CopyFile or MoveFile
Moderators: JRL, Dorian (MJT support)
Replace the Macro Scheduler command with it's DOS equivalent:
cmd = WinNT/W2K/XP
command = Win9x/Me
cmd /k /?
Code: Select all
Run Program> cmd /c Copy D:\Laserapps\Spool\Xactimed\EXPORTPOSTUB92*.* D:\LASERAPPS\SPOOL\XACTIMED\BACKUP\UB92%YYYY%%MM%%DD%.TXT
Run Program> cmd /c Move D:\laserapps\spool\xactimed\EXPORTPOSTUB92* D:\LASERAPPS\SPOOL\UB92X\UB92X.TXT
command = Win9x/Me
cmd /k /?
Hi,
You can't move multiple files to a single file. If you want to move files, remove the filename from the target destination.
You can't move multiple files to a single file. If you want to move files, remove the filename from the target destination.
MJT Net Support
[email protected]
[email protected]