[tt]'your givens[green]
sfile="filename.txt" 'with path if needed.
scmd="merger.exe " & sfile 'with the necessary path setting[/green]
dim fso
set fso=createobject("scripting.filesystemobject")
if fso.fileexists(sfile) then
if fso.getfile(sfile).size<>0 then
createobject("wscript.shell").run scmd
else
wscript.echo sfile & " has the size of 0. Action not taken."
end if
else
wscript.echo sfile & " cannot be found."
end if
set fso=nothing
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.