954,285 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Creating batch files in windows xp

I tired to create batch files to automate the copy and delete commands for files and folders.

It seams that windows xp does not support long file or folder names with space. Hence my batch files do not work.

Please advise.

Thanks
muthu snk

muthu_snk
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Put the names between quotation marks

gemini4
Posting Whiz in Training
253 posts since Jan 2006
Reputation Points: 19
Solved Threads: 13
 
Put the names between quotation marks

Spot-on advice.

Just to clarify, if you had a file nameddecember sales report.xls, you would enter it as:

"december sales report.xls"

Note the quotation marks-- it tells the interpreter that everything in between the quotes is one item.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

Spot-on advice.

Just to clarify, if you had a file named december sales report.xls, you would enter it as:

"december sales report.xls"

Note the quotation marks-- it tells the interpreter that everything in between the quotes is one item.

Thank You for your tips.

muthu_snk
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 
Thank You for your tips.

just specify the first 6 letters of file name and then add "~1" to it
and if u have any extensions then add it no problem

now it will work..

XP will automatically translate it to approppriate file.

prof.thakur
Light Poster
38 posts since Mar 2006
Reputation Points: 11
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You