Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What's wrong with this batch file please?

Featured Replies

I am trying to learn how to create an auto-installation cd and at the 'batch file' stage of the intermediate section this is a sample batch file:

@echo off

title Batch File Testing

echo Hello World

echo.

echo Starting MS Paint

start mspaint

echo.

echo Starting Wordpad

start Wordpad

echo.

pause

exit

The problem is when I run it the two programs just keep opening over and over again and I have to restart the computer because I can't stop them.

Thanks for any advice :)

There's nothing wrong with the batch file itself, so it must have something to do with the way you call it.

I bet it's named start.bat or start.cmd which would cause it to call itself over and over. ;)

  • Author

Oh no I'm so silly! Ha and I thought my CPU was going to explode as well :w00t:

I had named it mspaint.cmd and I guess that must've just kept opening it because it was called that. I changed it to TestBatch.cmd and everything is cool.

Thanks very much for your help :)

Edited by goosh

what is the name of yout CMD file?

Yes! I always avoid naming my CMD/BAT with a name reserved for DOS commands.

Use proper syntax in your batch file.

If you used

start mspaint.exe

instead of

start mspaint

This could have been avoided.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.