Jump to content

feeling like a real noob help me in 30sec then lol at me!


magace
 Share

Recommended Posts

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 by magace
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...