Jump to content
  • 0
Sign in to follow this  
Betts1964

Syntax issue

Question

Betts1964
Posted (edited)

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

Edited by Betts1964

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Dodel
Posted (edited)

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

Edited by Dodel

Share this post


Link to post
Share on other sites
  • 0
Betts1964
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...