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: Create A Shortcut with Parameter

5 Days Ago   #1
YanAndrew

Windows 7 Home Premium (64-bit)
 
 
Create A Shortcut with Parameter

Hi Guys,

I am trying to create a shortcut to a BIOS exe with the paramater " /writehdrfile", except I have no idea what that means.

Can someone please advise how do I go about creating a shortcut to the BIOS exe with parameter " /writehdrfile" please?

Appreciate your help on this.


Andrew


My System SpecsSystem Spec
.
5 Days Ago   #2
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

Greetings YanAndrew

In Windows 7, it is possible to create a new shortcut for a DOS program that is using a command line switch parameter. To do this you would make a shortcut for cmd.exe and supply as one argument the DOS .exe, the .exe parameter and also the Directory Path to the .exe file, all as one string between double quotes ("").

To illustrate the target syntax, it would look something similar to this:
cmd.exe /k "<DirectoryPath>/BIOS.exe /writehdrfile"

where:
cmd.exe - the command prompt (DOS prompt)
/k - switch for cmd.exe
<DirectoryPath> - full path to folder containing BIOS.exe program
BIOS.exe - DOS program
/writehdrfile - parameter for BIOS.exe
The trick is to create new shortcut for cmd.exe, then it is relatively simple from there on.
My System SpecsSystem Spec
5 Days Ago   #3
YanAndrew

Windows 7 Home Premium (64-bit)
 
 

Hello Iko22,

So basically, if the BIOS file is N4110A12.exe & it is located on my Desktop, I plonk in

cmd.exe /k "C:\Users\YanAndrew\Desktop\N4110A12.exe /writehdrfile"

in a notepad?

Then, I save just save it as N4110A12-shortcut?

Am I correct?


YanAndrew
My System SpecsSystem Spec
.

5 Days Ago   #4
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

Quote   Quote: Originally Posted by YanAndrew View Post
Hello Iko22,


in a notepad?

Then, I save just save it as N4110A12-shortcut?

Am I correct?


YanAndrew
notepad is not necessary in creating new shortcut.

instead, 1) Create a Shortcut using Microsoft's Wizard.
2) When you see box called "Type in the location of the item", then you plonk in cmd.exe /k. "C:\Users\YanAndrew\Desktop\N4110A12.exe /writehdrfile"
3) Click next, then enter file name N4110A12-shortcut
My System SpecsSystem Spec
Reply

 Create A Shortcut with Parameter




Thread Tools




Similar help and support threads
Thread Forum
Unable to create shortcuts in startup folder "cannot create shortcut"
I am unable to create a shortcut in the startup folder on my Dell Optiplex 780. Every time I try, I get the following error, "Windows cannot create a shortcut here. Do you want to place the shortcut on the desktop instead?" No I do not want it on the desktop, I want the program to start with...
General Discussion
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
How to add parameter to run command keyboard shortcut
Thanks to the SevenForums tutorial at: https://www.sevenforums.com/tutorials/21246-run-command-create-shortcut.html 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...
General Discussion
Custom 'Desktop (create shortcut)' Remove .fileextension - Shortcut
Hi guys n girls, I have for ever got sick and tired of right click -> open Send to Menu and creating a Desktop Shortcut for a file or app....then needing to go to the Desktop right click the newly made shortcut and then removing the trailing file extension, dash and words shortcut in brackets....
Customization
Create a System Image Shortcut - Create
How to Create a "Create a System Image" Shortcut in Windows 7 This will show you how to create a Create a System Image shortcut in Windows 7. To be able to use this shortcut, you must be logged in as an administrator. EXAMPLE: Create a System Image
Tutorials


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 14:20.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App