Re: [Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Benoît Minisini
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 func

Re: [Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
Private WorkDir As String Public Sub Main() WorkDir = Application.Dir ' for development and change path to our sample directory ' comment out next line for actual runtime program WorkDir = "/mnt/Data/videos" ... End Thank you gentlemen

Re: [Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Jussi Lahtinen
Just write: Private sThePath As String = "/mnt/Data/videos" And use that variable everywhere as path. That way it is easy to change when needed. DoSomething(sThePath &/ "file.ext") Jussi On Sun, Dec 14, 2014 at 7:37 PM, Lewis Balentine wrote: > > >> spawns a new process (the shell) which ch

Re: [Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
>> spawns a new process (the shell) which changes its directory (using the cd >> built-in) to /another/directory and then dies. << That is what I expected but I wanted to verify it to before I asked the question. >> If you want to change the CWD of your process nevertheless, I guess you can >>

Re: [Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Tobias Boege
On Sun, 14 Dec 2014, Lewis Balentine wrote: > 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 functi

[Gambas-user] File & Directory Functions: PWD, cd

2014-12-14 Thread Lewis Balentine
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.