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: How to add parameter to run command keyboard shortcut

28 Jul 2014   #1
Adams Seven

Windows 7 Professional 64
 
 
How to add parameter to run command keyboard shortcut

Thanks to the SevenForums tutorial at:

Run Command - Create Shortcut

I know how to create a desktop shortcut for the run command, and can pin it to the taskbar.

I thought I could add a parameter by clicking on the end of the Target line in the shortcut's properties:

%windir%\explorer.exe shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}

and typing in the parameter I want (in this case, firefox.exe, with a switch to load a profile from a specific folder.)

Unfortunately, that's not working as I had hoped. With or without the parameter, I still get the Run command prompt window telling me to:

Type the name of a program, folder, document or Internet resource, and Windows will open it for you.

I'd like to bypass this window, and have the shortcut load Firefox with the specified profile.

Can anyone tell me how to do this?


My System SpecsSystem Spec
.
28 Jul 2014   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Adams,

If you like, you should be able to create a shortcut for the program you want to run instead to do this.
My System SpecsSystem Spec
28 Jul 2014   #3
Adams Seven

Windows 7 Professional 64
 
 

Thanks for the response, Brink. I was able to make a shortcut to firefox.exe, but not with the parameter I need. Even adding the -p switch after firefox.exe gives me a 'name specified in the Target box is not valid' error.

If there's a way to include a parameter in a shortcut, I'm very interested! Otherwise, I'm still stuck.
My System SpecsSystem Spec
.

28 Jul 2014   #4
MilesAhead

Windows 7 32 bit
 
 

Please post the entire target line as it is in the shortcut.
My System SpecsSystem Spec
28 Jul 2014   #5
Ztruker

Windows 10 Pro X64
 
 

This is what I do for Seamonkey, which is a derivative (sort of) of Firefox.

"C:\Program Files (x86)\SeaMonkey\seamonkey.exe" -P Rich

The -P name is the key.

For Firefox, it would be

"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P Name
My System SpecsSystem Spec
28 Jul 2014   #6
Adams Seven

Windows 7 Professional 64
 
 

That put me on the right track, Ztruker; thank you. I couldn't get it to work with just the -p switch -- which kept pulling up the profile manager -- but when I edited the shortcut target line to read:

"c:\Program Files(x86)\Mozilla Firefox\firefox.exe" -profile "x:\users\myname\AppData\Roaming\Mozilla\Firefox\Profiles\myname.default"

it consistently worked.

(For the benefit of anyone wandering across this thread with a similar problem: please note quotes around "c:\Program Files(x86)\Mozilla Firefox\firefox.exe" and "x:\users\myname\AppData\Roaming\Mozilla\Firefox\Profiles\myname.default" but not around -profile between the two.)
My System SpecsSystem Spec
29 Jul 2014   #7
Ztruker

Windows 10 Pro X64
 
 

I'll have to play with this some time as I only have a single account under Firefox as I use Seamonkey for my browser.

One thing I'll mention, the -P has to be upper case for SeaMonkey so probably true for Firefox. Glad you got it working.
My System SpecsSystem Spec
29 Jul 2014   #8
Ztruker

Windows 10 Pro X64
 
 

I just tried it. I created a new account called RichK then modified the Shortcut target to

"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P RichK

and it works correctly. -P must be uppercase and the account name has to match.
My System SpecsSystem Spec
29 Jul 2014   #9
MilesAhead

Windows 7 32 bit
 
 

Also you should be able to stick a "%1" on the end to drag urls onto it.
My System SpecsSystem Spec
Reply

 How to add parameter to run command keyboard shortcut




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Folder Shortcut Parameter - Open in a New Window (Two Questions)
OS: Win7 Ultimate x64 (up-to-date) Question 1: I need to create a shortcut to a folder that opens in a new window instead of re-using the current window. And I do not want to change the way all windows work (I know there is a system setting to make all new windows open in a new window; I don't...
Customization
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
sleep command works fine but keyboard shortcut not, any help?
Hi there. I created a shortcut with this command: C:\Windows\System32\rundll32.exe Powrprof.dll,SetSuspendState Sleep when I click on that, it works fine but shortcut keyboard not work. I set several shortcut keys in this shortcut but nothing works fine. (note: when I press ctrl key it display...
General Discussion
How to set in console in 'format' command parameter /A: more than 8Kb?
Hi, /A:8192 is the last that works. If I try /A:16384 it failed with error: "bad parameter /A:16384" The whole command is: format e: /fs:FAT32 /a:8192
General Discussion
Run Command - Create Shortcut
How to Create a "Run" Command Box Shortcut in Windows 7 and Windows 8 This tutorial will show you how to create or download a Run command dialog shortcut that you can pin and use where you like in Windows 7 and Windows 8. The default keyboard shortcut to open the Run dialog is Windows + R....
Tutorials
New shortcut command missing
My "New Shortcut command is missing. I really thought there was one there before. If there was and it somehow got removed, I would really like to know how to get it back. Look at the screenshot if you don't know what I mean.
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 05:37.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App