Sign in to follow this  
Followers 0

Help Please!

2 posts in this topic

Posted

Hi,

1stly the folder is a cdrom, for example "01-06-04 Off The Net" (the mask for the folder is "01-??-?? Off The Net" as the month & year keeps changing).

here's the code:

If NOT FileExists ( $OTN_CDDrive & "\01-??-?? Off The Net" ) Then Exit

Dim $FolderToCopy = $OTN_CDDrive & "\01-??-?? Off The Net"

MsgBox ( 0, "", "Folder to copy = " & $FolderToCopy )

DirCopy ( $OTN_CDDrive & "\01-??-?? Off The Net", "c:\" )

the $OTN_CDrive is 'd:' (for example)

if i have:

[code]If FileExists ( $OTN_CDDrive & "\01-??-?? Off The Net" ) Then MsgBox ( 0, "", "Folder Exists!" )

then I get a MsgBox.

-=-

Ok, what I'm trying to get working is:

If NOT (a folder matching the Mask exists on "d:") Then Exit

Dim $FolderToCopy = "d:" & "\01-??-?? Off The Net"

MsgBox ( 0, "", "Folder to copy = " & "d:\01-06-04 Off The Net" )

DirCopy ( "d:" & "\01-??-?? Off The Net", "c:\" )

ending with an exact copy (+subfolders+files) on the c: drive, as in:

c:\01-06-04 Off The Net\*.*

-=-

Any ideas any1?

Share this post


Link to post
Share on other sites



Posted (edited)

Thank you for allowing me to post the above, as I've just fixed it myself :huh2: by rereading my post :D

Edited by w_sp8er

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

  • Recently Browsing   0 members

    No registered users viewing this page.