Le 14/12/2014 17:54, Lewis Balentine a écrit : > I can find out what the current directory is with: > Print Application.Env["PWD"] > > However there does not seem to be anything to change the present working > directory within the "File & Directory Functions". > I did try using the shell function. It did not seem to have the desired > effect. > Print Application.Env["PWD"] > Shell ("cd /mnt/Data/videos") > Wait 0.1 > Print Application.Env["PWD"] > ---------- > /home/lewis > /home/lewis > > So I guess that I have missed something obvious again. > How does one change the current directory in a Gambas console based > program ? > > Thank you, > > Lewis >
To run a child process in a specific working directory, do that: EXEC [ ... ] WITH [ "PWD=/the/directory" ] Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user