Run file with Sandboxie using autoit -


my path of file c:\documents , settings\12313\my documents\downloads\bubble_hit_tsa31dibx.exe

i wanna run sandboxie anytime redownload,the name of file changing. example:buble_hit_**.exe " * " changing.

you can use wildcard feature of filefindfirstfile , filefindnextfile autoit. helpfile functions contains example of enumerating on set of files match pattern, interested in first, have call filefindnextfile once.

i implement function following:

; returns matching file name. ; if file not found return empty string , sets @error 1 func _findfile($wildcard)     local $hsearch = filefindfirstfile($wildcard)     if $hsearch = -1 return seterror(1, 0, "")      local $ret = filefindnextfile($hsearch)     local $found = not @error     fileclose($hsearch)      if not $found return seterror(1, 0, "")     return $ret endfunc   ;==>_findfile 

which called (to find program files (x86)):

msgbox(0, "test", _findfile("c:\program files (*)")) 

once have file name run(...) etc. etc. rest of should normal stuff can find helpfile.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -