Difference between revisions of "VBS Scripting Examples"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) (New page: =Examples= ==Clear Directory== <pre> ' ' ClearLoadRunnerDirectory.vbs ' ' ' 'Option Explicit Dim fso 'Dim folder ' Dim pcpfolder folder = "C:\lr" ' Set fso = CreateObject("Scripting.Fil...) |
PeterHarding (talk | contribs) |
||
Line 5: | Line 5: | ||
' | ' | ||
' ClearLoadRunnerDirectory.vbs | ' ClearLoadRunnerDirectory.vbs | ||
' | ' | ||
Revision as of 17:32, 26 July 2008
Examples
Clear Directory
' ' ClearLoadRunnerDirectory.vbs ' 'Option Explicit Dim fso 'Dim folder ' Dim pcpfolder folder = "C:\lr" ' Set fso = CreateObject("Scripting.FileSystemObject") 'If fso.FolderExists( folder ) Then ' fso.DeleteFolder folder 'End If fso.DeleteFolder folder, true 'Wscript.Echo strProcesses WScript.Quit