Create A Shortcut with Parameter


  1. Posts : 9
    Windows 7 Home Premium (64-bit)
       #1

    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 Computer


  2. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #2

    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 Computer


  3. Posts : 9
    Windows 7 Home Premium (64-bit)
    Thread Starter
       #3

    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 Computer


  4. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #4

    YanAndrew said:
    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 04:21.
Find Us