Subst: Ass kicking dos command

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

Subst: Ass kicking dos command

Post by kojikun »

If you've got a nasty long location for a folder you frequently open, or have
moved mp3s and such off a now nonexistant drive and your playlists dont
work, this is THE command for you.

The command is subst. The way it works is like this:

Code: Select all

$ subst <unused destination drive letter, ex: "x:", "y:", "z:"> <source location, ex: "C:\Documents and Settings\User001\Desktop\Folder">
typing that into MSDOS will create a virtual drive in your My Computer
folder and you can now use the shortened drive inplace of the long folder
location. I used mine to fix a playlist problem.

Went from this:

C:\Documents and Settings\Koji\Desktop\Glitch\

to

F:\

It's a beautiful thing, this subst.
User avatar
Einhander Sn0m4n
Insane Railgunner
Posts: 18630
Joined: 2002-10-01 05:51am
Location: Louisiana... or Dagobah. You know, where Yoda lives.

Post by Einhander Sn0m4n »

I'll try it later...

Same reason I don't have Linux. I don't wanna trash my computar!!!
Image Image
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

Post by kojikun »

Einhander Sn0m4n wrote:I'll try it later...

Same reason I don't have Linux. I don't wanna trash my computar!!!
yeah thats what i did. i moved shit off my F: drive (good ol' glitch ::purr::)
and installed linux on the drive. My playlists that pointed to the drive no
longer worked, because the drive was gone. Now I have my playlists
working again. :)
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

I haven't used SUBST in years (literally). Some programs don't play well with it, either.

It's better to use drive mapping (e.g. NET USE F: \\127.0.0.1\C$\FOLDER)
User avatar
Drooling Iguana
Sith Marauder
Posts: 4975
Joined: 2003-05-13 01:07am
Location: Sector ZZ9 Plural Z Alpha

Post by Drooling Iguana »

Wow. So DOS wasn't entirely worthless after all.

It still seems like a half-assed implementation of symbolic links, but still, it's more than I thought the old OS could do.
Image
"Stop! No one can survive these deadly rays!"
"These deadly rays will be your death!"
- Thor and Akton, Starcrash

"Before man reaches the moon your mail will be delivered within hours from New York to California, to England, to India or to Australia by guided missiles.... We stand on the threshold of rocket mail."
- Arthur Summerfield, US Postmaster General 1953 - 1961
User avatar
kojikun
BANNED
Posts: 9663
Joined: 2002-07-04 12:23am
Contact:

Post by kojikun »

Drooling Iguana wrote:Wow. So DOS wasn't entirely worthless after all.

It still seems like a half-assed implementation of symbolic links, but still, it's more than I thought the old OS could do.
More then windows itself can do, which is frightening.
User avatar
TheFeniX
Sith Marauder
Posts: 4869
Joined: 2003-06-26 04:24pm
Location: Texas

Post by TheFeniX »

Drooling Iguana wrote:Wow. So DOS wasn't entirely worthless after all.

It still seems like a half-assed implementation of symbolic links, but still, it's more than I thought the old OS could do.
I think you mean MS-DOS. Ah for the MS-DOS days...
Direct control over system resources.
Only the elite had CD-ROMS.
4 MBs of RAM would earn you the admiration of all others.
WTF is "multi-tasking?"
"A mouse? Why the Hell would you need a mouse?"
Expanded Memory...
and much much more....

I remember when I was 9, I REMed a few lines out of the autoexec on my dad's PC to try and get a game to work. Don't ask me how, but it renamed every file extension in DOS with an _.

Ex: start.exe to start.ex_ My dad's computer guy works for hours on that one. Sadly, I was never allowed to touch my dad's PC again.... but he bought me my own so score!

Just so this stays a little on topic: I had forgotten the subst command years ago and always just used mapped drives for easy access to buried files.
User avatar
Arthur_Tuxedo
Sith Acolyte
Posts: 5637
Joined: 2002-07-23 03:28am
Location: San Francisco, California

Post by Arthur_Tuxedo »

kojikun wrote:
Drooling Iguana wrote:Wow. So DOS wasn't entirely worthless after all.

It still seems like a half-assed implementation of symbolic links, but still, it's more than I thought the old OS could do.
More then windows itself can do, which is frightening.
Frightening, perhaps, but not surprising. Not to me anyway.
"I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark." - Muhammad Ali

"Dating is not supposed to be easy. It's supposed to be a heart-pounding, stomach-wrenching, gut-churning exercise in pitting your fear of rejection and public humiliation against your desire to find a mate. Enjoy." - Darth Wong
User avatar
Faram
Bastard Operator from Hell
Posts: 5271
Joined: 2002-07-04 07:39am
Location: Fighting Polarbears

Post by Faram »

phongn wrote:I haven't used SUBST in years (literally). Some programs don't play well with it, either.

It's better to use drive mapping (e.g. NET USE F: \\127.0.0.1\C$\FOLDER)
Net use is good but I like subst.

Paranoid freak that I am I have killed the default shares on my XP box, so no c$, d$, admin$ ond ipc$ on my comp.

To kill of the default shares on a standalone computer just stop the server service
[img=right]http://hem.bredband.net/b217293/warsaban.gif[/img]

"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus


Fear is the mother of all gods.

Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
User avatar
Faram
Bastard Operator from Hell
Posts: 5271
Joined: 2002-07-04 07:39am
Location: Fighting Polarbears

Post by Faram »

BTW, anyone but me remebers edlin? :D

OR better yet dosshell? :lol:
[img=right]http://hem.bredband.net/b217293/warsaban.gif[/img]

"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus


Fear is the mother of all gods.

Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

I used copy con
Image
User avatar
Faram
Bastard Operator from Hell
Posts: 5271
Joined: 2002-07-04 07:39am
Location: Fighting Polarbears

Post by Faram »

heh this is becomming the obscure dos commands thread :D

Anyone else used ansi.sys to change the color in config/autoexec boot?

The background was blue with yellow text.

Also I had one hell of a boot menu.

And I used if exist to check for unique files on the cd.

That had the boonus that I could just choose the option "spel" = game to start the game i wanted to play.

My boot menu detected the cd and then changed into the proper path and started the game.

Hehe those where the days autoexec and config.sys weighted in at around 100k for me :lol:

I also hacked command.com and changed the option in edit, when you opened a new file the default was *.txt I changed that to *.*
[img=right]http://hem.bredband.net/b217293/warsaban.gif[/img]

"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus


Fear is the mother of all gods.

Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Drooling Iguana wrote:It still seems like a half-assed implementation of symbolic links, but still, it's more than I thought the old OS could do.
Hard links and junctions have existed in Windows since W2K. SUBST on NT is not a DOS command, either, but a native function.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Faram wrote:heh this is becomming the obscure dos commands thread :D

Anyone else used ansi.sys to change the color in config/autoexec boot?
I used ANSI colors to mess with my prompt.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Faram wrote:BTW, anyone but me remebers edlin? :D

OR better yet dosshell? :lol:
I hated EDLIN, but DOSSHELL was useful.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Faram wrote:Paranoid freak that I am I have killed the default shares on my XP box, so no c$, d$, admin$ ond ipc$ on my comp.
Bah, just firewall your machine and block anything not coming from localhost then.
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

TheFeniX wrote: Ah for the MS-DOS days...
Direct control over system resources.
Only the elite had CD-ROMS.
4 MBs of RAM would earn you the admiration of all others.
WTF is "multi-tasking?"
"A mouse? Why the Hell would you need a mouse?"
Expanded Memory...
and much much more....
Lets see...
2X CD-ROM Drive
32MB FPM DRAM
Mouse (via Logitech driver, as MS didn't release theirs for free for many years)
Expanded memory sucked, especially when emulation ate precious conventional memory. Extended worked far better.
User avatar
Faram
Bastard Operator from Hell
Posts: 5271
Joined: 2002-07-04 07:39am
Location: Fighting Polarbears

Post by Faram »

phongn wrote:Bah, just firewall your machine and block anything not coming from localhost then.
Have a NAT device (D-Link 804) and Kerio for application firewall :)
[img=right]http://hem.bredband.net/b217293/warsaban.gif[/img]

"Either God wants to abolish evil, and cannot; or he can, but does not want to. ... If he wants to, but cannot, he is impotent. If he can, but does not want to, he is wicked. ... If, as they say, God can abolish evil, and God really wants to do it, why is there evil in the world?" -Epicurus


Fear is the mother of all gods.

Nature does all things spontaneously, by herself, without the meddling of the gods. -Lucretius
User avatar
TheFeniX
Sith Marauder
Posts: 4869
Joined: 2003-06-26 04:24pm
Location: Texas

Post by TheFeniX »

phongn wrote:Expanded memory sucked, especially when emulation ate precious conventional memory. Extended worked far better.
Yes, but expanded memory was the only way to get "Crusaders of the Dark Savant" to work. Man I miss that game...
User avatar
Arthur_Tuxedo
Sith Acolyte
Posts: 5637
Joined: 2002-07-23 03:28am
Location: San Francisco, California

Post by Arthur_Tuxedo »

TheFeniX wrote:Yes, but expanded memory was the only way to get "Crusaders of the Dark Savant" to work. Man I miss that game...
Not rivalled in sheer CRPG goodness until Fallout came out, IMO. Too bad they fucked it up with "Wizardry Gold", but you can still get the original (all 7, in fact). It's called "Wizardry Archives".
"I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark." - Muhammad Ali

"Dating is not supposed to be easy. It's supposed to be a heart-pounding, stomach-wrenching, gut-churning exercise in pitting your fear of rejection and public humiliation against your desire to find a mate. Enjoy." - Darth Wong
User avatar
Crayz9000
Sith Apprentice
Posts: 7329
Joined: 2002-07-03 06:39pm
Location: Improbably superpositioned
Contact:

Post by Crayz9000 »

Faram wrote:heh this is becomming the obscure dos commands thread :D
Anyone else used ansi.sys to change the color in config/autoexec boot?

The background was blue with yellow text.

Also I had one hell of a boot menu.

And I used if exist to check for unique files on the cd.

That had the boonus that I could just choose the option "spel" = game to start the game i wanted to play.

My boot menu detected the cd and then changed into the proper path and started the game.

Hehe those where the days autoexec and config.sys weighted in at around 100k for me :lol:
Ah, yes...

I love custom boot menus. Had my firewall set up for the longest time to boot from a DOS boot menu (via loadlin.exe, naturally... do you think I'd use MS-DOS as a firewall? :P)

My 486 laptop also has a custom boot menu that I threw on it, namely because it has a host of old DOS games that I like to fire up sometimes.
A Tribute to Stupidity: The Robert Scott Anderson Archive (currently offline)
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

TheFeniX wrote:
phongn wrote:Expanded memory sucked, especially when emulation ate precious conventional memory. Extended worked far better.
Yes, but expanded memory was the only way to get "Crusaders of the Dark Savant" to work. Man I miss that game...
Oddly, the Master of Magic demo required XMS, but the actual game only used EMS.
Post Reply