Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
BAT file - move command
Name: sforsasi Date: August 22, 2008 at 07:09:28 Pacific OS: XP CPU/Ram: 1 GB Product: MS
Comment:
Hi,
I would like to move files (if any) from one folder to another. I'm using the below command --
move /Y "C:\test\input\*.*" "C:\test\output\"
This one works fine if there are any files present. If there are no files present then I get the below error --
"The filename, directory name, or volume label syntax is incorrect."
Is there a way to execute this command only if there are any files in the folder? I tried using "IF" command but it doesn't help.
Summary: I really appreciate if some one please help me on this... I am using FTP from UNIX (Solaris) to send a file to a win2003 server. I need to invoke a bat file which is on this windows server after the ...
Summary: David does, however, make a good point that if you run this .bat file in Unix/Linux it will not run ;-) If, however, you are running it in DOS then if you type... backup.bat myparameter myotherparamet...
Summary: Your original "find . -type f filename -print " is an erroneous find command. If you want to: find all files named "automate.st" (assume 1 per directory) cd to the directory containing the file ...