![]() |
|
#1
|
|||
|
|||
i = system ("cd c:\text"); :(CPP / C++ / C Code:
It won't work. How do I make this go to a specific directory? I know if i just make it i = system ("cd"); that it will print the current directory. Is there a way to change directories this way? |
|
#2
|
|||
|
|||
|
That doesn't work, because every time you call system, it spawns a new process, and the previous settings are lost. Try using chdir() instead, which is included in the unistd.h lib!
GF |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I detect flash version on my computer system? | rhino1616 | Graphics Forum | 2 | 23-Oct-2003 09:14 |
| PHP doc system - for when you need to write up some documentation | jrobbio | MySQL / PHP Forum | 0 | 22-May-2003 08:43 |
| CVS - Concurrent Versions System | JdS | Web Hosting Forum | 6 | 23-Oct-2002 09:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The