+ Post New Thread
Results 1 to 5 of 5
ICT KS3 SATS Tests Thread, prezzie batch file to collect dps logs in United Kingdom (UK) Specific Forums; My handy batch file to get logs from dps It is hard coded bit so might need to edit it ...
  1. #1

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,920
    Thank Post
    708
    Thanked 550 Times in 365 Posts
    Blog Entries
    3
    Rep Power
    204

    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)
    Attached Files Attached Files

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,348
    Thank Post
    625
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414

    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?

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,348
    Thank Post
    625
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414

    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

  4. #4

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,920
    Thank Post
    708
    Thanked 550 Times in 365 Posts
    Blog Entries
    3
    Rep Power
    204

    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

  5. #5

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,348
    Thank Post
    625
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414

    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

SHARE:
+ Post New Thread

Similar Threads

  1. Rename a PC from a batch file - Any ideas?
    By MrLudwig in forum Windows
    Replies: 13
    Last Post: 8th December 2007, 02:40 AM
  2. executing a random command in a batch file
    By Halfmad in forum Scripts
    Replies: 12
    Last Post: 6th November 2007, 09:25 PM
  3. batch file to shutdown PCs
    By macca in forum Windows
    Replies: 5
    Last Post: 3rd May 2007, 09:20 AM
  4. Batch: Text file -> Environment variable?
    By PiqueABoo in forum Scripts
    Replies: 5
    Last Post: 13th December 2006, 11:09 PM
  5. batch file help
    By beeswax in forum Scripts
    Replies: 9
    Last Post: 3rd March 2006, 07:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •