search folder and check file in -


i need this:

check file exist, in predefined folder ..

my example:

dim fso set fso = createobject("scripting.filesystemobject") if (fso.fileexists("file1.exe")) if (fso.fileexists("secondfile.exe)) msgbox "file esxist",  0+16, "---" wscript.quit() else dim objshell set objshell = wscript.createobject( "wscript.shell" ) objshell.run("a file") wscript.sleep(1000) objshell.sendkeys "{enter}" end if else msgbox "not founded file1.exe" wscript.quit() end if 

if founded file1.exe,then search second file .. if founded,then send message "file exist" if not founded, run program , exit wscript.

what need? files in folder, locate script provide before launch!

for example, i'll give c: \ folder trololo locate file, looks , if have perform operations.

how can solve search before ask folder locate file? there no way figure out: (

sorry bad english :/


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -