Computing.Net > Forums > Database > move command using batch file in dos,help

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.

move command using batch file in dos,help

Reply to Message Icon

Name: lgonzalez1184
Date: June 11, 2009 at 08:42:42 Pacific
OS: Windows XP
Subcategory: General
Comment:

Hello all I am a true beginner at this and need some help. I am moving large ammounts of files from one directory to another and set up a batch file to do so, however when I run the file in MS-DOS, I run into syntax errors when it notices there are spaces in the folder and file names of my command for example :
move G:\Adam-Invoice\Cardinal Cogen-Invoice.doc G:\FileStructure\QWI Manual\QWI 5- Purchasing\
the space in between cardinal and cogen would set off the syntax error. Is there a simple way around this problem using some sort of coding? or do I need a compiler to fix this problem?
Thank you.



Sponsored Link
Ads by Google

Response Number 1
Name: jon_k
Date: June 12, 2009 at 05:49:19 Pacific
Reply:

Just enclose the file path and name with double quotes " ". SHould work fine


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: move command using batch file in dos,help

How to edit query in MS Access using batch www.computing.net/answers/dbase/how-to-edit-query-in-ms-access-using-batch/682.html

batch file reset www.computing.net/answers/dbase/batch-file-reset-/677.html

replacing the string using bat file www.computing.net/answers/dbase/replacing-the-string-using-bat-file/430.html