Computing.Net > Forums > Programming > Batch Move - Undesired warning msg

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.

Batch Move - Undesired warning msg

Reply to Message Icon

Name: Brolon
Date: January 30, 2009 at 00:35:03 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

Hello everybody,

in a BAT file, I execute :

move %SRC% %DST%

If the source folder is empty, I received an undesired message :

"The filename, directory name or volume label syntax is incorrect".

Is there a mean to avoid this message to display ?

Thanks in advance.

Best regards.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: January 30, 2009 at 00:53:10 Pacific
Reply:

Try %SRC%\*.*


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: brolon
Date: January 30, 2009 at 02:16:30 Pacific
Reply:

Actually, that is already what I do.


0

Response Number 3
Name: Razor2.3
Date: January 30, 2009 at 03:01:27 Pacific
Reply:

move "%SRC%" "%DST%"


0

Response Number 4
Name: brolon
Date: January 30, 2009 at 04:36:08 Pacific
Reply:

I also tried this one, without success ...


0

Response Number 5
Name: lee123abc
Date: January 30, 2009 at 05:07:55 Pacific
Reply:

are %SRC% %DST% on different hard drives?

have you tried using quotes around them?

ie: "%SRC%" "%DST%"


0

Related Posts

See More



Response Number 6
Name: brolon
Date: January 30, 2009 at 05:24:08 Pacific
Reply:

Yeah, they are on different Disks.

If I use xcopy, then del, it works properly.


0

Response Number 7
Name: klint
Date: January 30, 2009 at 08:05:42 Pacific
Reply:

if exist "%SRC%\*" move "%SRC%\*" "%DST%"


0

Sponsored Link
Ads by Google
Reply to Message Icon

renaming files using .bat... batch to remove lines: XL...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch Move - Undesired warning msg

batch: moving files www.computing.net/answers/programming/batch-moving-files/11569.html

Batch move www.computing.net/answers/programming/batch-move/17590.html

Batch Move Files From [list1] to [list2] www.computing.net/answers/programming/batch-move-files-from-list1-to-list2/19130.html