Thursday, February 24, 2011

Script to create a folder


A simple VB script can create a folder on a system. Folder creation is very simple all are known, but why I write this script, because if we want create a folder on all system, we can use this on logon script through group policy.
1)     Open your notepad, copy the below code.

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder("c:\Serveradmin") 
 msgbox  “Successful created”
  And save as .vbs extension and execute it, now you check the “C” drive, the folder is created. For details check the below video.

1 comment:

BALAJI.R said...

Nice Script Where did u get this kind of scripts