|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Create Icon Shortcut
I need to delete an Icon Shortcut from a user's desktop and then copy another Icon Shortcut from the Server to their desktop. I was thinking of using VBScript, but not sure how to go about doing it.
Or would this be easier with a .bat file? And again, how would I go about it. Thanks for any help you could provide. ok ... i came across this code: VBS Code:
if there's an easier way to do this, i'd be interested in hearing about it. If you can tell me when you would use the oLink.Arguments I would appreciate it.
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 Last edited by mehere : August 27th, 2007 at 05:35 PM. |
|
#2
|
||||
|
||||
|
Hi, mehere.
That's the proper way of creating a shortcut with WSH. oLink.Arguments is used to provide a string of command line arguments to be appended to the target path to create the shortcut's command line.
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
|
#3
|
||||
|
||||
|
can you give me an example of what would go there?
also, when i delete the desktop icon ... it deletes it from the desktop directory but the icon still remains on the desktop until i restart or relogin. is this normal? thanks nilpo for your input. |
|
#4
|
|||||
|
|||||
|
Quote:
TargetPath = "C:\Windows\System32\wscript.exe" Arguments = "C:\myscript.vbs" Quote:
Quote:
![]() |
|
#5
|
||||
|
||||
|
makes sense. thanks for your help.
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||||
|
|||||
|
vb Code:
|
|
#8
|
||||
|
||||
|
thanks nilpo ... will add that to the current code i have ... appreciate the help.
|
|
#9
|
||||
|
||||
|
Quote:
|