JHegener
2003-12-28 22:21:27 UTC
Hi guys, I'm trying to get some info about a file to be copied (the
filesize for now but eventually time and date stamps too) and then to
display that info in a msgbox which prompts the user to continue or
not. (Initially, I wanted to do this in version 2.64 but it did not
seem to like UNC paths, nor did it seem to have a function that would
return file information).
At any rate, I always get an error message when I try to embed the
variable into the msgbox prompt string. I'm sure it's something
stupid but I could not find anything in the help for variables or
msgbox that seemed to address the correct syntax. Here is a bit of
sample code... can anyone help?
$filesize = FileGetSize("\\shambala\test1\test.txt")
; Bring up a message box with file details
$answer = MsgBox(4, "Auto It", "File size is: $filesize. Proceed?)
If $answer = 7 Then
Exit
EndIf
FileCopy ("\\shambala\test1\test.txt", "\\shambala\test2\test.txt", 1)
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AutoItList/
To unsubscribe from this group, send an email to:
AutoItList-***@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
filesize for now but eventually time and date stamps too) and then to
display that info in a msgbox which prompts the user to continue or
not. (Initially, I wanted to do this in version 2.64 but it did not
seem to like UNC paths, nor did it seem to have a function that would
return file information).
At any rate, I always get an error message when I try to embed the
variable into the msgbox prompt string. I'm sure it's something
stupid but I could not find anything in the help for variables or
msgbox that seemed to address the correct syntax. Here is a bit of
sample code... can anyone help?
$filesize = FileGetSize("\\shambala\test1\test.txt")
; Bring up a message box with file details
$answer = MsgBox(4, "Auto It", "File size is: $filesize. Proceed?)
If $answer = 7 Then
Exit
EndIf
FileCopy ("\\shambala\test1\test.txt", "\\shambala\test2\test.txt", 1)
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AutoItList/
To unsubscribe from this group, send an email to:
AutoItList-***@yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/