18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Run the Scripts as Batch using _execute
hi Narayan
Trying with _execute command. it is not showing any sort of errors but at the same time it is not executing the code present in the file .
my code is like this:
file.bat:
\\sahi\\scripts\\dates.sah
\\sahi\\scripts\\date.sah
new.sah
_execute("D:\\sahi\\scripts\\file.bat");
can any one help me in this case
with Regards
Priya
Trying with _execute command. it is not showing any sort of errors but at the same time it is not executing the code present in the file .
my code is like this:
file.bat:
new.sah
_execute("D:\\sahi\\scripts\\file.bat");
can any one help me in this case
with Regards
Priya
Comments
Your file.bat has the path to dates.sah and date.sah which themselves are not any sort of executables. so executing file.bat won't yield any results.
just to test _execute() replace the contents of file.bat to "ping 127.0.0.1" and then run your new.sah
regards,
pankaj.
i have tried with that , but there is no difference. Is there any other way to make use of _execute Statement .
With Regards
Priya
try this code: I assume that your windows root is in C:
I also tried this with a vbscript file which also runs fine.
As far as Batch files are concerned Narayan can throw some light on this
Regards,
Pankaj.