Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
how would i check a file's size (I know the file name too), and if it is more than 2kb and less than 4kb, then delete it? (I am trying to make a network.vbs worm remover. although i could just delete it manually, I want to use a dos batch file) Is it also possible to make a choice prompt (choose which OS to start up in? (beos / windows))?
I am hoping that i have chosen the right message board this time.

Sure, you can determine if a file is larger than 2kb and less than 4kb. Post a sample of your DIR output, so we can see how it looks.
As for your other question - possibly, but
I cannot offer any help there since I don't have BeOS and probably not your version of Windows either; I use WfW 3.11. However, you
might have to boot up 1st in one OS choose from a menu if you want to run the other OS and (after some file manovering) reboot the computer from a batch file. I think you may be better off with a dedicated boot manager, there are several free ones available on simtel or garbo.

BeOS 5 can run directly from real-mode DOS. You don't NEED to go to windoze first.
My sys lets me choose DOS, Be or Windoze by ending with the following lines in autoexec.bat:
C:\WIN98\COMMAND\choice Select environment: DOS or Windows or BeOS /c:dwb /tw,4
if errorlevel 3 goto BEOS
if errorlevel 2 goto Windows
if errorlevel 1 goto DOS
if errorlevel 0 goto DOS:DOS
goto EXIT:Windows
@call win.bat
goto exit:BEOS
E:
CD \BEOS
LOADBEOS
goto EXIT

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |