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

    • You have my attention about #7, do you have a link??? I can't stand not knowing what it is that will shock me!!! /s
    • To be ultra pedantic, Batch is the scripting language for MS-DOS and those .BAT files were executed by COMMAND.COM. Windows NT scripts are executed by CMD.EXE and their proper name is .CMD, not .BAT. Something that basically no one knows or cares about :-) For compatibility reasons, Windows NT includes a default file association for .BAT, but the proper name for such files is .CMD. Given that Windows ME was the last version of Windows that required .BAT files, and it went EoL nearly 20 years ago, I'd say its time to stop using that name.
    • I am afraid to ask but what specific crowd are you talking about? Most people wanted Mozilla to concentrate on the browser but of course are still complaining when they do that. Anyway Firefox works just fine for me. We all deserve the Chrome only future that is coming.
    • Such a missed opportunity for a company with arena sized buckets of cash. The first on device AI and they never really improved it all those years. They could have been leading this charge.
    • Glow 25.06 by Razvan Serea Glow provides detailed reporting on every hardware component in your computer, saving you valuable time typically spent searching for CPU, motherboard, RAM, graphics card, and other stats. With Glow, all the information is conveniently presented in one clean interface, allowing you to easily access and review the comprehensive hardware details of your system. Glow provides detailed information on various system aspects, including OS, motherboard, processor, memory, graphics card, storage, network, battery, drivers, and services. The well-organized format ensures easy access to the required information. You can export all the gathered data to a plain text file, facilitating sharing with others for troubleshooting purposes. No installation needed. Just decompress the archive, launch the executable, and access computer-related information. Glow runs on Windows 11 and Windows 10 64-bit versions. Glow 25.06 release notes: What's new Support provided for Windows 11 24H2 May 2025 update. Support provided for Intel Arrow Lake-H series processors. Support for AMD Ryzen AI series processors. Support for NVIDIA RTX 50 series graphics cards. Support for AMD RX 9000 series graphics cards. Support for processors and graphics cards from Intel, AMD and NVIDIA until May 2025. Support for GDDR7 graphics memory. .NET Framework June 2025 security update has been integrated. Fixed Bugs Fixed DPI bug in the Memory Test Tool that caused buttons to be nested with the table at 150% DPI and above. Fixed a translation bug in the Cache Cleanup Tool that caused an incorrect character encoding set in the Russian language. Fixed various DPI bug and character encoding bug fixes. Note: Always unzip the program before using it. Otherwise you may get an error. Download: Glow 25.06 | 2.0 MB (Open Source) View: Glow Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • 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
    • First Post
      Kurotama earned a badge
      First Post
    • Collaborator
      Carltonbar earned a badge
      Collaborator
  • Popular Contributors

    1. 1
      +primortal
      503
    2. 2
      ATLien_0
      268
    3. 3
      +FloatingFatMan
      234
    4. 4
      +Edouard
      199
    5. 5
      snowy owl
      162
  • Tell a friend

    Love Neowin? Tell a friend!