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.

Make bat file execute on windows startup from DOS

Featured Replies

Hi all

I have come up against an unexpected problem, I have got a batch file that executes in DOS Mode to copy a file on my D drive to the Start menu\Programs\Startup directory. but it does not work, and I get an error "Bad filename or command". Here is part of my code:

copy D:\Batfil~1\defrag.bat C:\WINDOWS\STARTM~1\Programs\StartUp\defrag.bat

Is there a way to make msconfig start it instead? or am I overlooking something really obvious?

Can someone please help me? Thank you!


Have a look here:

http://www.ss64.com/nt/copy.html

As a general rule, unless you do need to change the name of the file, the destination path is sufficient:

copy D:\Batfil~1\defrag.bat C:\WINDOWS\STARTM~1\Programs\StartUp

try this:

CD C:\WINDOWS\STARTM~1\Programs\StartUp
copy D:\Batfil~1\defrag.bat

The first line changes directory to the destination.

The second one copies to the current dir the file.

It could be some problem with the 8.3 naming, the above should help in troubleshooting.

jaclaz

  • Author

Thanks, I got it fixed by having it change directory to the file location and then just put in the filename without location.

Thanks for your help.

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.