DOS subst command

  • Thread starter Thread starter Bob Appleby
  • Start date Start date
B

Bob Appleby

The DOS subst command will not work with my new machine:

HP pavilion ze5700 notebook computer
Windows XP with Service Pack 2 installed
At the c: prompt in DOS I type subst g:c:gdisk (or with a
back or foreword slash after the c:) and get the error
message: Invalid parameter - G:c:gdisk
gdisk is a folder in the c: drive. I called the HP
service line and his Win 98 machine worked fine. He
suggest several things, none of which worked. Trying it
immediately after reboot had no effect. What now?
 
Bob said:
The DOS subst command will not work with my new machine:

HP pavilion ze5700 notebook computer
Windows XP with Service Pack 2 installed
At the c: prompt in DOS I type subst g:c:gdisk (or with a
back or foreword slash after the c:) and get the error
message: Invalid parameter - G:c:gdisk
gdisk is a folder in the c: drive. I called the HP
service line and his Win 98 machine worked fine. He
suggest several things, none of which worked. Trying it
immediately after reboot had no effect. What now?

Are you neglecting the <space>?

g: c:\gdisk

Open Help and Support, type: subst and press the arrow button to see the
information.
 
Many thanks to you and Wesley. Indeed it was a lack of a
space after the colon. My 1985 DOS manuel did not have
one and my brain chose to ignore the one in the current
help section. Duh! By the way I'm using it to narrow down
the area for the search command. It was taking too long
to search the whole C: drive.

Bob
 
Bob said:
Many thanks to you and Wesley. Indeed it was a lack of a
space after the colon. My 1985 DOS manuel did not have
one and my brain chose to ignore the one in the current
help section. Duh! By the way I'm using it to narrow down
the area for the search command. It was taking too long
to search the whole C: drive.

Bob




Your Welcome, Bob.

One thing that can significantly increase your search speed is to exclude
..zip files in the search. MVP Kelly has a simply procedure for doing this.
Take a look on her website.

Windows XP from A to Z:
http://www.kellys-korner-xp.com/xp_w.htm#z
 
Back
Top