[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to change directory of work?


  

hello.
im writing a frontend with gambas to a program (no matter it
now), lets call it "executable_cli".
This program is in
/somewhere/path/to/program, in my case: "/home/user/path/to/program"

so
i use

shell "/home/user/path/to/program"

I do what i do into
executable_ci, close it and back to frontend. all good till now.

But
the executable_cli suppose to find and save data in his current
directory that is /home/user/path/to/program but frontend current
directory is /home/user

executable_chi cannot be parametrized with some
flag to tell hime where save data and from where retrive data, it
supposes always tht place is here it is in the filesystem and I cannot
change the executable behaviour.

so, from gambas, i try to do:

shell
"cd /home/user/path/to/program"
shell
"/home/user/path/to/program/executable_cli"

but i does not work

exec
["cd /home/user/path/to/program"] does not work either.

so, who to tell
gambas to "move into" /somewhere/path/to/program? 

Thanks
Roberto 


Follow-Ups:
Re: how to change directory of work?Bruce Steers <bsteers4@xxxxxxxxx>