Wollf Posted February 7, 2009 Posted February 7, 2009 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 , ^errorerror in expression
anixon Posted February 7, 2009 Posted February 7, 2009 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 , ^errorerror in expressionThis is some code that works for me and may be of helpCODEGlobal $LogDir = @ScriptDir & "\LogFiles\" ;Daily and Monthly Log FilesGlobal $LogFile = "sTot.txt" ;Logfile Name$DailyLog = $LogDir & (@MDAY & @MON & StringRight(@YEAR, 2)) & $LogFile;Daily Log File;//Change File Attributes to WriteIf 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 fileFileWriteLine($File, (@MDAY & "/" & @MON & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC _ & " " & $Addr & " " & $CodeMsg & " " & $Sender & $Tab & $Receipt & " " & $Num & " " & $Message));//Close the fileFileClose($File)ProcessWaitClose($DailyLog, 30)FileSetAttrib($DailyLog, "+R")
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