Results 1 to 6 of 6

Thread: mapdrive subst dos commands???

  1. #1
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842

    mapdrive subst dos commands???

    not really sure where to stick this, but its here now.

    Need some help with some dos commands or any other solution that does that same thing.

    Im using the subst command to map a folder to a drive letter with a .bat file.
    subst p: G:\newfolder
    This works find and dandy and when i run the bat file and look in MyComputer, i have a drive P: that has the contents of the G:\newfolder as its root.

    Now what i need to do is a way to REMOVE the virtual drive.
    Since the folder im mapping is located on a usb drive(and has to stay there), and because ive had issues in the past with just unplugging usb drives without stopping them first (data loss), i need to unmap the folder before windows will let me unmount the usb drive.

    does anyone know of any dos commands that will remove the mapping, the oposite of subst?
    I did some googleing and all i found were apps and utilities that arent free. How can you charge someone to automate a dos command?wtf!


    any help is greatly appreciated
    also not, im not talking about mapping network drives (those are really just shortcuts anyway)

    THANKS!!
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/rr-faq/
    mp3car live search

    i have joost invites, just hit me up for one.

  2. #2
    Unregistered User ODYSSEY's Avatar
    Join Date
    Feb 2001
    Location
    Raleigh, NC USA CarPC Ver3: [▓▒▒
    Posts
    1,568
    I should give you a

    Code:
    C:\Documents and Settings\ODYSSEY>subst /?
    Associates a path with a drive letter.
    
    SUBST [drive1: [drive2:]path]
    SUBST drive1: /D
    
      drive1:        Specifies a virtual drive to which you want to assign a path.
      [drive2:]path  Specifies a physical drive and path you want to assign to
                     a virtual drive.
      /D             Deletes a substituted (virtual) drive.
    
    Type SUBST with no parameters to display a list of current virtual drives.
    
    C:\Documents and Settings\ODYSSEY>
    ODYSSEY

    Quote Originally Posted by Tidder View Post
    Hey, as long as it's not any particular race I'm offending, I can stand to be a pedophile.
    All information expressed in this post is my opinion, and should not be regarded as a statement of fact.
    Digital-Car UK|

    (\__/)
    (='.'=)
    (")_(")

  3. #3
    MySQL Error MatrixPC's Avatar
    Join Date
    Sep 2003
    Location
    Beach City, Socal
    Posts
    4,053
    Code:
    subst /?
    2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
    89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
    Y2K Accord Dell GX150
    RoadRunner is the best FE PERIOD
    EmoRebellion is a SCAMMER

  4. #4
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    sweet, thanks. thats exactly what ive been looking for. works like a charm.
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

  5. #5
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    man you dont know how much googleing i did trying to find this,

    thanks again.
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

  6. #6
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    FYI: for those that may not fully understand the code above, took me a sec , but here is how i have it setup.

    To map my virtual drive
    Code:
    subst P: C:\Documents and Settings\liquid\My Documents\
    To unmap the virtual drive
    Code:
    subst P:  /D
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

Similar Threads

  1. SpeakEasy Voice Recognition - Beta 1
    By ruairi in forum Road Runner
    Replies: 31
    Last Post: 08-22-2006, 11:12 PM
  2. win me worth it?
    By schrodos in forum Software & Software Development
    Replies: 25
    Last Post: 04-27-2002, 08:53 AM
  3. Vote Skinny Boy off the Forum??????
    By radioman193 in forum Mp3car Forum Suggestions/Comments
    Replies: 27
    Last Post: 09-17-2001, 12:42 PM
  4. Reading CDRWs in Dos
    By redscar in forum Software & Software Development
    Replies: 20
    Last Post: 08-21-2001, 03:00 AM
  5. Okay, guys, I need some help....
    By dapepster in forum Software & Software Development
    Replies: 18
    Last Post: 08-20-2001, 03:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •