Computing.Net > Forums > Disk Operating System > Dos batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dos batch file

Reply to Message Icon

Name: SquashedRoadkill
Date: September 2, 2000 at 08:49:36 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Laurence
Date: September 3, 2000 at 01:49:01 Pacific
Reply:

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.


0

Response Number 2
Name: moiety
Date: September 4, 2000 at 19:09:08 Pacific
Reply:

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



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Dos batch file

Dos Batch File Commands www.computing.net/answers/dos/dos-batch-file-commands/11921.html

File Size in DOS Batch file www.computing.net/answers/dos/file-size-in-dos-batch-file/3105.html

DOS Batch file to FTP files from UNIX www.computing.net/answers/dos/dos-batch-file-to-ftp-files-from-unix/2105.html