AllSystemGo Posted October 30, 2009 Share Posted October 30, 2009 (edited) Ok here is my problem, I need to copy a zip file from all my user folders and I have no clue how to even start the script. My tree is like so Users All My UserName _ProfileUser ZipFile What I would need the script to do is in the root folder I need to go in the first folder, in the _ProfileUser and copy the zipfile to another location, then move on to the next folder. I looked into the FileFindFirstFile but I'm not sure that is what I need. Thank you for the help! UPDATE: ok so I figured maybe _FileListToArray would be able to help me out here! Let me know If i'm going in the right direction! Edited October 30, 2009 by AllSystemGo Link to comment Share on other sites More sharing options...
omikron48 Posted October 30, 2009 Share Posted October 30, 2009 (edited) A file attribute of D indicates that the file is a directory/folder. FileGetAttrib gives you the attributes of a file given by FileFindNextFile. Edited October 30, 2009 by omikron48 Link to comment Share on other sites More sharing options...
AllSystemGo Posted October 30, 2009 Author Share Posted October 30, 2009 Why is it that I get "Could not obtain attributes" on every single file?? Link to comment Share on other sites More sharing options...
Baraoic Posted October 30, 2009 Share Posted October 30, 2009 (edited) Looks like your using Vista or Windows 7 so do you have permissions when running the script for other users profiles? If you put #RequireAdmin then it should make UAC ask for permissions and give it rights not too use but worth a try. Edited October 30, 2009 by Onichan 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