Hi All,
I have a problem in vbs to read a binary file. Have everybody a solution for that ?
For Text files I have the following solution, but how does this work with binary files (images...) ??
if len (filename) > 0 then
answer= MsgBox ("Do you want to send this file ? "& vbCrlf & filename, vbYesNo + vbQuestion)
if answer= vbYes then
set fs= CreateObject("Scripting.FileSystemObject"
if fs.FileExists(filename) then
set data= fs.OpenTextFile(filename, 1, false, -2)
inhalt= data.ReadAll
data.close
else
MSgBox "The File" & filename & "don`t exists !",vbExclamation
end if
end if
end if
I have a problem in vbs to read a binary file. Have everybody a solution for that ?
For Text files I have the following solution, but how does this work with binary files (images...) ??
if len (filename) > 0 then
answer= MsgBox ("Do you want to send this file ? "& vbCrlf & filename, vbYesNo + vbQuestion)
if answer= vbYes then
set fs= CreateObject("Scripting.FileSystemObject"
if fs.FileExists(filename) then
set data= fs.OpenTextFile(filename, 1, false, -2)
inhalt= data.ReadAll
data.close
else
MSgBox "The File" & filename & "don`t exists !",vbExclamation
end if
end if
end if