Skip to contentSkip to conversation

Correct Syntax for Subst

DISCUSSION Felix Karpfen 2 participants 4 messages Apr 20, 2002 – Apr 21, 2002

lore
Share & tools
lore
#0 lore raw

I have a very aged DOS program that uses data files which are stored in a separate directory but recognises only drives and not paths. When I run this program under DOS, I am able to solve this problem with the "subst" command - e.g.

SUBST I: C:\path to desired directory.

When I attempt to use a similar routine under dosemu, the syntax is not recognised and I get the following output instead:

C:\>SUBST I: D:\mm_data (issued command)

Resulting output:
================

Substitutes a path by a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

 drive1:        drive letter to substitute
 [drive2:]path  drive and path to be accessed via drive1:
 /D             breaks off the relation between drive1 and drive2:path

------

Replacing D: by LINUX\FS/home directory, achieves nothing.

So what do I need to do to get the "subst" command to do what it should under dosemu?

All help will be gratefully received.

Felix Karpfen

Signature · 3 lines
Felix Karpfen
[email protected]
Public Key 72FDF9DF (DH/DSA)
#1 lore raw
Quoted 6 lines · Felix Karpfen

SUBST I: C:\path to desired directory.

When I attempt to use a similar routine under dosemu, the syntax is not recognised and I get the following output instead:

Quoted 6 lines

C:\>SUBST I: D:\mm_data (issued command)

Replacing D: by LINUX\FS/home directory, achieves nothing.

So what do I need to do to get the "subst" command to do what it should under dosemu?

This is probably a freedos problem. The following should work though (if LASTDRIVE is high enough in config.sys)

c:\>lredir i: linux\fs/home/felixk/mm_data

Bart

#2 lore raw
Quoted 5 lines · Bart Oldeman
Quoted 3 lines · Felix Karpfen

SUBST I: C:\path to desired directory.

Quoted 7 lines
Quoted 2 lines

When I attempt to use a similar routine under dosemu, the syntax is not recognised and I get the following output instead:

This is probably a freedos problem. The following should work though (if LASTDRIVE is high enough in config.sys)

c:\>lredir i: linux\fs/home/felixk/mm_data

Out of the frying pan, into the fire.

Working my way through the dosemu documentation, my understanding is that "lredir" also does not work with freedos.

Maybe, this problem should go on the back-burner until I have replaced freedos by my msdos?

Meanwhile, thank you for the advice.

Felix

Signature · 3 lines
Felix Karpfen
[email protected]
Public Key 72FDF9DF (DH/DSA)
#3 lore raw
Quoted 12 lines · Felix Karpfen
Quoted 11 lines · Bart Oldeman
Quoted 5 lines · Felix Karpfen

SUBST I: C:\path to desired directory.

When I attempt to use a similar routine under dosemu, the syntax is not recognised and I get the following output instead:

This is probably a freedos problem. The following should work though (if LASTDRIVE is high enough in config.sys)

Quoted 6 lines
Quoted 1 line

c:\>lredir i: linux\fs/home/felixk/mm_data

Out of the frying pan, into the fire.

Working my way through the dosemu documentation, my understanding is that "lredir" also does not work with freedos.

Since dosemu 1.0.2 and FreeDOS kernel ~2023 this is not true anymore.

lredir works just fine with FreeDOS now.

Bart