lvdvelde
24th January 2003, 17:32
Hey everyone,
is there a way to find out - with the use of a Baan script - where the local Temp directory of user is located?
I need to know this, in order to use a server.to.client command, for transferring a file to the local PC (and run excel or so).
BW uses it's own installation directory as a working directory. Not every user has permission to write to that directory. This is why I want to use the local TEMP directory.
This piece of code stores the tempdir in the stdout file "tempdir":
app_id = app_start("cmd.exe /c /q set TEMP", "", "", "tempdir", "")
... but this only works if the user has permission to write to the BW directory... looks like a 'chicken-or-egg' problem!
Any help is appreciated!
Lex
is there a way to find out - with the use of a Baan script - where the local Temp directory of user is located?
I need to know this, in order to use a server.to.client command, for transferring a file to the local PC (and run excel or so).
BW uses it's own installation directory as a working directory. Not every user has permission to write to that directory. This is why I want to use the local TEMP directory.
This piece of code stores the tempdir in the stdout file "tempdir":
app_id = app_start("cmd.exe /c /q set TEMP", "", "", "tempdir", "")
... but this only works if the user has permission to write to the BW directory... looks like a 'chicken-or-egg' problem!
Any help is appreciated!
Lex