1 Attachment(s)
prezzie batch file to collect dps logs
My handy batch file to get logs from dps
It is hard coded bit so might need to edit it to get it working..
Takes two inputs workstation name as it connects to \\station name\c$ and also call ID (can by anything i use call number that is rm support site when call is opened)
Re: prezzie batch file to collect dps logs
Looks good Russ had to do that job recently and did it the manual way.
Why not just xcopy using the unc though instead of mapping a drive?
xcopy %i%\c$\progra~1\qcates~1\delive~1\TDS\config\*.* target
Ben?
Re: prezzie batch file to collect dps logs
or you can do this:
c:\"location of 7za.exe"\7za.exe a -r c:\"location of zip file to be _ create"\%1-CALLID-%2.7z _ \\%1\c$\progra~1\qcates~1\delive~1\TDS\config\*.*
As a one liner.
Ben
Re: prezzie batch file to collect dps logs
just prefer to do it that way but can do it with out map drive
reason not done it as one liner is so that expand script to get other files if needed.
russ
Re: prezzie batch file to collect dps logs
Yeah I can see what you mean. I was just amazed that my one liner actually worked :)
Ben