-
Easy, free VBScript debugging
As sys-admins we have to write scripts. Although the new thing is PowerShell, we still have a lot of old legacy scripts in VBScript. I was searching for an easy way to debug a VBScript, the way software developers do it using an IDE… but I do not want to install the whole Visual Studio package. Sure there are non Microsoft tools to do it, but I could not find a good, free one. After a lot of trials and tribulations, I found the easy way to debug a VBScript: Install MS debugger. (download it from here). Yes it is super old, but still works, I tested it on Windows…
-
Command to delete old log files
I found a good command to delete old logs files which were filling up my server forfiles /P “path to your files /M filename.* /D -1 /C “cmd /c del @path” This will delete filename.* files older than one day.