When i run the bat file the command prompt appears even if i use @echo off
some commands' prompts are visible so i need to make command prompt invisible while it is working
CodePudding user response:
Put >nul
at the end of the sentence.
for Example:
copy example1.txt example2.txt >nul
CodePudding user response:
I found it create a VSBScript and write
Dim strArgs
strArgs = "cmd /c C:\YourPath\YourFile.bat"
oShell.Run strArgs, 0, false