• Welcome to our Windows Forum community, where you'll find expert help and support for your Windows and 7, 8.1, 8, 10, 11 issues. Register for a free account to post messages, upload images, and engage with other Windows users. Join us today and discover the benefits of being part of our vibrant and supportive community.
  • Some spam users have been removed to keep our platform safe and clean. Thank you for your understanding and support!

How to make a batch file as effective as the shortcut to it.

S

Sebastian42

Guest
I have a batch file with the code

sfc /scannow

When I click on the shortcut to it, a CMD window opens and the process (visibly) runs.

But when I double click the actual batch file, there is a brief flash of something happening
which I presume is the process starting and being aborted.

How can I make the actual batch file have the same effect as the shortcut to it ?
 
Top