Ive got this script which copying a selected file to some another folder,
I want to limit the choose of the file in size \ 5mb.
I mean: if I select file with size more than 5mb then I won't be able to continue.
thanks in advance!
Code: Select all
FormatTime, TimeString,, LongDate
FileSelectFile, OutputVar, s,
SplitPath, OutputVar, name
if OutputVar =
{
MsgBox 0x180030, , file not chosen!
return
}
else
FileDelete, c:\%TimeString%\*.*
FileCreateDir, C:\%TimeString%
FileCopy, %OutputVar%, c:\%TimeString%\, 1
MsgBox 0x180040, , file loaded:`n "%name%"
return