Call - setting current directory
[1/3] from: mat:eurogamer at: 20-Apr-2001 12:37
Hello,
If you were using Call to launch an application, what might be the
best way to launch this with Windows considering that the directory
where the application lies is the "Start in" location? IE the current
directory.
I guess you could hack it by running a shell with a bat file that CDs
there. I was thinking they'd be something more elegant.
(I've only used Call to launch EXEs which I've put in the Rebol path
before)
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com
[2/3] from: kracik::mbox::dkm::cz at: 20-Apr-2001 13:58
Hi Mat,
you can set it directly from REBOL, you don't need a .bat file:
>> old-dir: what-dir
== %/C/Program Files/REBOL/view/
>> change-dir %"/C/Program Files/Microsoft Office/Office"
== %/C/Program Files/Microsoft Office/Office/
>> call/wait "winword.exe"
== 0
>> change-dir old-dir
== %/C/Program Files/REBOL/view/
--
Michal Kracik
Mat Bettinson wrote:
[3/3] from: mat:eurogamer at: 20-Apr-2001 13:56
Heya Michal,
MK> you can set it directly from REBOL, you don't need a .bat file:
>>> change-dir %"/C/Program Files/Microsoft Office/Office"
Good lord, I didn't know that. Cheers!
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com