LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-30-2009, 01:19 PM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
How to use make_iso.bat in Linux via Wine?


For some reason, this script
from slax does not work

or my understanding of it that is..
Code:
@ECHO OFF



REM  ----------------------------------------------------

REM  Batch file to create bootable ISO in Windows

REM  usage: make_iso.bat c:\new-slax.iso

REM  author: Tomas M. <http://www.linux-live.org>

REM  ----------------------------------------------------



if "%1"=="" goto error1

cd ..

set CDLABEL=SLAX



slax\tools\WIN\mkisofs.exe @slax\tools\WIN\config -o "%1" -A "%CDLABEL%" -V "%CDLABEL%" .

echo.

echo New ISO should be created now.

goto theend



:error1

echo A parameter is required - target ISO file.

echo Example: %0 c:\slax.iso

goto theend



:error2

echo Error creating the ISO file

goto theend



:theend

pause
If I try to use it thru wine it says

Quote:
a parameter is required - target ISO file
Example Z:\home\bz\slax-6.1.1\make_iso.bat c:\target.iso
so, what am I doing wrong?

It doesn't work in XP either....??
 
Old 07-30-2009, 01:25 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Please show us the exact command you are using to execute the script.

(I'd venture a guess that %1 is comparable to $1 in *nix, implying an (the first) argument on the command line. According to the error, %1 is empty.)

Sasha
 
Old 07-30-2009, 01:31 PM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
um
I'm just right-clicking it and using wine to open it

I just tried it on XP too, just clicked it.

it soesn't work
something is mising from the script....

I don't know windows syntax, so have no idea how to fix
 
Old 07-30-2009, 01:35 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
For reference
here's make_iso.sh

it works flawlessly
Code:
#!/bin/bash
# ---------------------------------------------------
# Script to create bootable ISO in Linux
# usage: make_iso.sh [ /tmp/slax.iso ]
# author: Tomas M. <http://www.linux-live.org>
# ---------------------------------------------------

if [ "$1" = "--help" -o "$1" = "-h" ]; then
  echo "This script will create bootable ISO from files in curent directory."
  echo "Current directory must be writable."
  echo "example: $0 /mnt/hda5/slax.iso"
  exit
fi

CDLABEL="SLAX"
ISONAME=$(readlink -f "$1")

cd $(dirname $0)

if [ "$ISONAME" = "" ]; then
   SUGGEST=$(readlink -f ../../$(basename $(pwd)).iso)
   echo -ne "Target ISO file name [ Hit enter for $SUGGEST ]: "
   read ISONAME
   if [ "$ISONAME" = "" ]; then ISONAME="$SUGGEST"; fi
fi

mkisofs -o "$ISONAME" -v -J -R -D -A "$CDLABEL" -V "$CDLABEL" \
-no-emul-boot -boot-info-table -boot-load-size 4 \
-b boot/isolinux/isolinux.bin -c boot/isolinux/isolinux.boot ../.
 
Old 07-30-2009, 01:40 PM   #5
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OH!

I gotta use windows command line and enter

Quote:
Z:\home\bz\slax-6.1.1\make_iso.bat c:\target.iso
How would I do that thru Wine?

what's windows command line called?
 
Old 07-30-2009, 01:42 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
usage: make_iso.bat c:\new-slax.iso
You need to start the script with an argument, not just click on it.
 
Old 07-30-2009, 01:43 PM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
It's called cmd.exe, or the older one is command.com (I think).

Last edited by brianL; 07-30-2009 at 01:44 PM.
 
Old 07-30-2009, 01:46 PM   #8
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Can I get cmd.exe thru wine??

I can go try on XP too
 
Old 07-30-2009, 01:48 PM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I've never tried wine, except from bottles .
 
Old 07-30-2009, 01:52 PM   #10
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
LOL

I'm retarded when it comes to Dindows

If Wine doesn't somehow have a Windows command prompt
IT SHOULD


Also, I'm gonna start another thread all about scripts
and I'm gonna share some cool scripts and want anyone else to share theirs
 
Old 07-30-2009, 01:57 PM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I think cmd.exe is so bound up with the rest of the Windows OS it can't be run separately like other apps in Wine. And I think you really would need it for running .bat files.
 
Old 07-30-2009, 02:02 PM   #12
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by brianL View Post
I think cmd.exe is so bound up with the rest of the Windows OS it can't be run separately like other apps in Wine. And I think you really would need it for running .bat files.
This seems right.. Isn't cmd actually a part of Internet Explorer, like most other Windows components??
 
Old 07-30-2009, 02:04 PM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Did you tried wineconsole ?
or
/usr/lib/wine/cmd.exe.so program_name.bat
 
Old 07-30-2009, 02:09 PM   #14
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by GrapefruiTgirl View Post
This seems right.. Isn't cmd actually a part of Internet Explorer, like most other Windows components??
It's hard to tell what's a part of what with Windows, MS don't want people taking it to bits in case they make it better.
 
Old 07-30-2009, 02:10 PM   #15
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
nope
why?

Code:
root@bz-desktop:/home/bz# /usr/lib/wine/cmd.exe.so /home/bz/slax-6.1.1/make_iso.bat
bash: /usr/lib/wine/cmd.exe.so: Permission denied
root@bz-desktop:/home/bz#
I have cmd.exe.so
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Pioneers go in to bat for Linux LXer Syndicated Linux News 0 01-29-2007 07:03 PM
Linux equivalent of bat files anjanesh Linux - Newbie 19 12-30-2005 12:15 PM
linux bat file? Shalk Linux - General 3 07-26-2005 10:07 AM
.bat files on Linux? dave1.1 Linux - Newbie 5 10-21-2004 07:15 PM
Autoexec.bat in Linux? sikandar Linux - Software 10 08-31-2003 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration