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

    • Why are you completely changing the visual identity of all software here for something else at a whim??? Wtf???
    • My Pixel 7 got the update this morning and it's been freezing constantly. I tracked the issue to Nova Launcher. Once I removed the app, everything is working just fine. There hasn't been an update to Nova in a long time so maybe this is just writing on the wall to move on.
    • Google begins rollout of Android 16 with several new features by Pradeep Viswanathan Today, Google announced the rollout of Android 16, the latest major update to the Android operating system. Android 16 is now being released to all supported Google Pixel smartphones, with availability expanding to other OEM Android devices later this year. Unlike the recently announced iOS 26, which features a revamped Liquid Glass design, Android 16 introduces Google’s new Material 3 Expressive design. Google says that more Material 3 Expressive design elements will be added to Android 16 devices later this year. Android 16 also brings a number of useful features aimed at improving everyday experiences. Read about them below. Similar to iOS Live Activities, Android 16 introduces live updates that display real-time information from ride-share and food delivery apps directly on the lock screen. This feature will also be supported by Samsung’s Now Bar, as well as OPPO and OnePlus’ Live Alerts. Android 16 will automatically group notifications from the same app. For example, 20 separate messages from different WhatsApp contacts will appear as a single notification entry. The update includes improvements for users with hearing aids. Users can now switch to using their phone’s microphone for clearer calls in noisy environments. Additionally, a new native control for hearing devices will provide easier access within Android 16. With Android 16, the Advanced Protection feature can be activated with a single tap, offering enhanced security against sophisticated attacks. Google collaborated closely with Samsung to bring desktop windowing to Android 16. A DeX-like experience will soon be available across the Android ecosystem, allowing users to move and resize multiple app windows on a single screen. This feature will roll out later this year on compatible devices, and developers can begin testing it today. Later this year, Google will introduce support for custom keyboard shortcuts, enabling users to create their own combinations of hotkeys. Android 16 also includes smaller enhancements such as HDR screenshots, adaptive refresh rate, improved identity verification, and more. Today, Google also announced several exclusive features for Pixel devices with a snazzy video (above); you can read about all those features here.
    • Sorry for having to do sponsored deals in order to keep the lights on. Our Stackcommerce partner determines the deals we publish (I do not choose them myself) but I suppose what people don't see or worry about doesn't affect them. If a tiny percentage of these articles (1 Neowin Deal a day) affects you this much, then I am sorry. We're not the only news site to have to do this btw others have to as well
  • Recent Achievements

    • Reacting Well
      rshit earned a badge
      Reacting Well
    • Reacting Well
      Alan- earned a badge
      Reacting Well
    • Week One Done
      IAMFLUXX earned a badge
      Week One Done
    • One Month Later
      Æhund earned a badge
      One Month Later
    • One Month Later
      CoolRaoul earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      532
    2. 2
      ATLien_0
      267
    3. 3
      +FloatingFatMan
      205
    4. 4
      +Edouard
      204
    5. 5
      snowy owl
      140
  • Tell a friend

    Love Neowin? Tell a friend!