Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Want To Create Shortcut with batch  (Read 41698 times)

0 Members and 1 Guest are viewing this topic.

The_Game_Bane

    Topic Starter


    Rookie

    Re: Want To Create Shortcut with batch
    « Reply #15 on: December 12, 2009, 01:54:25 AM »
    REG ADD %KEY%\045 /VE /D "Adding user defined shortcuts" /f
    REG ADD %KEY%\045 /V 1 /D "rundll32 setupapi,InstallHinfSection Shortcuts 128 %systemdrive%\Apps\Standalone\shortcuts.inf" /f

    Now create a shortcuts.inf file similar to this:
    CODE
    [Version]
    Signature=$CHICAGO$

    [Shortcuts]
    UpdateInis=AddLink

    [AddLink]
    ;adds shortcut to ERUNT.exe within %ProgramFiles%\Standalone\ERUNT folder to %USERPROFILE%\Start Menu\Programs\Standalone\ERUNT
    setup.ini, progman.groups,, "group1=""%16386%\Standalone\ERUNT\"""
    setup.ini, group1,,"""ERUNT"",""""""%16422%\Standalone\ERUNT\ERUNT.EXE"""""""



    I think this is the Right one

    cud this be simplified or xplained


    thnks Brillich 4 the post

    The_Game_Bane

      Topic Starter


      Rookie

      Re: Want To Create Shortcut with batch
      « Reply #16 on: December 12, 2009, 01:58:34 AM »
      [AddLink]
      ;adds shortcut to ERUNT.exe within %ProgramFiles%\Standalone\ERUNT folder to %USERPROFILE%\Start Menu\Programs\Standalone\ERUNT
      setup.ini, progman.groups,, "group1=""%16386%\Standalone\ERUNT\"""
      setup.ini, group1,,"""ERUNT"",""""""%16422%\Standalone\ERUNT\ERUNT.EXE"""""""


      The other part iv understood

      wat abt dis part

      ghostdog74



        Specialist

        Thanked: 27
        Re: Want To Create Shortcut with batch
        « Reply #17 on: December 12, 2009, 02:19:17 AM »
        why are you doing something so complicated as to modify the registry.? as directed by sidewinder, you can use shortcut.exe, or just tweak the vbscript i gave. If you have tried them and it doesn't work, show how you did it, and any error messages you encountered.

        SAGAR GROVER



          Newbie

          • Experience: Beginner
          • OS: Other
          Re: Want To Create Shortcut with batch
          « Reply #18 on: July 08, 2013, 12:43:31 AM »
          hey guys...

          Pls sum1 help me abt

          How 2 create shortcut on desktop Using Batch file

          i cud also prefer command line software with quiet mode

          or

          Directly with dos


          i tried the command line

          xcopy r11.exe %AllUsersProfile%\desktop\r11.lnk

          wher am i going wrong


          use quotes (") in your connand it works just shortcut icon not luk as original file for example i use

          xcopy "C:\IGI2\IGI2\igi2.exe" "%AllUsersProfile%\desktop"

          SAGAR GROVER



            Newbie

            • Experience: Beginner
            • OS: Other
            Re: Want To Create Shortcut with batch
            « Reply #19 on: July 08, 2013, 12:49:28 AM »
            use quotes and it will work defiantly
            as your command is
            xcopy r11.exe %AllUsersProfile%\desktop\r11.lnk
            write like this
            xcopy "r11.exe" "%AllUsersProfile%\desktop\r11.lnk"

            answer me it works for you or not


            patio

            • Moderator


            • Genius
            • Maud' Dib
            • Thanked: 1769
              • Yes
            • Experience: Beginner
            • OS: Windows 7
            Re: Want To Create Shortcut with batch
            « Reply #20 on: July 08, 2013, 05:38:31 AM »
            He's been gone for over 4 years now.... ::)
            " Anyone who goes to a psychiatrist should have his head examined. "

            foxidrive



              Specialist
            • Thanked: 268
            • Experience: Experienced
            • OS: Windows 8
            Re: Want To Create Shortcut with batch
            « Reply #21 on: July 08, 2013, 06:12:07 AM »
            He's been gone for over 4 years now.... ::)

            ...almost.  :D