Shell "mkdir"

R

Robin Clay

Greetings !

My code generates a value for

TargetDir = [say] "C:\myDir"

the line of code that reads -

Shell "mkdir " & TargetDir

generates a run-time error 53 "File not found"


How can I overcome this ?



RClay AT haswell DOT com
 
R

Ron de Bruin

Hi

Sub test()
Dim TargetDir As String
TargetDir = "C:\myDir"
MkDir TargetDir
End Sub
 
R

Robin Clay

SO simple - when you know how ! Thank you.
-----Original Message-----
Hi

Sub test()
Dim TargetDir As String
TargetDir = "C:\myDir"
MkDir TargetDir
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Robin Clay" <[email protected]> wrote
in message news:[email protected]...
Greetings !

My code generates a value for

TargetDir = [say] "C:\myDir"

the line of code that reads -

Shell "mkdir " & TargetDir

generates a run-time error 53 "File not found"


How can I overcome this ?



RClay AT haswell DOT com


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

"Application.Function.Text" doesn't work 3
SHELL command 3
Copying files 2
Don't update Links 1
Place a SHELL Window 3
Option Buttons 3
Positioning a DOS Window 4
Status Bar 1

Top