MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.

Closed Thread
Thread Tools Display Modes
Old 05-06-12, 03:26
skyler43@123's Avatar
skyler43@123 skyler43@123 is offline
Private E-2
Join Date: Feb 2012
Location: Bucharest
Posts: 19
Thanks: 2
Thanked 2 Times in 2 Posts
Default rem and subst from MS-DOS

hello everyone::D i need some ideas for something.
i want to simulate subst and rem commands from MS-DOS, into c/c++ or php.
i don't know where to start.

for example i have the next code in notepad:

rem s, r, t, u, z

 subst s:  D:\Movies
 subst r:  D:\Music
 subst t:  D:\Games
 subst u:  D:\Pictures
 subst z:  D:\Backup
it creates s, r, t, u, z partitions with the same size like D, but with the content from the files specified. And disappear after a restart.
i saved him like developments drivers.bat.
All this thing like folders/names/number of them/partition D, you know them from "outside".
i want to make something which don't know this, just search them and then make the virtual partitions.
i hope you understand what i want to do, and i'm sorry for my english:D
some ideas please?
Sponsored links
Old 05-06-12, 08:07
Wyatt_Earp's Avatar
Wyatt_Earp Wyatt_Earp is offline
Major Geek
Join Date: Sep 2002
Location: Powell, OH
Posts: 1,377
Thanks: 3
Thanked 26 Times in 23 Posts
Default Re: rem and subst from MS-DOS

First off, rem doesn't do anything. It just denotes a commented line, so there is no need to copy that over.

Secondly, the easiest way is probably going to be to have your C++ app run the batch file. The alternative way of doing it looks like it will be quite a bit more work. Here are some links:
"I cannot undertake to lay my finger on that article of
the Constitution which granted a right to Congress of
expending, on the objects of benevolence, the money
of their constituents."

-- James Madison
(1751-1836), Father of the Constitution for the USA,
4th US President
AMD Athlon 64 3800+
2 Gb (2x1Gb) PC 3200 Cas 2 Corsair XMS RAM
2x120Gb WD w/ 8Mb cache (RAID 0)
eVGA GeForce 7900GT 256MB
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 14:37.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds

All content Copyright source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger