I'm not sure if there is a better way to do this, but the people I need to
hand this off to eventually are not that technical and the batch file will
make it easy for them. I could probably do four code sections in theh
vbscript as well...
I get an excel file from the HR system for new users and before we create
them we search for duplicate IDs, account names etc. I have 4 individual vb
scripts that perform the individual searches, but you have to specify the
file name when you run them. I would like to call each in succession from a
batch file but pass the file name only once so each line in the batch file
will use the same file.
This is how I run from command prompt:
cscript UML_SearchScript_EID_DoesExist.VBS C:\userfilehere.xls
This is the batch file:
Rem UserExistsCheck.bat
cscript UML_SearchScript_EID_DoesExist.VBS
cscript UML_SearchScript_SAM_DoesExist.VBS
cscript UML_SearchScript_SID_DoesExist.VBS
cscript UML_SearchScript_UPN_DoesExist.VBS
The batch file works fine but asks me for the file at each line... I would
like to feed it the file and walk away, then come back to 4 text file
outputs as these sometimes take a while to process, there are a lot of users
to search through.
Any ideas?
--
Sean M. Loftus
Enterprise Architect
Loftus Consulting, Inc.
www.LoftusConsulting.com
sean(removeme)@loftus.org