Tuesday, July 28, 2015

execute batch file in invisible mode




How do I execute batch files at startup so that I won't see the cmd like black window.
I have this batch file which I use to attach vhd file on startup:


  @echo off
SET TEMPFILE="%TEMP%\%RANDOM%.TXT"
echo SELECT VDISK FILE=X:\sap.vhd >%TEMPFILE%
echo ATTACH VDISK>>%TEMPFILE%
DISKPART /s %TEMPFILE%
del %TEMPFILE%

Is there anything I could do to make the execution invisible?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...