Recommended Posts

I can't be certain, but taking a quick look at a Windows laptop next to me I can't find the Windows\Start Menu through the path you've specified. Why are you going through the start menu shortcut, anyway? Point to the .exe itself rather than the Start Menu's shortcut. Look for the .exe file under either Program Files or Program Files (x86).

 

EDIT: Also (but I could be wrong) you need to specify if echo is off or on. I would assume you want it turned off (@echo off).

  • Thanks 2
Link to comment
https://www.neowin.net/forum/topic/1398221-syntax-error/#findComment-598567558
Share on other sites

  On 25/07/2020 at 15:45, Bruinator said:

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:\Programdata\microsoft\windows\start menu\programs"

Start hotspotshield.exe

 

What am I doing wrong plz?

 

TIA

Expand  

batch file should look like this:

@echo off
C:\Program Files (x86)\TeamViewer\teamviewer.exe

You don't need the start command, and I tried to navigate with explorer to start menu\programs and windows would not let me in, it is a protected area. That is why you need to launch it from program files (x86) or program files. Also the @echo off is really not needed, that simply tells the file to not display what it is doing on the screen, and considering it will be going fast, you would not need it!

 

Link to comment
https://www.neowin.net/forum/topic/1398221-syntax-error/#findComment-598567726
Share on other sites

  On 26/07/2020 at 17:03, Bruinator said:

Thx , i found the issue yesterday afternoon. Sorry about not saying so. It was the wrong path. Thx guys.

Expand  

That makes all the difference! :)

  • Haha 2
Link to comment
https://www.neowin.net/forum/topic/1398221-syntax-error/#findComment-598567728
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • It wasn't "Germany" trying to move away from Windows, it was one state in Germany https://www.neowin.net/news/ge...t-to-linux-and-libreoffice/ I also don't think they "crawled back to Windows". The same state also ditched Teams https://it.slashdot.org/story/...hits-uninstall-on-microsoft
    • Hey folks, I've recently noticed my iPhone (13 Pro) getting insanely hot while playing certain games — especially ones with high graphics like COD Mobile or even during long FaceTime calls. Battery drops fast, the back heats up, and the phone starts lagging a bit too. It honestly reminds me of that GTA San Andreas mission where CJ runs through a burning building with the fire extinguisher — except I don’t have one for my phone 😂 Jokes aside, I’ve: Turned off background app refresh Reduced brightness Closed unnecessary apps Updated to the latest iOS But the issue still pops up during intense tasks. 👉 Anyone else facing this? 👉 Is this normal with newer iPhones or something I should worry about long term? 👉 Could using a MagSafe charger regularly have anything to do with it? Would love to hear your experience or if you’ve got tips to cool things down (besides playing San Andreas. on low graphics haha). Cheers! 
    • It's funny how easy he is to emulate because of such a limited verbal vocabulary.
    • No, moderators and staff can not be blocked for obvious reasons. Individuals with bad intent could block moderators from doing their jobs. We have lots of spam/ users who sign up with bad intent and we are constantly cleaning the board of these troublemakers. The ability to block us would severely hamper us from doing our job. If any member has an issue with a staff member or moderator, you may PM a Supervisor, Steven P. or me to look into the matter.  Best, Barney
    • Would you be open to allowing users to ignore/block staff/moderators here? When trying to do so now, you cannot add a mod/global mod to your ignore/block list. Curious why this is setup this way, is there any way around this?
  • Recent Achievements

    • Conversation Starter
      Jamie Smith earned a badge
      Conversation Starter
    • First Post
      NeoToad777 earned a badge
      First Post
    • Week One Done
      JoeV earned a badge
      Week One Done
    • One Month Later
      VAT Services in UAE earned a badge
      One Month Later
    • First Post
      LsDmT earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      575
    2. 2
      ATLien_0
      253
    3. 3
      +Edouard
      161
    4. 4
      +FloatingFatMan
      152
    5. 5
      Michael Scrip
      114
  • Tell a friend

    Love Neowin? Tell a friend!