Sign in to follow this  
Followers 0
lonewolf

How to scan, and record locations of exes

8 posts in this topic

#1 ·  Posted (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 by lonewolf

Share this post


Link to post
Share on other sites



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

Search the forums for "file search", you will be amazed at what you find to help you.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

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.ini

This 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.

Share this post


Link to post
Share on other sites

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! B)

Share this post


Link to post
Share on other sites

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! B)

Here is a link to a previous topic with similar needs.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Endif

Wend

Share this post


Link to post
Share on other sites

DIR C:\*.EXE /S > yourfile.ini

Add 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

Share this post


Link to post
Share on other sites

I would like to scan that directory and it's sub-directories

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0