How do I run an app/file using cmd in Windows 10?

0

This is the path of the file I want to open:

C:\Program Files (x86)\D-Link Connection Manager\a.txt

All control panel apps opens using start command, but this one is not opening. What's the problem?

Vikas

Posted 2016-01-12T12:30:08.190

Reputation: 158

I want to run a.txt file using CMD. – Vikas – 2016-01-12T12:39:23.203

1OK, so you need to use quotes like this: "C:\Program Files (x86)\D-Link Connection Manager\a.txt" This is because of blanks in the path ... – duDE – 2016-01-12T12:40:01.363

1Yes, it's working. I found the similar answer somewhere else. Thanks. – Vikas – 2016-01-12T12:42:20.007

Do you have any solution to this problem? (Read the detail in the end, main problem lies in there) http://superuser.com/questions/1025169/whats-the-difference-between-a-hidden-administrator-account-and-normal-administ/1025174?noredirect=1#comment1426744_1025174

– Vikas – 2016-01-12T12:43:17.257

Seems to be not related to current question? – duDE – 2016-01-12T12:50:19.333

Hmm. You said as the last comment to my answer "It's working. Thank you". Is it working or not working? In any case your comments are not related to your original question (which I answered). – DavidPostill – 2016-01-12T13:17:18.877

Why are you trying to run a.txt? You said you were having problems running C:\Program Files (x86)\D-Link Connection Manager\WirelessModem.exe – DavidPostill – 2016-01-12T13:18:32.347

C:\Program Files (x86)\D-Link Connection Manager\a.txt is not a control panel command. – DavidPostill – 2016-01-12T13:19:23.910

Try running notepad "C:\Program Files (x86)\D-Link Connection Manager\a.txt" – DavidPostill – 2016-01-12T13:19:47.600

If you insist on using start (which I already told you you don't need) then you need to use the correct syntax START "title" [/D path] [options] "command" [parameters]. See start - Start a program, command or batch script (opens in a new window). If the command is quoted "command with spaces" you must have a title, even if it is an empty string "".

– DavidPostill – 2016-01-12T13:24:08.523

Answers

0

If your path has blanks, you need to use quotes like this: "C:\Program Files (x86)\D-Link Connection Manager\a.txt"

duDE

Posted 2016-01-12T12:30:08.190

Reputation: 14 097

1Since when were spaces called blanks? – Ramhound – 2016-01-12T13:46:53.553