Jump to content

Recommended Posts

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
Posted

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

Posted

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.

Posted

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)

Posted

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

Posted

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

Posted

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

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
×
×
  • Create New...