New
#91
The above "# Run batch files.cmd" file is in this "# Run batch files.zip" file.
Run it and tell me the results.
The above "# Run batch files.cmd" file is in this "# Run batch files.zip" file.
Run it and tell me the results.
Hello @Matthew Wai, thanks for the file.
I ran it and it finished and closed the cmd Window, it DOESN'T show:
Operations completed.
Press any key to continue . . .
I have made some changes in the attached file. Please try again.
Hello @Matthew Wai, thanks for the file.
I ran it and it finished and closed the cmd Window, it DOESN'T show:
Operations completed.
Press any key to continue . . .
. . . but it did show the ERROR message as expected, and then when I closed the ERROR message, it showed the Version Window.
Last edited by Paul Black; 18 Mar 2020 at 14:52.
It seems that nothing can stop your CMD windows closing. Let's get back to basics.
Tell me whether you can see "Hello".Code:echo Hello pause
Tell me whether you can see "Hello".Code:@echo off For %%i In ("C:\Users\System-Admin\System-Admin_Implementation\*.bat") Do (echo Processing "%%i"&CMD /C "%%i") echo Hello pause
I am at my wits' end. I can't figure out why the above line will force your CMD window into closing. Hopefully, an expert will come to help you.Code:For %%i In ("C:\Users\System-Admin\System-Admin_Implementation\*.bat") Do (echo Processing "%%i"&CMD /C "%%i")
OK @Matthew Wai, not to worry and thanks for your time and effort.
I will have a look tomorrow and see if it could be the last Batch File processed that is causing the problem or something like that!
If we can figure this out then doing a script to run all the .ps1 files will probably be easy!