Home / Microsoft / Microsoft DOS / Want To Create Shortcut with batch
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: 1 [2]  All - (Bottom) Print
Author Topic: Want To Create Shortcut with batch  (Read 2040 times)
The_Game_Bane
Topic Starter
Rookie



Posts: 10


« 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
IP logged
The_Game_Bane
Topic Starter
Rookie



Posts: 10


« 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
IP logged
ghostdog74
Mentor



Thanked: 26
Posts: 1,511


« 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.
IP logged

Pages: 1 [2]  All - (Top) Print 
Home / Microsoft / Microsoft DOS / Want To Create Shortcut with batch « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.091 seconds with 19 queries.