mcgill Posted November 9, 2006 Share Posted November 9, 2006 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) Link to comment Share on other sites More sharing options...
GaryFrost Posted November 9, 2006 Share Posted November 9, 2006 Do the users have write access to those folders? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now