[Win7] Help with Start command


Recommended Posts

I'm just making a wee batch file that will start a few programs for me, one being the Teamspeak program. However when I type:

start C:\Program Files\TeamSpeak 3 Client\tsclient_win64.exe

I get an error say it cannot find the path "C:\program"

What am I doing wrong? I've tried encapsulating the path with double quotes, but still no luck.

Link to comment
https://www.neowin.net/forum/topic/1085141-win7-help-with-start-command/
Share on other sites

As far as I can tell, you need to encapsulate only the parts of the file path that DO contain spaces; rather than the whole file path. Sounds silly but it seems to work from my testing. So you would re-write your batch file to be the following:

start C:\"Program Files"\"TeamSpeak 3 Client"\tsclient_win64.exe

From this website: http://www.computerh...om/starthlp.htm

"If the file or folder has a space in it you must surround it with quotes. Without the quotes surrounding the file name with a space you would get a windows cannot find the file error."

This may be of some help: http://stackoverflow...-command-with-s

Basically, you need it to say:

START "" "C:\Program Files\TeamSpeak 3 Client\tsclient_win64.exe"

To explain that...

The first "" after START is for the title of the command window. Since you don't need anything, it's not needed, so "" means nothing basically. Then you add your file path. Since it contains spaces, that also needs to be encapsulated in speech marks.

This may be of some help: http://stackoverflow...-command-with-s

Basically, you need it to say:

START "" "C:\Program Files\TeamSpeak 3 Client\tsclient_win64.exe"

To explain that...

The first "" after START is for the title of the command window. Since you don't need anything, it's not needed, so "" means nothing basically. Then you add your file path. Since it contains spaces, that also needs to be encapsulated in speech marks.

Or that...

It all comes down to CMD syntax. You could always enter the /? switch after any CMD command to review its syntax/uses first.

Thanks for the help guys, I tried both methods but neither seem to work.

However if I try another program, it will work fine. Which does have me stumped. I tried Start "" "C:\program files\ccleaner\ccleaner64.exe" will work. Odd.

If you type: "C:\Program Files\TeamSpeak 3 Client\tsclient_win64.exe" (with the quotes) in a run command, does it load?

Sadly, it doesn't load and another CMD prompt loads.

This is really strange, I might reinstall TeamSpeak and see if that fixes it.

Yes that is odd?!

I tested using an EXE in Program Files using both methods and they both worked fine.

Maybe write the batch script to change to the associated Program Files directory first and then run the file on the next line:

@echo off

cd C:\Program Files\TeamSpeak 3 Client

tsclient_win64.exe

Yes that is odd?!

I tested using an EXE in Program Files using both methods and they both worked fine.

Maybe write the batch script to change to the associated Program Files directory first and then run the file on the next line:

@echo off

cd C:\Program Files\TeamSpeak 3 Client

tsclient_win64.exe

Thats works thanks for all the help! :)

Ahh...congrats...problem solved.. :D

But, is'nt it lots easier if you just make a shorcut?

He is making a batch file to start multiple programs, so shortcuts will not be as effective...

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Universal USB Installer 2.0.3.6 by Razvan Serea The Universal USB Installer (UUI) is a powerful bootable USB software tool for creating USB boot drives from ISO files, perfect for installing Linux or Windows, running live systems, or building diagnostic toolkits. This versatile ISO-to-USB software makes it easy to boot from USB and create Live USBs for Linux distributions, Windows setup installers, antivirus tools, and system diagnostic utilities. Whether you need a multisystem Windows Media Creation Tool, a Live USB Linux installer, or an all-in-one PC diagnostic toolkit, UUI offers a reliable and flexible Linux and Windows bootable USB creator. Effortlessly carry your favorite portable operating systems and essential troubleshooting and diagnostic tools on a single flash drive or USB boot stick. Take your preferred Live Linux distributions, Windows installers, recovery software, backup utilities, and diagnostic tools with you, all bootable from a single USB drive. No more juggling multiple USB sticks or complicated bootloaders, UUI consolidates everything into one flexible, multiboot solution. Using this open source USB boot maker software is easy as 123. To create a Linux or Windows bootable USB drive, you simply select your target flash drive, choose your distribution from the list, browse to the ISO file (or choose to download the ISO), and then click Create. Once finished, you should have a ready to run Live USB containing the Live operating system, Windows installation media, or system diagnostics utility, or advanced system cleaner tool you previously selected. Universal USB Installer 2.0.3.6 fixes: Fixed volume label never being set after disk preparation. Fixed selected disk not being restored when returning to the drive selection page after preparation. Download: Universal USB Installer 2.0.3.6 | 19.4 MB (Open Source) Link: Universal USB Installer Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Browser vendors including Chrome, Firefox, Brave, and Vivaldi have jointly written an open letter to Microsoft saying enough is enough regarding Edge being pushed on Windows users without consent. Microsoft makes it difficult to change the default browser, promotes Edge throughout Windows 11, and has made the uninstall process unnecessarily complicated compared to other apps. Does anyone have more details on what exactly the open letter demands and whether any regulatory action is being considered? Also curious whether this could lead to antitrust investigations similar to what happened with Internet Explorer back in the day. Would love to hear from anyone following this closely.
    • Amen, they are a shady company... they modify my site to remove inline ads and then cry about subscribing to their services, a few things they "bravely" did in recent years: In 2020, Brave was caught automatically appending its own affiliate referral codes to URLs when users typed the web addresses of crypto exchanges (like Binance and Coinbase) into the address bar. Following significant backlash, the CEO apologized and the feature was disabled. In 2023, the company faced criticism after users noticed a paid VPN service was installed on their computers without their explicit consent. TOR Privacy Leak: In 2021, Brave's private Tor tabs were found to be leaking DNS queries to internet service providers, a flaw that was subsequently patched. Passive Cryptocurrency Donations: In early versions of the browser, Brave automatically collected user contributions and held them in a pool to be distributed to creators. If a creator had not signed up to claim their funds within a certain time frame, the process sparked criticism about where the money went.
    • I think they still believe it but are realizing that those statements created massive backlash and impacted adoption. I personally think AI, if used regularly will give you back about 30% of your time if you are an “information” worker.
  • Recent Achievements

    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
    • Reacting Well
      Sir_Timbit earned a badge
      Reacting Well
    • Week One Done
      rubentuben8 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      229
    3. 3
      +Edouard
      144
    4. 4
      ATLien_0
      86
    5. 5
      Steven P.
      82
  • Tell a friend

    Love Neowin? Tell a friend!