![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
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: Code:
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 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 |
|
|
|
#2
|
||||
|
||||
|
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: http://stackoverflow.com/questions/2...-virtual-drive http://stackoverflow.com/questions/1...-windows-drive
__________________
"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+ ABIT KN8 SLI 2 Gb (2x1Gb) PC 3200 Cas 2 Corsair XMS RAM 2x120Gb WD w/ 8Mb cache (RAID 0) eVGA GeForce 7900GT 256MB |
![]() |
| Thread Tools | |
| Display Modes | |
|
|