CMD.exe script question

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Queeg
Newbie
Newbie
Posts: 4
Joined: Wed Jul 07, 2010 2:10 pm

CMD.exe script question

Post by Queeg »

I need help making a windows batch script work in wine.

I a total newbie to wine. I copied the script from a windows machine where it runs correctly. The first line is supposed to discover the name of the DVD in drive D. The %vole% is being converted into the letter I.


--This is in the cmd file.
for /F "tokens=6" %%I in ( 'vol d: ^| find /i "volume in"' ) DO (SET vole=%%I)
echo Processing %vole%
echo Starting Rip of Drive d:
time /t
"C:\Program Files\DVDFab 7\DVDFab.exe" /mode fulldisc /SUBTITLE "none" /src "d:\" /dest "C:\Movie\%vole%-dvd.iso" /Title auto /outdisc dvd9 /close


--This is from the cmd.exe terminal window
C:\bin>for /F "tokens=6" %I in ( 'vol d: ^| find /i "volume in"' ) DO (SET vole=%I)
fixme:cmd:WCMD_for /F needs to handle options
Syntax error
wine: cannot find L"C:\\windows\\system32\\'vol.exe"
File not found

wine: cannot find L"C:\\windows\\system32\\find.exe"
File not found

wine: cannot find L"C:\\windows\\system32\\DO.exe"
File not found


C:\bin>echo Processing I
Processing I

C:\bin>echo Starting Rip of Drive d:
Starting Rip of Drive d:

C:\bin>time /t
Current Time is 11:41:09 PM

C:\bin>"C:\Program Files\DVDFab 7\DVDFab.exe" /mode fulldisc /SUBTITLE "none" /src "d:\" /dest "C:\Movie\I-dvd.iso" /Title auto /outdisc dvd9 /close
Queeg
Newbie
Newbie
Posts: 4
Joined: Wed Jul 07, 2010 2:10 pm

Post by Queeg »

Solved this by moving the functionality to a bash shell script which then outputs the needed dos command into a file. Then having wine start the dos script that starts DVDFab.
click-clack
Level 2
Level 2
Posts: 14
Joined: Thu Jul 22, 2010 5:37 am

Post by click-clack »

Queeg wrote:Solved this by moving the functionality to a bash shell script which then outputs the needed dos command into a file. Then having wine start the dos script that starts DVDFab.
How do you do this? I'm trying to create a linux shell script which tells a wine application to do things on a file.
Locked