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
Windows Server 2008Windows Server 2003Windows XP

Avatar of undefined
Last Comment
Rory Clerkin

8/22/2022 - Mon
SOLUTION
Rory Clerkin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
lianne143

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
Rory Clerkin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
lianne143

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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
lianne143

The content of the student.vbs is it has a .exe path and  its a printer service which it executes when user logs in .
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
LeeTutor

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.