How can I run a VB program in DOS mode?

I would like to write a program to rebuild my hard drive.

When I boot into dos, I get the message "Cannot run from DOS mode".

??????

Thanx
Grandpa