Archive: execDos challenges


execDos challenges
can anyone suggest a solution for the issues I have using execDos ?

1. the default example doesn't accept passwords that contains $ character; how can I pass such a password to the application ?

2. I am trying to start a batch file which in turns starts powershell with a script as argument (powershell .\script.ps1). Actually powershell should start under some credentials I want to provide using execDos. Is it possible to achieve this using execDos ? if yes how ?

Thanks in advance for your help.
Gabriel


1. you probably need to escape $ by using $$ :)

2. powershell will only act the way it is told by the batch file. you should instead try to replace the batch file with NSIS code and thus call the powershell directly with exedos.