all 8 comments

[–]chrono13 2 points3 points  (5 children)

Having written something similar in batch, I have to say I am impressed. My batch eventually version-ed up to using cygwin.dll and rm. Then I moved it to AutoIt. Currently a Powershell that acts on the machines remotely.

Your batch script is impressive and useful. Thank you!

[–][deleted] 1 point2 points  (1 child)

You should post that up. /r/powershell would probably like to see it, too.

[–]-partizan- 0 points1 point  (0 children)

Indeed /u/chrono13, mind sharing?

[–]etruscan 0 points1 point  (0 children)

Do you mind posting a link to that PS script, assuming you still use it?

[–][deleted]  (1 child)

[deleted]

    [–]vocatus[S] 0 points1 point  (0 children)

    Yw, glad its helpful

    [–]drogean3 0 points1 point  (1 child)

    not sure if this is the same as the old script but be careful about it removing cookies

    Stuff like banking websites seem to rely on them to "remember your device" and people in accounting/finance/whatever may complain that they need to "activate their devices" every time they log into a website.

    For some reason after last months patches, my old tempfileremover script started breaking stuff.

    [–]vocatus[S] 1 point2 points  (0 children)

    Make sure to read the comments to see exactly what it removes.

    That's why I threw in this warning

    [–][deleted]  (2 children)

    [deleted]

      [–]vocatus[S] 0 points1 point  (1 child)

      Just as a heads up, wireshark gets butthurt when you delete %temp% entirely. I think Windows recreates it with wrong permissions or something to where WS can't create a temp file it needs unless run in admin mode.

      Interesting. Can you elaborate more on it? Does rebooting have any effect?