[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

    • This sounds like underneath the nice marketing spin, either someone at Adobe got tired of their lazy devs and asked Microsoft to help them sort at least some of Adobe's ancestral spaghetti code to make it go faster, or Microsoft wanted Adobe's crap to run better on Windows to make it look better when compared to Apple, so they offered to intervene. Either way, GOOD.
    • My favorite file manager for Windows 11 finally gets a long-requested feature by Taras Buria Files is among the best File Explorer alternatives for Windows 10 and 11. This free app is packed with all sorts of features and conveniences, but there is one crucial feature that is still missing—Tree View. Fortunately, the latest update in the Preview channel finally delivers it. With version 4.1.4, which is now available for download in the Preview channel, developers implemented Tree View, a new mode that displays folders in an expandable hierarchy. Windows 11's stock File Explorer always had this feature, but it was nowhere to be found in Files until now. Starting with the latest preview update, you can expand each drive and its nested folders without leaving the current location and then open the folder you need in the main view. To try Tree View in Files, update the app to the latest preview version, then click the small arrow next to a drive to expand its content. The developers say they are rolling out Tree View in Preview first to gather feedback from users and improve the feature before bringing it to all in the stable channel. In addition to Tree View, Files 4.1.14 improves the Windows Fonts folder. You can now preview each font directly in Files with no need to open the built-in font viewer. For now, these two features are only available in the Preview channel. For those using the stable release, developers recently released version 4.1.3, with improvements for the built-in tag system, on-demand folder size calculation, and plenty of various fixes. You can check out the full release notes here. You can download Files from the Microsoft Store (paid version) or its official website (free).
    • Who is paying for this 30x scale-up? Its sounds expensive.
    • Millions of users to benefit from Windows 11's new performance boost on Adobe Photoshop by Sayan Sen Despite the advent of AI-generated imagery, Adobe's Photoshop remains one of the most popular tools on this planet. Adobe does not have a publicly reported total user count but it's probably not wrong to assume there are millions. As of 2025, Adobe Creative Cloud has had approximately 41 million paid subscribers, many of whom likely use Photoshop. In addition, more than 166,000 companies worldwide are apparently also using the app. These figures are according to a very recent report by SQ Magazine. Out of them, it is fair to assume that many are probably running Windows. As such, there is good news for these users as Microsoft has announced Photoshop is getting a big 20% performance boost on x86-64 (AMD64) systems and a 13% bump-up on Arm devices. This is definitely great news for them as many have complained about the slow performance and general sluggishness of Photoshop on Windows 11 ever since the advent of the latter back in 2021. If you are wondering how Microsoft managed to do this, the answer lies in a combination of compiler-level optimizations and a technology called Sample Profile Guided Optimization (SPGO). According to Microsoft, Adobe worked closely with the company’s Visual C++ team and adopted the latest MSVC toolchain enhancements together with SPGO to squeeze more performance out of Photoshop’s CPU-bound workloads. Unlike traditional Profile Guided Optimization (PGO), which requires developers to create special instrumented builds and run lengthy training workloads, SPGO gathers performance data directly from optimized release binaries. This means Adobe could collect real-world usage information which gives a major advantage to this technique, as companies could leverage data collected from actual customer workloads rather than only relying on synthetic benchmark runs. In theory, this should allow optimizations to better reflect how users interact with software in the real world. Thanks to this, there are improvements to code layout, function inlining, hot-and-cold code separation, and other low-level tweaks that help processors execute instructions more efficiently. Essentially the compiler is better able to identify “hot” code paths, those which are most frequently executed, and optimize them accordingly.
    • "The 2TB Samsung 990 PRO NVMe SSD hits lowest price in over three months¨ I'd prefer to see the lowest price in over a year
  • Recent Achievements

    • First Post
      Jocimo earned a badge
      First Post
    • Week One Done
      suprememobiles48 earned a badge
      Week One Done
    • One Month Later
      Windows Guy earned a badge
      One Month Later
    • One Month Later
      Prasann earned a badge
      One Month Later
    • Week One Done
      Prasann earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      521
    2. 2
      +Edouard
      174
    3. 3
      PsYcHoKiLLa
      90
    4. 4
      Steven P.
      81
    5. 5
      ATLien_0
      70
  • Tell a friend

    Love Neowin? Tell a friend!