Help with creating batch files

hypn0tik

Diamond Member
Jul 5, 2005
5,866
2
0
I am trying to create a batch file which will open up hyperterminal and connect to a device that is connected to my serial port.

The problem is I don't know how to enter spaces in a directory name.

When I try:

start /max c:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Communications\HyperTerminal.exe

It gives me an error.

Any way to overcome this?
 

nod218

Member
Nov 18, 2003
165
0
0
try quotation. "c:\Documents and Settings\All Users\Start Menu\Programs\Accessories\Communications\HyperTerminal.exe", and you don't need the start /max
 

jackschmittusa

Diamond Member
Apr 16, 2003
5,972
1
0
You need to use the truncated, DOS 8.3 name for the documents and settings directory. Doing something else now too, so I can't check to see just what it is, buy it has a ~ in it.
 

Ryland

Platinum Member
Aug 9, 2001
2,810
13
81
Actually the number is dictated by where it falls in a list of truncated items in that location:

"c:\Docume~1\All~1\Start~1\Progra~1\Access~1\Commun~1\HyperTer~1.exe"