[vbscript] Make a directory and copy a file

In VBS how do you make a directory and then copy a file into it?

Id like to make a folder in the root of C e.g. C:\folder and then copy a file from \server\folder\file.ext into that new folder

This question is related to vbscript

The answer is


You can use the shell for this purpose.

Set shl = CreateObject("WScript.Shell") 
shl.Run "cmd mkdir YourDir" & copy "