J
Jeffrey Grantz
I have the following routine that I thought was streight forward (I should
know better)
Private Sub DOS_Command()
Dim lRetVal As Long
lRetVal = Shell("erase ""Z:\IDW2\XML Report Files\*.txt""")
End Sub
When the shell line gets executed, I get a diagnostic "Verify that the file
exists in the specified location". The files are there. If I go to a
command line and execute the same command. it performs fine. Any ideas or
better ways to accomplish the same thing?
know better)
Private Sub DOS_Command()
Dim lRetVal As Long
lRetVal = Shell("erase ""Z:\IDW2\XML Report Files\*.txt""")
End Sub
When the shell line gets executed, I get a diagnostic "Verify that the file
exists in the specified location". The files are there. If I go to a
command line and execute the same command. it performs fine. Any ideas or
better ways to accomplish the same thing?