• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

how to make a .bat ?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Crash893

"The man in black fled across the desert,
Joined
Mar 13, 2001
okay im not even sure its a .bat file i need to make


but here is what i have to do

i have to convert all the comptuers in the office from fat32 to ntfs

and then have them reboot



is there anyway to make a file that would do all this?

quick answers would be apreshated
 
Well, i don't know the restart command but i will tell u what u need to put in the file.


Start Notepad.

insert the following command with out the ""

"convert c: /FS:NTFS /V"

then

File -> Save As

Select the column were it says 'Save as type' then click 'All Files'

Now in the 'File Name Column' put this filename in with out the ""

"convert.bat"

and then save it to the floppy.

Then restart the machines in MS-DOS or what ever and access the floppy.

Then type in

a:\convert.bat

and follow the on screen instructions..

Someone else can fill in the restart command.
 
cant you just run it from windows?

this is xp where dealing with so there is no boot to dos
 
yea so i made the file and ran it and it did this for like 500 lines

any ideas?

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V

C:\Documents and Settings\rbarbrow\Desktop>convert c:\ FS:NTFS /V
 
that happened to me...all i did is place it on a floppy and it stopped it.

Then again, i am using Windows 2000 adv Server, so there might be a different command for Windows XP.

Use the Help Program in windows and type in 'convert' and look for something about converting to NTFS etc.
 
I think there might be an echo or somthing? I remeber typing out echo when I did bats at best buy. But that was years ago.
 
Did it loop those lines over and over, or did it just display that whenever you hit the enter key to run the program?

If it's the second, it's simply echoing to the screen. It dosen't really matter, but if you don't want it to echo that line, then all you have to do is put the line #ECHO OFF and it should go away.

If it's repeating over and over, requiring a CTRL+BREAK or something like that, I don't know what's wrong. There shouldn't be anything causing it to loop.

JigPu
 
loop and here is a cut and paste of the contense of the .bat


" convert c:\ FS:NTFS /V "
 
OK, after checking the help file on the convert command, I think that this should solve the problem.

Replace the line with this...
convert C: /FS:NTFS /V

That should run the program, and give you verbose output on what it's doing.


JigPu
 
same thing

but my system is already converted

so mabey thats effecting ill go try i on the lab
 
JigPu said:
... put the line #ECHO OFF and it should go away.

Sorry to be fastidious, but that should be @echo off. (case doesn't mattter.)

The @ prevents that line from echoing on the screen as if typed, so you could just use in infront of the convert command, like:

@convert C: /FS:NTFS /V

If this is to be done to the entire network, well, there are a few ways to do it. It depends what it's like in your office. You could put the command in a logon script if you use them, and email all the users as to what is going on before hand. Or use remote access if you have it (like VNC or remote desktop.) Or just go to each computer and run the command. I'm not sure about user rights though, you may not be able to run that command as a user. (Can't remember right now.)

If you want to make life simpler, use this in your batch file:


@echo off
echo Y|convert C: /FS:NTFS /V
shutdown -r


This will send a Y to the convert command and automagically answer (Y)es to the question: Convert cannot gain exclusive access to the C:, so it cannot convert it now. Would you like to schedule it to be converted the next time the system restarts (Y/N)? and then restart the computer.
 
Last edited:
i have admin right just i dont control the network thats a diffrent department

what im hopeing is to just give out this .bat in an email and have them run it when they leave from work

actually that wont work since the users dont have admin rights

well ill just put it on my network drive and long in as me on every comptuer and then just run it i guess

there are three of us so it shouldnt be that bad
 
Movax said:
Sorry to be fastidious, but that should be @echo off. (case doesn't mattter.)
I knew # didn't look quite right.... I couldn't remeber what it was, and # was close (one number away :D), though I could have checked one of my BAT files to be sure.

I guess my use of XP is starting to effect my DOS abilities. Time to fire up my old 8086 or the 386 so I can get back in the zone! :D

Thanks for the correction Movax!!!
JigPu
 
FireMogle said:
oh yeah, @echo off, the good ol days are comming back.

i hear ya there :) that is the only way that my family knew how to use dos... i wrote batch menus for everything back in the day :) i am surprised i could do that... heck, i did that in late elementary school - middle school times... :D
 
Back