russdev Posted May 16, 2006 Posted May 16, 2006 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)getlogs.zip
plexer Posted May 16, 2006 Posted May 16, 2006 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?
plexer Posted May 16, 2006 Posted May 16, 2006 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
russdev Posted May 16, 2006 Author Posted May 16, 2006 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
plexer Posted May 16, 2006 Posted May 16, 2006 Yeah I can see what you mean. I was just amazed that my one liner actually worked Ben
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now