I tried to run a batch file using shell command. my code is as below. it throws an error run time error:5, invalid procedure call and on debut it points out the shell command line. pl clarify and solve the problem.

My code to run the batch file.

Code:
Dim path As String
path = ActiveWorkbook.path
Dim retVal, A, fs
Dim coln As String
coln = Mid(path, 1, 1)
 
Set fs = CreateObject("Scripting.FileSystemObject")
...