Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Command Prompt shortcut creation question

26 Apr 2018   #1

Win 7 Pro 64 Bit
Command Prompt shortcut creation question

Using Windows 7 64 Bit pro I am trying to create a desktop shortcut to open a Command prompt window that opens and runs a file in C:/ called SimpleTimer.EXE

My DOS commands knowledge has faded and I am struggling with this, could someone kindly have a look at this screen shot and suggest where I am going wrong please? Thanks :)

My System SpecsSystem Spec
26 Apr 2018   #2

Linux Mint 18.2 xfce 64-bit (VMWare host) / Windows 8.1 Pro 32-bit (VMWare guest)

I see two possible errors with your target:

1) Take out the "cd" that you have put after the /k.

2) Put "SimpleTimer.EXE" into another location, say, C:\Simple. The root folder of C: is a system area, and it has some restrictions as to its use. However, if you create a folder and put your program into that folder, there won't be any such restrictions.

To get some good information about using the CMD command, open a command prompt and enter the following command: cmd /?
My System SpecsSystem Spec
26 Apr 2018   #3

Win 7 Pro 64 Bit

Thanks, that seems to have worked, I also tried another approach and made a batch file to call the application, which is also working. I appreciate the time and help, thanks again to you! :)
My System SpecsSystem Spec

26 Apr 2018   #4

win 8 32 bit

It's simpler to just make a short cut directly to the exe
My System SpecsSystem Spec

 Command Prompt shortcut creation question

Thread Tools

Similar help and support threads
Thread Forum
Elevated Command Prompt Shortcut
How to Create an "Elevated Command Prompt" Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create a shortcut that will open an elevated command prompt with administrator rights in Windows 7 and Windows 8. When you use the elevated command prompt shortcut, you may be...
Command Prompt question
A weird thing has been bothering me for a while - I usually run command-line by simply typing "cmd" in the search box of the start menu. I have the background color changed to gray, from the usual black. Well, I have ran cmd enough times to have windows place a shortcut on the start menu, but if I...
General Discussion
Command Prompt shortcut
Hello I am 100% new to command prompt so I am asking for a little guidance. I am lost on part two I simply have no idea what it is asking, do you? I know the /K keeps the command prompt window open after the script is finished. But thats about it. 1 Create a new Windows shell initialization...
General Discussion
Command Prompt Question (Please Help Me!)
I have a computer that is in a disasterous state. It will completely start up most of the time, only to freeze and restart within less than a minute. It then says "Operating System Not Found" upon attempting to boot. Once I see that, I have to hold the power button down to turn it off, then...
General Discussion
Question about the Command Prompt
I wasn't sure on where to post this, so I'm posting here. Mods, please move this to the right section. I accidentally set a file format (.jar) to be opened always with the command prompt, now I cannot change it back (the checkbox for "always open with" is disabled). What I wanted was to leave...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:30.
Twitter Facebook Google+