GLBasic forum

Main forum => GLBasic - en => Topic started by: mentalthink on 2011-Nov-07

Title: About setcurrentdir command?¿
Post by: mentalthink on 2011-Nov-07
Hi perhaps this it´s commented in some part of the forum, sorry but I don´t found it.

Well can be the possibilty to have any mode to reset this command?¿, I explin a bit better, when you change the dir, and perhaps, goes 2 levels depth, after you have to go 2 levels Up, the manner it this ".." not?¿,

Well can be the possibility whit wome argument, that the command goes to the parent Dir, or in default to the Media forder, whit only picking a only one line code?¿.

Or better, some function for know how levels I´m depth?¿, I thinkcan be somenthig automatic, but my knoledges about coding are limited

Thanks ina advance.
Title: Re: About setcurrentdir command?¿
Post by: MrTAToad on 2011-Nov-07
I would get the value from GETCURRENTDIR$ (perhaps when the program has just started), which you can then use to return to the original directory if you have use SETCURRENTDIR.
Title: Re: About setcurrentdir command?¿
Post by: mentalthink on 2011-Nov-07
Ok Mrtatoad, thanks very usefull  :nw: :nw: