Sign in to follow this  
Followers 0
AllSystemGo

Moving file to another

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

Why is it that I get "Could not obtain attributes" on every single file??

Share this post


Link to post
Share on other sites

#4 ·  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

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