Computing.Net > Forums > Unix > BAT file - move command

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

Reply to Message Icon

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.

Any suggestions please...

Skumar.



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: August 22, 2008 at 08:17:18 Pacific
Reply:

You are in the wrong forum. Try the Programming forum where a lot of batch file question are answered.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: BAT file - move command

invoke bat file from FTP Urgent! www.computing.net/answers/unix/invoke-bat-file-from-ftp-urgent/7088.html

To run the bat file www.computing.net/answers/unix/to-run-the-bat-file/5585.html

Find file & execute command www.computing.net/answers/unix/find-file-amp-execute-command/6624.html