A
Alex
I am using the following code to create a batch file and then run it from
Access. The batch file is sucessfully created and it then proceeds to run
but the output fie of the batch is never created. The batch will only work
when I run it with my mouse.
Public Sub CreateAfile()
Set fs = CreateObject("Scripting.FileSystemObject")
Set A = fs.CreateTextFile("C:\alex\Nelson\test\batch.bat", True)
A.WriteLine ("copy C:\alex\Nelson\test\$test $test.TXT")
A.Close
Call Shell("C:\alex\Nelson\test\batch.bat", 1)
End Sub
Access. The batch file is sucessfully created and it then proceeds to run
but the output fie of the batch is never created. The batch will only work
when I run it with my mouse.
Public Sub CreateAfile()
Set fs = CreateObject("Scripting.FileSystemObject")
Set A = fs.CreateTextFile("C:\alex\Nelson\test\batch.bat", True)
A.WriteLine ("copy C:\alex\Nelson\test\$test $test.TXT")
A.Close
Call Shell("C:\alex\Nelson\test\batch.bat", 1)
End Sub