1.

Solve : newbish problem?

Answer»

Hi guys,
this problem is probably very simple and im gonna get laughed off the FORUM on my first post!

anyhow, im playing around with a BAT file im writing from scratch which will open when i turn on my computer. This BAT file, in turn is going to open all the PROGRAMS i usually open manually (email, etc).

my problem, however, is that when i try to open a directory with a space in the name (eg. "program files") dos complains that the directory ("C:\program") does not exist.

how do i go about making a space without breaking directory name?

I've never heard of DOS complaining about directory names having spaces. However, the syntax for editing a file with spaces is

EDIT "Sample program".txt

So I'm thinking if you wanted to change to a directory with spaces you could go

cd "Program files"

Does that work?Getting deja vu here - someone ASKED about this recently. Doesn't it make a difference which COMMAND interpreter parses the batch file? i.e. cmd.exe versus command.com?Cmd.exe accepts blanks in FILENAMES, Command.com does not. (I think)

Try them both to find out.

Good luck...what is command.com? ive never heard of it beforeSee here.....



Discussion

No Comment Found