Jump to content

How to scan, and record locations of exes


 Share

Recommended Posts

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
Link to comment
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.


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

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.

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...