Hello,
I'm working on a backup script. And i'm now making a script to check how much freespace
there is on the USB-disk. And a different check to see how big the file is what he needs to backup.
For Example i got these values:
objLogicalDisk.FreeSpace = 25634826 (freespace on USB-disk)
FileSize = 1873152 (file size what he needs to backup)
These values are in bytes!
And i got this script:
Call StatusschermText( objLogicalDisk.FreeSpace & "-" & FileSize )
If ("FileSize" > "objLogicalDisk.Freespace") then
msgbox "STOP!!"
Else
msgbox "go on...."
End If
I want to get if the FileSize is bigger or equal then the objLogicalDisk.Freespace to get
the message: STOP
And if the value FileSize is smaller the objLogicalDisk.FreeSpace to get the message: go on....
But with the script i have now it's always showing me the message go on....
Can anyone tell me what I am doing wrong?
Enter your message below
Sign in or Join us (it's free).