Trying to make a bat file that runs a CMD command when u open?

Hello, I am attempting to make any bat document that operates a CMD get when ough open the item.what happens right now could be that the command only repeats once more.how am i allowed to make it making sure that when i open this bat that runs the particular command

Have a person given that batch file a similar name for the reason that CMD file If so either rename the idea, or range from the CMD file’s path while in the line which calls the idea.

Instance:
If we wished to call your winrm.cmd receive in home windows, instead belonging to the line:

winrm.cmd more instructions

you could utilize:

D:\Windows\SysWOW64\winrm.cmd more instructions

This will prevent the item from operating the batch file rather then the command line, since now there is not any ambiguity.

Leave a Reply