Skip to content

Clive Roberts

SQL DBA

Menu
  • Server Setup Scritps
  • mssql
  • Scripts
  • MS Notification Services

Category: Scripts

The Disk Cleanup executable file cleanmgr.exe

November 18, 2015
| No Comments
| Scripts

Summary The Disk Cleanup executable file cleanmgr.exe and the associated Disk Cleanup button are not present in Windows Server® 2008 or in Windows Server® 2008 R2 by default. Cause This is by design, as the Disk Cleanup button is part of the Desktop Experience feature. In order to have Disk Cleanup button appear on a disk’s Properties dialog,…

Read More »

Posted in Scripts

CODE: Delete Temporary Internet files

July 10, 2013
| No Comments
| Scripts

Option Explicit ‘ Variables Dim objWSH, sProfile, objFolder Dim objFSO, sProfileRoot, objProfileFolder Dim sTemp, sWindows ‘ Object Initialisation   set objFSO=CreateObject(“Scripting.FileSystemObject”)   ‘ Get user profile root folder set objWSH    = CreateObject(“WScript.Shell”) sTemp = objWSH.ExpandEnvironmentStrings(“%TEMP%”) sWindows = objWSH.ExpandEnvironmentStrings(“%WINDIR%”) sProfile = objWSH.ExpandEnvironmentStrings(“%USERPROFILE%”) sProfileRoot=objFSO.GetFolder(sProfile).ParentFolder.Path set objWSH=nothing ‘ Main Code   set objProfileFolder=objFSO.GetFolder(sProfileRoot) for each objFolder in objProfileFolder.SubFolders…

Read More »

Posted in Scripts

CODE: ipconfig /all

June 24, 2013
| No Comments
| Scripts

ipconfig /all   This option displays the same IP addressing information for each adapter as the default option. Additionally, it displays DNS and WINS settings for each adapter.  ipconfig /release This option terminates any active TCP/IP connections on all network adapters and releases those IP addresses for use by other applications. ‘ipconfig /release” can be used…

Read More »

Posted in Scripts

CODE: WScript loop

April 5, 2013
| No Comments
| Scripts

Dim oShell Set oShell = WScript.CreateObject (“WScript.Shell” Dim counter counter = 0 Do counter = counter + 1 oShell.Run “C:\php\php.exe d:\data\webapps\php\crawler_all.php”, 9 WScript.Sleep 10000 Loop Until counter = 18

Read More »

Posted in Scripts

CODE: change the IP with script

August 19, 2011
| No Comments
| Scripts

oShell.run “cmd /K CD C:\ & ipconfig/flushdns” oShell.run “cmd /K CD C:\ & Netsh interface ip set address name=””Local Area Connection”” source=static addr=IP mask=255.255.252.0 gateway=IP gwmetric=1″

Read More »

Posted in Scripts

CODE:script to run a php page

July 7, 2011
| No Comments
| Scripts

Set WshShell = WScript.CreateObject(“WScript.Shell”)

Read More »

Posted in Scripts

CODE: to kill a task

March 6, 2011
| No Comments
| Scripts

strCommand = “taskkill /F /IM php.exe” WshShell.Run strCommand, 0, TRUE WScript.Sleep 100 ‘bit of an over kill but it makes sure its dead WshShell.Run strCommand, 0, TRUE WScript.Sleep 100 WshShell.Run strCommand, 0, TRUE WScript.Sleep 100 Software engineers do the job better!

Read More »

Posted in Scripts

CODE .vbs to close a browser window

January 3, 2011
| No Comments
| Scripts

CODE .vbs to close a browser window

Read More »

Posted in Scripts

Categories

Sidebar

  • November 2017 (1)
  • March 2017 (1)
  • October 2016 (13)
  • July 2016 (1)
  • May 2016 (1)
  • April 2016 (2)
  • March 2016 (1)
  • February 2016 (1)
  • November 2015 (2)
  • October 2015 (1)
  • September 2015 (1)
  • August 2015 (1)
  • July 2015 (7)
  • June 2015 (1)
  • May 2015 (6)
  • April 2015 (2)
  • March 2015 (2)
  • February 2015 (1)
  • January 2015 (1)
  • December 2014 (1)
  • November 2014 (1)
  • October 2014 (1)
  • September 2014 (1)
  • August 2014 (1)
  • July 2014 (1)
  • June 2014 (1)
  • May 2014 (1)
  • April 2014 (1)
  • March 2014 (1)
  • February 2014 (1)
  • January 2014 (1)
  • December 2013 (1)
  • November 2013 (1)
  • August 2013 (1)
  • July 2013 (1)
  • June 2013 (1)
  • April 2013 (1)
  • March 2013 (1)
  • February 2013 (1)
  • January 2013 (1)
  • December 2012 (1)
  • August 2012 (1)
  • June 2012 (1)
  • May 2012 (1)
  • April 2012 (1)
  • March 2012 (1)
  • February 2012 (1)
  • January 2012 (1)
  • October 2011 (1)
  • September 2011 (1)
  • August 2011 (1)
  • July 2011 (1)
  • June 2011 (1)
  • May 2011 (1)
  • April 2011 (1)
  • March 2011 (1)
  • January 2011 (1)
  • December 2010 (1)
  • September 2010 (1)
  • August 2010 (1)
  • July 2010 (1)
  • May 2010 (1)
  • March 2010 (1)
  • February 2010 (1)
  • January 2010 (1)
  • Server Setup Scritps
  • mssql
  • Scripts
  • MS Notification Services

Precious Lite 2022 | All Rights Reserved. Precious Lite theme by Flythemes