How to Run Avast at the DOS Prompt

Written by tiffany garden
  • Share
  • Tweet
  • Share
  • Email

The Avast antivirus program can be run during bootup to scan for viruses outside of Windows. This feature is useful when a virus prevents you from booting into your computer, a virus prevents you from running antivirus software while it is active or if the virus changes files while they are being scanned. Avast has commands for many different functions so the program can be effectively run at the command prompt.

Skill level:

Things you need

  • Avast (except Avast Home Edition)

Show MoreHide


  1. 1

    Restart your computer. Press "F8" to bring up your boot options menu.

  2. 2

    Choose "Safe Mode with Command Prompt."

  3. 3

    Type "aswcmd.exe" (without quotes), a space and a supported parameter to run commands. Common Avast command parameters are "/*" (without quotes) to scan local hard drives, "/c" (without quotes) to fully scan all files, "/h" (without quotes) to receive a help listing of all command prompt parameters and descriptions of the parameters, "/m" (without quotes) to test boot sectors and "/p" (without quotes) to have Avast automatically deal with viruses.

  4. 4

    Press "Enter."

Tips and warnings

  • Avast Home does not offer any command prompt features, so you need one of the other editions of the program to access the commands.

Don't Miss


  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.