Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

dos scripting question

Name: darkness_and_light 2008-06-24 1:44

Working on a hardware/software inventory project for a museum.  For budget reasons they can't afford to buy software to do the data collection.  As an intern they basically dropped the project in my lap and told me to have fun.

I could just write the project proposal to have each department fill out a paper form for each computer they own, which basically means interns in other departments will do my work for me.  However I've decided to cobble together something to do the data collection for them (also saving me the trouble of data entry).

I've written a batch file to take care of the data collection on each local computer.  Now I'm wondering how I'm going to process all these files once they all get sent back to me.  One idea I have is to put all the data files(hopefully with unique names) into one directory, route the results of a DIR into a .txt file then sequentially operate on the file matching each of the names in the .txt file.

Anyone have any better ideas or suggestions on another way to do this?  I've worked with C++, Java, and VB but I haven't done anything with them involving working with directories or files.

Name: Anonymous 2008-06-24 1:45

Here is the batch file I wrote if anyone is interested:

@echo off

name.vbs

echo Checking registry for software licenses
rem Adobe licenses
regedit.exe /e photoshopcs2.txt HKEY_LOCAL_MACHINE\SOFTWARE\ADOBE\PHOTOSHOP\9.0\
regedit.exe /e photoshopcs3.txt HKEY_LOCAL_MACHINE\SOFTWARE\ADOBE\PHOTOSHOP\10.0\
regedit.exe /e illustratorcs2.txt HKEY_LOCAL_MACHINE\SOFTWARE\ADOBE\ILLUSTRATOR\11.0\
regedit.exe /e illustratorcs3.txt HKEY_LOCAL_MACHINE\SOFTWARE\ADOBE\ILLUSTRATOR\12.0\

rem Microsoft Office licenses
regedit.exe /e office2000.txt HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\OFFICE\9.0\
regedit.exe /e officexp.txt HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\OFFICE\10.0\
regedit.exe /e office2003.txt HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\OFFICE\11.0\
regedit.exe /e office2007.txt HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\OFFICE\12.0\

rem FileMaker licenses
regedit.exe /e filemakerpro8.txt "HKEY_LOCAL_MACHINE\SOFTWARE\FILEMAKER\FILEMAKER PRO\8.0\"
regedit.exe /e filemakerpro9.txt "HKEY_LOCAL_MACHINE\SOFTWARE\FILEMAKER\FILEMAKER PRO\9.0\"

rem Macromedia Dreamweaver licenses
regedit.exe /e dreamweaver8.txt "HKEY_CURRENT_USER\SOFTWARE\DREAMWEAVER 8\"

echo Checking version of Windows
copy C:\WINDOWS\system32\prodspec.ini version.txt

echo Checking system information
winmsd /categories +SystemSummary-Resources-Components+ComponentsStorageDrives-SWEnv-InternetExplorer-Apps /report systeminfo.txt

complete.vbs

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List