Link to home
Start Free TrialLog in
Avatar of lianne143
lianne143Flag for United States of America

asked on

Copying a shortcut file to the users desktop in XP

Hi

I have a .hml shortcut which was sent by a survey department.I downloaded the html shortcut.When i open it directly opens a webpage with the user name and password already entered.I have to say ok to logs into the website.

We use window 2008 DC and I want this shortcut be placed on all the XP PC users desktop.We use VB script when the user logs in. Is it possible add a script so that shortcut is copied to the users desktop.

Or if you have any other better way of doing this please suggest.

Thanks
SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland 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
Avatar of lianne143

ASKER

I copied the batch file to the c drive of the local PC and If I execute the .bat file logged in as a administrator , it copies the .htm file to the desktop. But if I run as a user it says access denied.
xcopy "\\AppServer\Shared\WebLink.htm" "C:\Documents and Settings\All Users\Desktop"
SOLUTION
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
SOLUTION
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
Now  when I run the .vbs locally on client PC as a user,the file gets copied successfully to the user desktop.

But when I add this line to the existing user logon script
xcopy "\\AppServer\Shared\WebLink.html" "%userprofile%\Desktop"

and when the user logs on I get a pop up window , which says:

Windows Script host
Script: \\Server1\netlogon\student.vbs
Line: 8
Char:47
Error:unexpected end of statement
Code:800A04401
Source:Microsoft VBScript Complation error
SOLUTION
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
The content of the student.vbs is it has a .exe path and  its a printer service which it executes when user logs in .
SOLUTION
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
Avatar of LeeTutor
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
ASKER CERTIFIED SOLUTION
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