News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Moving up a file tree?

Started by monkeybot, May 29, 2013, 04:14:44 PM

Previous topic - Next topic

monkeybot

I may be being stupid but...
If i record the current dir  in a string   with     cd$=currentdir$()

how can i change the filepath to go up a level in the directories e.g.  cd2$=cd$+"..\"

Thanks.

Worked it out.
cd$=currentdir$()
cd cd$+"/.."