VBS Scripting Examples

From PeformIQ Upgrade
Jump to navigation Jump to search

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