Posts

Showing posts from March, 2018
Purge Printers from Windows 7 VBS
''''''''''Execute subs CheckArgsCleanupPrintersdimSleepTime''globals for sleep time in Milliseconds dimquiet''globals for no dialog dimMsg''Message string '''''''''''----------------------------------------------------- subCheckArgs()''push args into array ReDimargs(WScript.Arguments.Count-1)Fori=0ToWScript.Arguments.Count-1args(i)=WScript.Arguments(i)&""NextForargCt=0toubound(args)iflcase(trim(args(argCt)))="\sleep"thenargCt=argCt+1SleepTime=int(args(argCt))msg=msg&vbCr&"\sleep="&int(SleepTime)endififlcase(trim(args(argCt)&""))="\q"orlcase(trim(args(argCt)&""))="\quiet"thenquiet=truemsg=msg&vbCr&"\quiet="&quietEndifNextifmsg>""thenmsg=msg&vbCrendsub'''''''------------------------…

Front loading link names for future redirects

If we create dated front loaded link names for web pages and Google search we can use those links as received by the server in a request to forward the links to correct pages. A more complex process would snapshot pages with a GUID and their links and manage the connectivity for redirects to the corrected content or archive of the pages.