Skip to content

Instantly share code, notes, and snippets.

@millsy
Created October 16, 2013 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save millsy/7007633 to your computer and use it in GitHub Desktop.
Save millsy/7007633 to your computer and use it in GitHub Desktop.
Using OSDump to collect a set of logs/crash dumps and copy them to a network share
@ echo off
net use j: \\server-name\folder-name
cd /d "%PROGRAMFILES%\OpenSpan\OpenSpan Runtime Enterprise"
osdump.exe -osdir "%USERPROFILE%\My Documents\OpenSpan Studio for VS 2010" -mode hang
cd /d "%USERPROFILE%\My Documents\OpenSpan Studio for VS 2010"
xcopy OSDump_*.* J:\%username%\ /I /Y /C
net use j: /delete
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment