| || |
Using %temp% as invoked application working directory
Hello. I have an application that is installed in %temp% (as in windows environmental variable) by default. I want to call it from WinRunner.
If I use invoke_application (appname,"",working_dir,SW_SHOW), %temp% is not parsed into the value, correspondent to this machine. If I use system_command(full path), the application uses a random directory as the working dir and fails for find its components.
Is there a workaround?
Re: Using %temp% as invoked application working directory
invoke_application(getenv("temp") & "\\YourApp.exe","",getenv("temp"),SW_SHOW);