caramen

Simple fast question...

5 posts in this topic

#1 ·  Posted (edited)

If _IsChecked($iCheckbox1) Then

                  ;Copy de mes documents
                  FileCopy ("D:\Documents and Settings\" & @UserName & "\My Documents\*.*" , @ScriptDir & "\Profil Save\" & @UserName & "\Documents\" , $FC_CREATEPATH + $FC_OVERWRITE  )

                     EndIf

Does this is supposed to copy folders too ?

(nothing in help file)

Becose it does'nt

Edited by caramen

Share this post


Link to post
Share on other sites



The help file states "Copies one or more files", and under the Related section, points you to DirCopy for folders. What, exactly, is confusing you?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

i thoug file copy was taking folder too . i tryed to search in index Folder etc... but my bad.. i ll try.

Share this post


Link to post
Share on other sites

When a function doesn't do what you expect it to do then the help file is your friend. Don't guess, don't make any assumptions, just search the help file. If this fails, then ask the forum ;)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

When a function doesn't do what you expect it to do then the help file is your friend. Don't guess, don't make any assumptions, just search the help file. If this fails, then ask the forum ;)

it s what i did but with the word folder... not "Dir" from Directory ... yeah i am asking some stupid things sometime i know :P Thx mvp's hihi

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