PDA

View Full Version : [ubuntu] .bat files to .sh



Lamiaregina
June 21st, 2011, 08:41 PM
Hey,
I'm trying to install windows xp alongside ubuntu. I have all the files on a USB stick and run fine on the windows side but it has a .bat file that obviously doesn't run on ubuntu. Can someone please convert it to .sh for me? I have tried but find it too confusing.

Here is the code:

@echo off
cd Install
cd Programs
cd peinst
call peinst.cmd

Thanks.

Maheriano
June 21st, 2011, 08:44 PM
The CD commands will work fine but you're calling a .cmd file which will only run in Windows. It can't be converted.

EDIT - Actually, what is it you're trying to do? If you're installing Windows, just put the media in and reboot. That's it.

Lamiaregina
June 21st, 2011, 08:46 PM
so what could i use instead of .cmd? or should i just erase it from the code?

I tried inserting it and rebooting but it doesn't work

smurphy_it
June 21st, 2011, 08:48 PM
If I recall the .cmd file is a text file as well. Just look at the file contents with a text editor.

Lamiaregina
June 21st, 2011, 08:49 PM
If I recall the .cmd file is a text file as well. Just look at the file contents with a text editor.

The .cmd is within the code i have to activate a command prompt which will install xp when i press 5 and enter, it's not a separate file itself

Maheriano
June 21st, 2011, 09:52 PM
Dude....don't press anything.
If your computer will boot from a USB stick, just put it in, reboot and wait for the prompt.
If it won't boot from USB, either go into the BIOS and figure out why or burn it to CD and do it that way.

You're going in completely the wrong direction here.

Mark Phelps
June 22nd, 2011, 02:28 PM
It looks like you're trying to convert the .bat file into shell script so you can install MS Windows from INSIDE Ubuntu -- which you can't do!

You need to follow the advice given about making bootable MS Windows installation media.

psusi
June 22nd, 2011, 03:03 PM
You do not run anything on the disk to install Windows; you must boot from the disk.