Sign in to follow this  
Followers 0
mcgill

Copy Script on windows xp not working

2 posts in this topic

I have run into problems with windows xp. When I have users run this script it does not create the directory and copy the files. This works perfectly on a windows 2000 machine. What line of code am I missing for xp?

Code below:

#include <GUIConstants.au3>

#include <file.au3>

DirRemove("C:\Program Files\Service Desk\Avaya", 1)

DirCreate("C:\Program Files\Service Desk\Avaya")

$workingdir = @WorkingDir

FileChangeDir("C:\Program Files\Service Desk\Avaya")

FileCopy("\\Hosvr4\Docs\Service Desk\Avaya\Avaya.exe", "C:\Program Files\Service Desk\Avaya\Avaya.exe")

FileCopy("\\Hosvr4\Docs\Service Desk\Avaya\avaya.bmp", "C:\Program Files\Service Desk\Avaya\avaya.bmp")

FileCopy("\\Hosvr4\Docs\Service Desk\Avaya\CITY.txt", "C:\Program Files\Service Desk\Avaya\CITY.txt")

FileCreateShortcut("C:\Program Files\Service Desk\Avaya\Avaya.exe", "C:\Documents and Settings\" & @UserName & "\Desktop\Avaya Password Reset.lnk")

FileChangeDir($workingdir)

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0