lonewolf Posted October 26, 2005 Share Posted October 26, 2005 (edited) I was wondering if autoit is capable of scanning, and recording to an ini file, the locations of exes in a directory, AND it's subdirectoies (Even if you don't know their names) I'm trying to setup a security software for my school. Thanks in advance. Edited October 28, 2005 by lonewolf Link to comment Share on other sites More sharing options...
BigDod Posted October 26, 2005 Share Posted October 26, 2005 I was wondering if autoit is capable of scanning, and recording to an ini file, the locations of exes in a directory, AND it's subdirectoies (Even if you don't know their names)I'm trying to setup a security software for my school.Thanks for your helpSearch the forums for "file search", you will be amazed at what you find to help you. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Confuzzled Posted October 27, 2005 Share Posted October 27, 2005 I was wondering if autoit is capable of scanning, and recording to an ini file, the locations of exes in a directory, AND it's subdirectoies (Even if you don't know their names)I'm trying to setup a security software for my school.Thanks for your help Try the DOS batch file command DIR C:\*.EXE /S > yourfile.iniThis is standard DOS stuff thats been around for years.Comment: Some executable files are not "exe"s - DLL's, SCR's, etc, and often students will rename things to keep them from prying eyes and careless administrators. Link to comment Share on other sites More sharing options...
lonewolf Posted October 28, 2005 Author Share Posted October 28, 2005 yes, I thought of that, I think I am going to include a recording of processes, that can be reviewed for programs that might have been hidden from scans Thanks for your help! Link to comment Share on other sites More sharing options...
Valuater Posted October 28, 2005 Share Posted October 28, 2005 yes, I thought of that, I think I am going to include a recording of processes, that can be reviewed for programs that might have been hidden from scansThanks for your help! Here is a link to a previous topic with similar needs.8) Link to comment Share on other sites More sharing options...
lonewolf Posted November 4, 2005 Author Share Posted November 4, 2005 I've used the script that you suggested, however, i would wish that it dir'd "C:\Documents And Settings\User" for exe's i've tried doing it using my limited DOS knowlage, however i haven't been able to get it to work.Alternatively:You could help me anylize the lengthy log file that is generated for the portion that entails the directory.This is the code i've started:$LogTag = FileOpen(@ScriptDir&"\logfile.ini", 0)$log = _FileCountLines(@ScriptDir&"\logfile.ini")While 1=1 $line = FileReadLine($LogTag) If @error = -1 Then ExitLoop If $line = " Directory of ......" Then ;This is where i need help! Endif EndifWend Link to comment Share on other sites More sharing options...
jefhal Posted November 4, 2005 Share Posted November 4, 2005 DIR C:\*.EXE /S > yourfile.iniAdd the /b to list only the path and file name:dir /b *.exe /s > yourfile.ini ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
lonewolf Posted November 8, 2005 Author Share Posted November 8, 2005 I would like to scan that directory and it's sub-directories Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now