Jump to content

Syntax issue


Betts1964

Recommended Posts

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:

 

image.thumb.png.fcd66c1c7e5d11d9e1076dea684f2ab5.png

Link to comment
Share on other sites


  • Replies 2
  • Views 908
  • Created
  • Last Reply

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


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


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...