Search found 1 match
- 25 Mar 2021 00:55
- Forum: DOS Batch Forum
- Topic: bat file only by computer name
- Replies: 2
- Views: 3704
bat file only by computer name
hi, How to run command in bat script only if computer name start with XXX ? like 01 / 02 / 03 The bat file I made is as follows, but the file does not work and closes. I wonder where am I going wrong. @echo off IF %COMPUTERNAME%== "01" ( start_1.bat ) ELSE IF %COMPUTERNAME%== "02" ( start_2.bat ) EL...