bat script keeps running windows
In windows, if you have a command line executable with the same name of your
bat filename, and the batch file contains this command, the batch file keeps
looping.
Example:
Create the file net.bat on your desktop.
In your file write this text: net
Double click the file and it will keep looping.
The cause of this behaviour is the order of execution of the commands.
The command you want to execute is in one of the folders in your path.
But the batch file is in your current folder so it gets executed first,
causing the loop.
Are there any code examples left?
New code examples in category Assembly
-
Assembly 2022-03-27 19:40:42 create your own macro in assembly language
-
Assembly 2022-03-22 21:55:01 printf format specifiers c
-
Assembly 2022-03-20 07:00:11 how to listen for changes on an ObservableMap
-
Assembly 2022-03-11 20:40:11 vundle vim-javascript
-
Assembly 2022-03-01 08:30:06 restart kde
-
Assembly 2022-02-24 12:00:40 assembly print
-
Assembly 2022-02-16 03:15:03 vim shortcuts keyboard code
-
Assembly 2022-02-12 23:50:25 hello world x64 assembly
-
Assembly 2022-02-02 19:11:11 cout boolalpha