Category Archives: VB script

Sendkeys

A VB Script to run outlook and send some specified keys to it. To send Ctrl+n, use “^{n}” as given below, for Alt use % Set WshShell = WScript.CreateObject(“WScript.Shell”)WshShell.Run “Outlook”WScript.Sleep 2500 ‘ Give Notepad some time to loadWshShell.SendKeys “^{n}”WScript.Sleep 1000WshShell.SendKeys … Continue reading

Posted in VB script | Leave a comment

File count VBS

I created this VB Script file to count the number of files in a folder (recursively)for example you need to count how many C, how many .h, how many .pl etc etc…and you need a report folder wise also.. ‘****************************************************************************** … Continue reading

Posted in VB script | Leave a comment

Get the size of subfolders in a folder

‘——————————————————————————–” Name: getfoldersize.vbs’ Version: 1.0′ Date: 7-5-2002′ Author: Hans van der Zaag’ Description: getfoldersize.vbs calculates the size of all subfolders within’ a folder and sorts this data in an excel workbook’ ‘———————————————————————————-‘rootfolder = Inputbox(“Enter directory/foldername: ” & _’ chr(10) & … Continue reading

Posted in Excel, VB script | Leave a comment