|
-
Jun 14th, 2000, 04:09 AM
#1
Thread Starter
Frenzied Member
Hey Whats up everyone, I'm making this program, and I need to make a DOS BOOT disk, if anyone knows how to do that, please respond, or if you aren't regestered please e-mail it to me at [email protected]
Thanks
Minne Me
-
Jun 14th, 2000, 05:05 AM
#2
Addicted Member
I believe its format a: /s
its been a while since I have used DOS.
-
Jun 14th, 2000, 09:13 AM
#3
Thread Starter
Frenzied Member
What do you exactly mean when you say
A: /S
I know that A: is the floppy drive, what is /S? is it a folder or file name, or a text file that says what program to open?
-
Jun 14th, 2000, 11:00 AM
#4
New Member
/s
The /s stands for "system files". It tells the format command to copy the system files to the disk after formating it, to make it bootable.
Ruben
-
Jun 15th, 2000, 01:46 AM
#5
Thread Starter
Frenzied Member
Re: /s
Can Some one please tell me what code to write to do that?
-
Jun 15th, 2000, 02:11 AM
#6
Try this
Code:
Shell "C:\windows\command\format.com A: /s",vbNormalFocus
-
Jun 15th, 2000, 02:24 AM
#7
Thread Starter
Frenzied Member
Ok, What you said works, but I need it to make a DISK that could load MY program from dos, not the windows boot disk, I need it to be like an CD's AUTORUN, except on a floppy disk, and starts from dos
-
Jun 15th, 2000, 02:28 AM
#8
To do that you need to create your own Autoexec.bat file, and tell it to load your program after it finishes its work.
So use the format command and then copy your custom autoexec.bat file to the disk.
-
Jun 15th, 2000, 04:40 AM
#9
Thread Starter
Frenzied Member
do you know how to make autoexec.bat
I think that you make it in notepad. if so, you know what to write in notepad
-
Jun 15th, 2000, 07:58 AM
#10
PowerPoster
DOS Mode
Just wanna to know can a Visual Basic program run under DOS mode?
-
Jun 15th, 2000, 08:13 AM
#11
Thread Starter
Frenzied Member
-
Jun 15th, 2000, 04:59 PM
#12
Hyperactive Member
This was the strangest thread i ever seen...
-
Jun 15th, 2000, 05:01 PM
#13
Fanatic Member
to create a boot disk you can also use
Iain, thats with an i by the way!
-
Jun 15th, 2000, 05:27 PM
#14
Format A: /s, doesn't work in Windows NT/2000 and the new ME(the successor of win98).
-
Jun 15th, 2000, 05:43 PM
#15
Hyperactive Member
A VB program can't run in DOS.
At least, not when you use the latests VB versions. I believe up to VB2, there was a DOS version.
-
Jun 15th, 2000, 11:00 PM
#16
Fanatic Member
Jesus People, Didn't you ever work in tech support?
Under win 95/98 you can use Sys.com.
C:\windows\command\sys.com
followed by the drive letter you wish to make bootable. If it's a HDD then the partition needs to be active (see Fdisk.exe) Otherwise Command.com is coppied and the boot sector updated (although not the Mater boot record, but that's not important unless the MBR was corrupt or was running linux)
NT and Win2k do not have a copy of sys.com for you to use because these these systems don't boot from command.com and have nothing to transfer. Further more if they are running NTFS and you do boot them from a boot disk you will not have access to the main file system files.
So, To answer your question. Use sys.com on dos/95/98 (using shell or the API) and forget it on win2k and NT as these systems are not designed to be accessed this way (although you may need to us a recovery disk to reload your SCSI RAID Partitions)
You can't distribute the sys.com as it will try to copy the local command.com of the same version. IE, Win95b (with Fat32 support) is not usable with the sys.com from win95a (first release) and of course NT doesn't have a command.com to distribute.
What are you actually trying to do? Just boot a system? There are programs built in to operating systems for generating recovery disks...
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
Jun 16th, 2000, 01:52 AM
#17
Thread Starter
Frenzied Member
Ok, What I'm trying to do is make a password program (that loads before the explorer does), so I need to make an Emergancy Boot Disk that will start may other program that will change the context of a .DAT file. And Dependin on what that .DAT file is, My password program (that loads before the explorer) will do diffrent things.
-
Jun 17th, 2000, 07:12 AM
#18
Lively Member
Hey guys come on it's basic tech stuff.
Didn't you ever look at technical informations.
-First of all you don't need DOS boot disk, just a simple windows boot disk
*(not a repair disk from windows). And no matter what people have
told you if you would have needed a DOS boot disk it's *Impossible* to do one with
windows. A windows boot disk boot in DOS mode but it's different than a DOS boot disk.
Using the sys command of windows will make a Windows (DOS mode) boot disk.
But if you want your VB application to create a boot disk.
Code:
x = Shell ("C:\windows\command\format.com A: /s", 1)
or
x = Shell ("C:\windows\command\sys A: ", 1)
-Second forget it you can not make a VB application that run in DOS mode, unless you
have a pre VB3 version. Otherwise you will have to do it in C/C++. Turbo C++ is relatively easy find.
So if you don't understant what i said! Well have your work cut out for you !!!
If you want more information send me a E-mail.
If possible please provide codes.
Process by example is the best way to learn.
-
Jun 17th, 2000, 09:52 AM
#19
Addicted Member
You Can't Run VB Application Before Explorer Starts !
You Can't Run windows apps with out explorer
LOL
VB 1.0 Is in Windows (very shity)
VB IS NOT DOS COMPATABLE
BASIC IS DOS
"VISUAL BASIC" is WINDOWS
DUH>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Later Ya'll
-
Jun 17th, 2000, 10:19 AM
#20
Addicted Member
this is a very very very nice thread, were you awake when you asked about VB apps in DOS??? i feel like in 1990 , autoexec.bat and config.sys and Borland c++ with the blue screen, yeek, and if you want to make a simple program just to show u a very simple menu you have to write 2 kilometers of code, yeeeeeeek, and if u simply forget the " ; " in the end of the line, you will have 2000001 errors, yeeeek, and the installation processes, PLEASE INSERT DISK #1 ,,,PLEASE INSERT DISK #2, #3, #4......#109 ,,that was very boring, and the versions of dos which has no DELTREE command, if you have a folder "i mean directory" with many subfolders, you will have to enter every single subfolder, and use DEL. and then RD subfoldername,,,,,blah blah blah, BORING, and use that NC program, with a very nice 2 tree lists, yeeeeeeek, and that game "Prince" 1 and 2, hehehehehe, but the best thing was NO CRASHES , that was the only nice thing, at least i think.
What do u guys think??????
-
Jun 17th, 2000, 10:39 AM
#21
Thread Starter
Frenzied Member
Re: You Can't Run VB Application Before Explorer Starts !
actually you could, I already tried it and it worked
-
Jun 17th, 2000, 10:40 AM
#22
Thread Starter
Frenzied Member
Re: Re: You Can't Run VB Application Before Explorer Starts !
This thread is really going no where, could someone help me? If you need more details contact me at [email protected] (aol screen name: dimava)
[Edited by dimava on 06-17-2000 at 11:43 PM]
-
Jun 17th, 2000, 10:42 PM
#23
Fanatic Member
I'm not sure what you want to hear??? There are many basic facts pointed out to you on this thread that you haven't explained...
1.) VB requires windows (you can use the API so make a command prompt program but you still need windows active (because you need the winAPI for that)
2.) What is the APP on the boot disk? a VB app????? with it's run time library???? or just some dos program you've written in C or basic?
No one on this thread is really clear what you're trying to achieve but they've given you the benefit of the doubt that you know what you're doing in a general sense and just tried to answer you're sys question.
If you're running from a boot disk, windows won't load, without windows there is no VB (even if you managed to get command.com, your app and the vbrun file onto a foppy.
We just assumed you weren't trying to do that, and maybe you're not!
We answered what little of the question you gave us about how to make a boot disk... we can't guess the rest of the questions because we're lost as to what you're doing.
Please explain.
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
Jun 18th, 2000, 12:44 AM
#24
Lively Member
I agree with Paul282
If you need to run your app on a disk and boot with it
you can't do what you want to do.
You would need to have the entire windows graphic system
on the boot disk to make your app run or something
unthinkable like that.
It's a little bit impossible to do you project.
Not with VB. At least.
And many of our answers pointed to that.
If possible please provide codes.
Process by example is the best way to learn.
-
Jun 18th, 2000, 06:12 AM
#25
Thread Starter
Frenzied Member
DETAILS
Ok, what I need is the following:
what I want to happen is I put in a floppy disk (before the computer starts) then when the computer starts it reads the disk and deletes C:\test.dat
Now what I need is to know how to make the computer delete c:\test.dat when it starts
-
Jun 18th, 2000, 07:10 AM
#26
Addicted Member
autoexec.bat
to delete, you can simply add a line to autoexec.bat to delete it:
del c:\test.dat
That's it
-
Jun 18th, 2000, 07:11 AM
#27
PowerPoster
I think what you need is just add this line in your Autoexec.bat of your Boot Disk will do
Del C:\test.dat
-
Jun 18th, 2000, 08:52 AM
#28
Thread Starter
Frenzied Member
in what program can I make the file Autoexe.bat? I am assuming that I can make that in notpade but I'm no sure
-
Jun 18th, 2000, 08:59 AM
#29
PowerPoster
Notepad
All you need is just open the notepad and type the following parameter.
ECHO OFF
DEL C:\test.dat
-
Jun 18th, 2000, 09:07 AM
#30
Fanatic Member
Originally posted by dimava
in what program can I make the file Autoexe.bat? I am assuming that I can make that in notpade but I'm no sure
Autoexec.bat is just a windows batch file that auto-executes at boot.
You just fill it up with normal dos commands and it runs them one at a time.
It's just a text file with a .bat extention
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
Jun 18th, 2000, 09:12 AM
#31
Thread Starter
Frenzied Member
-
Jun 18th, 2000, 02:31 PM
#32
New Member
vb app quicker than the eye
well when you think about it, windows 95/98 have an option that let you "log into" the pc but you can click on cancel and there goes the only real reason for a passord.
now this "log into" option is just an app that loads up just after explorer, then just hide everything from the user.
this is just a theory of mine, and like most of my theorys(ie: the world IS flat, we are round) they tend to be wrong, so we'll wait for that med student to reply and see if i'm right...
-
Jun 19th, 2000, 03:37 AM
#33
Thread Starter
Frenzied Member
Re: vb app quicker than the eye
yea I was thinking the same thing a while ago, but I doubt it.
-
Jun 19th, 2000, 08:20 PM
#34
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|