Computing.Net > Forums > Disk Operating System > creating symbolic links in DOS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

creating symbolic links in DOS

Reply to Message Icon

Name: Miskva
Date: August 26, 2002 at 03:38:13 Pacific
Comment:

Hi, Just wondering: is it possible to create symobolic links on directories, just like you would in UNIX ?

It could be used for example the following, when asking to save a file (from an internet browser, a word processor, some or another program ..) it is sometimes hard to navigate to a certain directory, you want to place this file. You could then, create a subdirectory on the desktop, which actually is that directory somewhere on some disk.



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: August 26, 2002 at 10:27:09 Pacific
Reply:

Hmmm... I don't know if that's possible.

However, you may assign the directory to a variable on your autoexec.bat file, so you could use that variable.

Example: in autoexec.bat:
SET X=C:\Myfile~1\Data\Other\Nonsense

On the command prompt, to EDIT the file stuff.dat located on that strange directory above, you would do:

edit %X%\stuff.dat

instead of

edit C:\Myfile~1\Data\Other\Nonsense\stuff.dat

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Response Number 2
Name: Doug
Date: August 27, 2002 at 06:49:38 Pacific
Reply:

Use the SUBST command. It exists in DOS 6.22 and Win98 DOS. I am not certain about other flavors of DOS.

Syntax is:

SUBST [drive1: [drive2:]path]
drive1 = assigned drive letter
drive2: path = path to assign to drive1

SUBST drive1: /D
delete said link

SUBST
list all assicated paths and their drive letters.


Type SUBST /? at a command prompt if in doubt of proper usage.

-Doug


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: creating symbolic links in DOS

how to create a directory in dos www.computing.net/answers/dos/how-to-create-a-directory-in-dos/11381.html

Create a directory in DOS with Mont www.computing.net/answers/dos/create-a-directory-in-dos-with-mont/16838.html

Writing CD's in DOS with LFN www.computing.net/answers/dos/writing-cds-in-dos-with-lfn/11900.html