Recent content by erotavlas

  1. E

    Windows 10 [SOLVED] Windows 10: schtasks job start, but does not work

    I solved in this way: Start-Process -WorkingDirectory $path -FilePath "$path\program" -ArgumentList "arg1 arg2" -WindowStyle Maximize Schtsk: PowerShell -ExecutionPolicy Bypass -NoProfile -InputFormat None -File C:\path\script.ps1
  2. E

    Windows 10 [SOLVED] Windows 10: schtasks job start, but does not work

    Thank you very much. Your workaround worked, by using cmd /k I found that the problem was related to the working directory. Both the following works well. start /D %scriptPath% %scritpPath%program arg1 arg2 start /D %scriptPath% cmd /c %scriptPath%program arg1 arg2 I would like to get the same...
  3. E

    Windows 10 [SOLVED] Windows 10: schtasks job start, but does not work

    Hi, I'm new of this thread and I do not know if this is the right section of the forum. I'm under windows 10 1803 64 bit. I have two scripts (.cmd and .ps1) which execute the same operation. The scripts work well if I run them from cmd or powershell while they do not work if I use schtasks. In...
Back
Top