Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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___________________________________________________________________________________________________________

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

![]() |
![]() |
![]() |

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