Need a script to find certain file
I need a script to search user's PC for database (mdb or Mbl) and tell me where was it located and the user it found it on.
I need to do this to a department label. .
ie
w:\work\client.mbd tsmith
w:\work\inventory tsmith
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
khanthecomputerguy
9 years ago
Posted by:
SMal.tmcc
9 years ago
I did not create this and test so if you have a glitch let me know
you can run a script to do a (the single > overwrites and the >> appends)
run a script against the label
launch a program
$(KACE_SYS_DIR)
cmd
/c dir *.mdb /s > C:\ProgramData\Dell\KACE\user\findmdb.txt
(check wait for completion)
launch a program
$(KACE_SYS_DIR)
cmd
/c dir *.mbl /s >> C:\ProgramData\Dell\KACE\user\findmdb.txt
then create a CIR
shellcommandtextreturn(cmd /c if exist C:\ProgramData\Dell\KACE\user\findmdb.txt type C:\ProgramData\Dell\KACE\user\findmdb.txt)
you can run a script to do a (the single > overwrites and the >> appends)
run a script against the label
launch a program
$(KACE_SYS_DIR)
cmd
/c dir *.mdb /s > C:\ProgramData\Dell\KACE\user\findmdb.txt
(check wait for completion)
launch a program
$(KACE_SYS_DIR)
cmd
/c dir *.mbl /s >> C:\ProgramData\Dell\KACE\user\findmdb.txt
then create a CIR
shellcommandtextreturn(cmd /c if exist C:\ProgramData\Dell\KACE\user\findmdb.txt type C:\ProgramData\Dell\KACE\user\findmdb.txt)
Posted by:
anonymous_9363
9 years ago