Jump to content
Sign in to follow this  
Wollf

filecopy problem

Recommended Posts

Wollf

i dont know what why this doesnt work when i use

Filecopy(@GUI_DRAGFILE , @scriptdir & "\" & GUICtrlRead($2)) it works fine but when i try use

Filecopy(@GUI_DRAGFILE , @scriptdir & "\" & GUICtrlRead($2) & "\" guictrlread($pic1))

get

Filecopy(@GUI_DRAGFILE , @scriptdir & "\" & GUICtrlRead($2) & "\" guictrlread($pic1))

Filecopy(@GUI_DRAGFILE , ^error

error in expression

Share this post


Link to post
Share on other sites
anixon

i dont know what why this doesnt work when i use

Filecopy(@GUI_DRAGFILE , @scriptdir & "\" & GUICtrlRead($2)) it works fine but when i try use

Filecopy(@GUI_DRAGFILE , @scriptdir & "\" & GUICtrlRead($2) & "\" guictrlread($pic1))

get

Filecopy(@GUI_DRAGFILE , @scriptdir & "\" & GUICtrlRead($2) & "\" guictrlread($pic1))

Filecopy(@GUI_DRAGFILE , ^error

error in expression

This is some code that works for me and may be of help

CODE
Global $LogDir = @ScriptDir & "\LogFiles\" ;Daily and Monthly Log Files

Global $LogFile = "sTot.txt" ;Logfile Name

$DailyLog = $LogDir & (@MDAY & @MON & StringRight(@YEAR, 2)) & $LogFile;Daily Log File

;//Change File Attributes to Write

If FileExists($DailyLog) Then FileSetAttrib($DailyLog, "-R")

;//Open an existing or create a new file

$File = FileOpen($DailyLog, 9) ;Open an existing or create a new file

FileWriteLine($File, (@MDAY & "/" & @MON & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC _

& " " & $Addr & " " & $CodeMsg & " " & $Sender & $Tab & $Receipt & " " & $Num & " " & $Message))

;//Close the file

FileClose($File)

ProcessWaitClose($DailyLog, 30)

FileSetAttrib($DailyLog, "+R")

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  

×