Betts1964 Posted July 25, 2020 Share Posted July 25, 2020 I am trying to run a .bat file to start both hotspot shield and qbittorrent but i have the syntax wrong. Can someone plz help me out. This is what I have: @echo cd "C:\Program files (x86)\hotspot shield\bin Start hsscp.exe -min timeout 12 cd "C:\program files\qbittorrent\ start qbittorent.exe this is the error i am getting: Link to comment Share on other sites More sharing options...
Dodel Posted July 25, 2020 Share Posted July 25, 2020 The screenshot shows your trying to launch "qbittorent.ex e" (note the space) and you need to ensure your closing your " at both ends, also rather than waiting for a "keypress", use PING localhost -n 10 >NUL , OR another way to make it wait is TIMEOUT /T 10 /NOBREAK Once you've got it nailed use @echo off. I've neither installed, but something like the below:- @echo off cd "C:\Program files (x86)\hotspot shield\bin" Start hsscp.exe -min PING localhost -n 12 >NUL cd "C:\program files\qbittorrent" start qbittorent.exe Link to comment Share on other sites More sharing options...
Betts1964 Posted July 25, 2020 Author Share Posted July 25, 2020 19 minutes ago, Dodel said: The screenshot shows your trying to launch "qbittorent.ex e" (note the space) and you need to ensure your closing your " at both ends, also rather than waiting for a "keypress", use PING localhost -n 10 >NUL , OR another way to make it wait is TIMEOUT /T 10 /NOBREAK Once you've got it nailed use @echo off. I've neither installed, but something like the below:- @echo off cd "C:\Program files (x86)\hotspot shield\bin" Start hsscp.exe -min PING localhost -n 12 >NUL cd "C:\program files\qbittorrent\" start qbittorent.exe actually, when i spelled qbittorrent on the second line i used 1 R instead of 2. That was my error. Much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.