Old DOS Substitute command

  • Thread starter Thread starter Boxer
  • Start date Start date
B

Boxer

I am using Windows XP Home and want to use the DOS Subst command to
point to a file with a long path. This old command works on all
versions of Windows since 3.1 but it uses the old 8.3 file naming
convention.

At what point in "Documents and Settings" or "Program Files" do I use a
tilde to list the filename in the command?

Any other suggestions for pointing to a file in a directory about 10
levels down in the Documents and Settings directory?

Many thanks.

Boxer
 
There is no Dos subst in XP.

Enclose paths with spaces in inverted commas.

subst m: "c:\program files"
 
XP is not DOS based, you can get a command line window by
using START/Run cmd.

Then you can use long file names since XP is still running.

When the command line window open type subst /? to see the
help for the command.


| I am using Windows XP Home and want to use the DOS Subst
command to
| point to a file with a long path. This old command works
on all
| versions of Windows since 3.1 but it uses the old 8.3 file
naming
| convention.
|
| At what point in "Documents and Settings" or "Program
Files" do I use a
| tilde to list the filename in the command?
|
| Any other suggestions for pointing to a file in a
directory about 10
| levels down in the Documents and Settings directory?
|
| Many thanks.
|
| Boxer
|
|
 
David,

Thanks, but that does not work. Can you tell me where the tilde goes in
a file name--on the 7th or the eighth character?

Any other ideas how to enter the long filename? It must follow the 8.3
file naming convention or it will not work. I've used it for years and
learned the hard way. I am reluctant to rename Documents and Settings
for obvious reasons.

How does anyone quickly point to a buried file down many layers on an XP
system? The quotation marks don't work.

The script is supposed to be: Subst M:
C:\xxxxxxxx\xxxxxxxx.xxx\xxxxxxxx etc Needs a reboot. I have mine in
an autoexec.bat and that is in the Start menu. It needs to be in at the
startup to work with no problems.

Boxer
 
Try going to XP's command prompt program and run "help subst" and see if
this program will help you.

Hope this is useful to you. Let us know.

rms
 
Back
Top