Threat Level: green Handler on Duty: Brad Duncan

SANS ISC: Do You Remember the SUBST Command? SANS ISC InfoSec Forums

Watch ISC TV. Great for NOCs, SOCs and Living Rooms: https://isctv.sans.edu

Sign Up for Free!   Forgot Password?
Log In or Sign Up for Free!
Do You Remember the SUBST Command?

I had to test a program on Windows using a particular drive letter.

So I was thinking of mounting an ISO file, or a VeraCrypt volume, and have a drive with that particular drive letter on my machine. And then I remember something ... old ... really old.

Back in the early nineties, I often had to do something similar on MS DOS. I used the SUBST command.

It still exists on Windows. You provide an unused drive letter and a path on an existing drive, and voilà:

Didier Stevens
Senior handler
Microsoft MVP
blog.DidierStevens.com DidierStevensLabs.com

DidierStevens

400 Posts
ISC Handler
I certainly haven't forgotten about SUBST. This Windows 10 Pro system gets seven SUBSTed drives assigned via a BAT file at login.

For example, the V: drive is where I keep documents. The underlying folder is C:\!ken1\!documents.
Ken

5 Posts
I still use this one occasionally, along with 'pushd', 'popd' & various other 'old school' commands.
Anonymous
My favorite old command that ms removed in their progression of limiting does access was undelete... That was my favorite, don't know why they ever removed it... I think it was around windows 95, when they were trying to get everyone into Windows only without dos, I kind have to thank then for it tho, cause it made me compile and learn Linux via Slackware 1.0. I know a lot of what I know because of that...
jACKtheRipper

57 Posts

Sign Up for Free or Log In to start participating in the conversation!