Hello all
I am trying to run a batch file from VBA script, this script copied from this forum but unable to run the same code
please help
this is my batch file
@Echo off
powershell.exe -Command "gc e:\testxml\abc.xml | sc -Encoding ASCII E:\testxml\upload.xml"
del e:\testxml\abc.xml
xcopy upload.xml E:\Tabadul_final_files_productcion\ALJ\RTFTP\Manifest\upload\
del upload.xml
cd E:\Tabadul_final_files_productcion\ALJ\RTFTP\Manifest
calling batch file
Dim argh As Double
argh = Shell("E:\testxml\psm.bat", vbNormalFocus)
getting this error
please help
thanks
I am trying to run a batch file from VBA script, this script copied from this forum but unable to run the same code
please help
this is my batch file
@Echo off
powershell.exe -Command "gc e:\testxml\abc.xml | sc -Encoding ASCII E:\testxml\upload.xml"
del e:\testxml\abc.xml
xcopy upload.xml E:\Tabadul_final_files_productcion\ALJ\RTFTP\Manifest\upload\
del upload.xml
cd E:\Tabadul_final_files_productcion\ALJ\RTFTP\Manifest
calling batch file
Dim argh As Double
argh = Shell("E:\testxml\psm.bat", vbNormalFocus)
getting this error
please help
thanks