PC Review
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 Developer
Create folder in vbscript
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 Developer
Create folder in vbscript
![]() |
Create folder in vbscript |
|
|
Thread Tools | Rate Thread |
|
|
#11 |
|
Junior Member
|
a much easier way is shown in this function I just made, feel free to use it however you wish
if NOT makeFolder("c:\Program Files\xpto\123\client\") then wscript.echo "problem making folder" '=============== 'makeFolder it creates a folder and it's subfolders '=============== function makeFolder(byVal pFolder) makeFolder=FALSE dim oShell set oShell = WScript.CreateObject ("WSCript.shell") oShell.run "cmd.exe /c md """ & pFolder & """" makeFolder=TRUE end function |
|
|
|
|
|
#12 |
|
New Member
|
Hi All,
Can you help me in creating the VBS to create the folder with machine name at the specified location Machine name=xxxxxx the folder should be created at c:\demo\machine name Thanks in advance |
|
|
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

