magace Posted January 25, 2014 Share Posted January 25, 2014 (edited) lol why isnt this working #include <FileConstants.au3> Local $LogPath = "C:logschant" Local $WebPath = "C:logswebserver" While 1 sleep(1000) DirCopy($LogPath,$WebPath) WEnd also tried #include <FileConstants.au3> Local $LogPath = "C:logschant" Local $WebPath = "C:logswebserver" While 1 sleep(1000) DirCopy($LogPath,$WebPath) WEnd thx Edited January 25, 2014 by magace Link to comment Share on other sites More sharing options...
gruntydatsun Posted January 25, 2014 Share Posted January 25, 2014 is the value of $LogPath corect? Should it be chat ? Local $LogPath = "C:logschant" Link to comment Share on other sites More sharing options...
magace Posted January 25, 2014 Author Share Posted January 25, 2014 (edited) is the value of $LogPath corect? Should it be chat Local $LogPath = "C:logschant" Nope its chant seems like it should work. there are like 4 text files in the directory. Edited January 25, 2014 by magace Link to comment Share on other sites More sharing options...
Malkey Posted January 25, 2014 Share Posted January 25, 2014 This worked for me. Local $LogPath = "C:\logs\chant" Local $WebPath = "C:\logs\webserver" If DirCopy($LogPath, $WebPath, 1) Then ; 0 = (default) do not overwrite existing files; 1 = overwrite existing files. MsgBox(0, "", "Directory copied") Else If StringInStr(FileGetAttrib($LogPath), "D") > 0 Then MsgBox(0, "", "Directory not copied" & @CRLF & " Unknown error") Else MsgBox(0, "", "Directory not copied" & @CRLF & '"' & $LogPath & '" does not exist') EndIf EndIf Link to comment Share on other sites More sharing options...
magace Posted January 25, 2014 Author Share Posted January 25, 2014 that worked great thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now