Computing.Net > Forums > Disk Operating System > Dos batch file problems

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.

Dos batch file problems

Reply to Message Icon

Name: RuneF
Date: May 26, 2003 at 15:38:19 Pacific
OS: Windows 2000 pro edition
CPU/Ram: 800 MgH
Comment:

I have a problem with a batch file i'm trying create. It is supposed to copy a file from one directory onto another, overwriting and old file ind the process. I wrote a code like this:

copy C:\Runes filmappe\dokumenter\config.cfg C:\Runes filmappe\sierra\counter-strike\cstrike\config.cfg

but it says the directory couldn't be found. What is the reason for that? I have checked the directories like 50 times now and it's all right! I even went to each direcotory seperately and copied/pasted the directory line into my batch file on turn but it won't work. Also i use a simple commando prompt - the one build in into W2K and the simple windows texteditor - the Totally simple on and i know that the windows commando prompt supports directory names with special characters like æ ø and å, this including spaces! I'm really frusterated about this could someone please help me?

P.S Sorry if my English suck, i'm from Denmark, and i'm 15 years old.



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: May 26, 2003 at 17:03:30 Pacific
Reply:

You wrote:

> ... the Totally simple on and i know that
> the windows commando prompt supports
> directory names with special characters
> like æ ø and å, this including spaces!

Yeah, it supports spaces. However, how can the command prompt know that all that "C:\Runes filmappe\dokumenter\config.cfg" stands for a single argument, if there's a space on it, which is used to separate arguments?

The thing is, you gotta enclose such filenames with spaces in quotes:

copy "C:\Runes filmappe\dokumenter\config.cfg" "C:\Runes filmappe\sierra\counter-strike\cstrike\config.cfg"

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br

___________________________________________________________________________________________________________


0

Response Number 2
Name: RuneF
Date: May 27, 2003 at 06:20:45 Pacific
Reply:

Thx a lot that worked perfectly!
I am now able to play counter-strike with my perfectly own config file!

Thx!


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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Dos batch file problems

HELP ME WITH DOS BATCH FILES LINES PLEASE www.computing.net/answers/dos/help-me-with-dos-batch-files-lines-please/2496.html

Dos Batch File Commands www.computing.net/answers/dos/dos-batch-file-commands/11921.html

File Size in DOS Batch file www.computing.net/answers/dos/file-size-in-dos-batch-file/3105.html