Jump to content

Recommended Posts

Posted (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 by AllSystemGo
Posted (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 by omikron48
Posted (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 by Onichan

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...