Link to home
Start Free TrialLog in
Avatar of dreynier
dreynier

asked on

Shortcut on a remote desktop

Hi
I have to remotely install a new application on every windows 95 workstations. The application setup works fine but I need to put an icon shortcut on the desktop.
I've found the line "RunDLL32 AppWiz.Cpl,NewLinkHere %1" in the registry but I don't know how it works. What is for %1
Could you give me an example.
(Copying the *.lnk from a workstation to another doesn't work because the UNC is used.)

Thanksfor help
Daniel
Avatar of jsa
jsa

The %1 means whatever parameter you pass to it. To give an example, it's kinda like the DOS command  

del abc.def

Here, the abc.def is the filename parameter you are passing to the del command).

It's just a method of specifying WHICH file you want to perform some action to.

That Registry key just tells Windows what to do when you "Create Shortcut" or copy & "Paste Shortcut" . What Windows then does is passes the file that is getting a shortcut to it created to the AppWiz function of RunDLL32. In other words, say you wanted to create a shortcut to explorer.exe. You would right-click on explorer.exe and choose "Create Shortcut". Windows would then apply explorer.exe (which becomes %1) to the AppWiz.Cpl function, which would then create the shortcut to explorer.exe.

As for the main issue, does this have to be a shortcut? Couldn't you just put a batch file on each machine's desktop? The batch file could just be

@echo off
yourapp.???





ASKER CERTIFIED SOLUTION
Avatar of leflon
leflon
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial