[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

    • Formatting would be awesome if fully customised and then roll out the settings as a company wide standard.
    • I just want to know why the volume control feature in the browser version keeps appearing then disappearing, here today - gone tomorrow. Now it's gone again. Annoying as hell.
    • When you have only lies and blood libels to present, you've lost. And how hard is it for you to look up BBC and AP? You hate Jews, just admit it.
    • This article does not make sense and it’s very evident, the bug wasn’t confirmed to exist, because the application itself runs on editions of Windows which make it impossible to run Hyper-V VMs on, “Basically, Claude Desktop on Windows spins up a 1.8GB Hyper-V virtual machine if you use Claude Cowork or agent mode even once.”, suggests the bug is caused by something else otherwise it would only happen to users with the capability of running Hyper-V VMs and that’s only if Hyper-V was enabled which is by default not enabled. The true issue is that the author who reported the bug used the incorrect terminology, it’s actually a container, not a VM that is being started by the way. There were users on macOS reporting the same issue, Hyper-V, doesn’t exist on that platform obviously. Every single user who confirmed the problem in the last week was either using macOS making this issue impossible to be relevant to them, or was a comment talking about WSL, which the author indicated 3 months ago was disabled.
    • “To prevent hallucination issues and keep the database clean, the platform uses a multi-agent verification loop to check code quality.” - This absolutely isn’t happening. ”Before the massive rise of LLMs, which tanked its traffic by about 50% over the last couple of years, Stack Overflow was the go-to website for millions of programmers seeking coding solutions.” - It still is trusted, because the community of users, blocked other users from submitting false and misleading answers generated by AI agents that can be convinced something it generated is actually incorrect even if it’s actually correct. The company itself doesn’t know what it wants to be so it keeps trying and failing to introduce AI features to the platform. This effort will also fail, already submitted one successful poison pill, look forward to generating more.
  • Recent Achievements

    • One Month Later
      Sopa flores earned a badge
      One Month Later
    • First Post
      StaticMatrix earned a badge
      First Post
    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      524
    2. 2
      PsYcHoKiLLa
      211
    3. 3
      +Edouard
      160
    4. 4
      Steven P.
      98
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!