chiners_68 Posted June 26, 2006 Share Posted June 26, 2006 I ve got the following to copy files from the current logged on users profile to the all users profile but it dosent work. can somone correct what needs correcting in my lines to make the variable work. if i uses my usnername instead of the variable the lines work fine. its just adding in the variable that hasnt worked.FileCopy("@ProgramsDir\Paint Shop Pro 5\*.*", "C:\Documents and Settings\All Users\Start Menu\Programs\Paint Shop Pro 5\")FileCopy("@ProgramsDir\Paint Shop Pro 5\Paint Shop Pro 5.lnk", "C:\Documents and Settings\All Users\desktop\") Link to comment Share on other sites More sharing options...
BigDod Posted June 26, 2006 Share Posted June 26, 2006 Try FileCopy(@ProgramsDir & "\Paint Shop Pro 5\*.*", "C:\Documents and Settings\All Users\Start Menu\Programs\Paint Shop Pro 5\") FileCopy(@ProgramsDir & "\Paint Shop Pro 5\Paint Shop Pro 5.lnk", "C:\Documents and Settings\All Users\desktop\") Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
tittoproject Posted June 26, 2006 Share Posted June 26, 2006 "C:\Documents and Settings\All Users\desktop" --> @DesktopCommonDir "C:\Documents and Settings\All Users\Start Menu\Programs" --> @ProgramsCommonDir Link to comment Share on other sites More sharing options...
GaryFrost Posted June 26, 2006 Share Posted June 26, 2006 what tittoproject is pointing out to you would look like: FileCopy(@ProgramsDir & "\Paint Shop Pro 5\*.*", @ProgramsCommonDir & "\Paint Shop Pro 5\") FileCopy(@ProgramsDir & "\Paint Shop Pro 5\Paint Shop Pro 5.lnk", @DesktopCommonDir) 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