Computing.Net > Forums > Windows XP > Creating a batch file in XP

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.

Creating a batch file in XP

Reply to Message Icon

Name: Mike
Date: November 14, 2002 at 12:54:57 Pacific
OS: WinXP
CPU/Ram: AthlonXP 2000+ 512DDR
Comment:

I am trying to create a batch file that will move files from one folder to another. The naming convention in XP seems to be different than what I am used to. Instead of typing move c:\*.mp3 c:\mydocu~1\mp3s XP has c:\documents and settings\my music. when i look at the directories they are spelled out in fill length with spaces. is that how the batch should be written?
When i try and run the batch file to move files from c: to the c:\documents and settings\mike\my music\ folder i get an invalid syntax error.
Any Ideas?



Sponsored Link
Ads by Google

Response Number 1
Name: Brian Rignall
Date: November 14, 2002 at 12:57:54 Pacific
Reply:

C:\Documents and Settings\All Users\Documents

or else if they are in a 'user' folder

C:\Documents and Settings\user name



0

Response Number 2
Name: Shuriken
Date: November 14, 2002 at 13:13:35 Pacific
Reply:

In XP make sure you are using quotation marks or it will not copy files properly.

I make batches in XP for everything if you need anymore help email me.


0

Response Number 3
Name: triet
Date: November 14, 2002 at 13:16:29 Pacific
Reply:

Doing a "dir /x" will display the names of folders in 8dot3 format as you used to. Quotation marks don't work with some batch commands.


0

Response Number 4
Name: Mike
Date: November 15, 2002 at 05:55:22 Pacific
Reply:

Thanks for your help.


0

Sponsored Link
Ads by Google
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 Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Creating a batch file in XP

BATCH FILES IN XP? www.computing.net/answers/windows-xp/batch-files-in-xp/8304.html

Need help creating a batch file www.computing.net/answers/windows-xp/need-help-creating-a-batch-file/172372.html

Using DOS Batch File in Windows XP www.computing.net/answers/windows-xp/using-dos-batch-file-in-windows-xp/23275.html