Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Help Please!


  • Please log in to reply
1 reply to this topic

#1 w_sp8er

w_sp8er

    Wayfarer

  • Active Members
  • Pip
  • 57 posts

Posted 04 June 2004 - 08:38 AM

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?







#2 w_sp8er

w_sp8er

    Wayfarer

  • Active Members
  • Pip
  • 57 posts

Posted 04 June 2004 - 09:12 AM

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, 04 June 2004 - 09:16 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users