What I want to do is have a text value in a string which will then be executed.

E.G

dim strcommand as string
strcommand = "mkdir c:\directory"

'code goes here to execute the strcommand

Anyone know how to do this.

I don't want to call external programs I want to use the buit in VB commands. e.g mkdir, kill etc