Jump to content
Sign in to follow this  
magace

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

Recommended Posts

magace

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

Share this post


Link to post
Share on other sites
gruntydatsun

is the value of $LogPath corect?

Should it be chat ?

Local $LogPath = "C:logschant"

Share this post


Link to post
Share on other sites
magace

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 by magace

Share this post


Link to post
Share on other sites
Malkey

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

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  

×