Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 17:43
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
MS-DOS batch files
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
nic007

Joined: 13 Nov 2011
Posts: 734

PostPosted: Fri 03 Jan 2014, 01:13    Post subject:  MS-DOS batch files  

I have a DOS batch file used to run a specific windows program (doing a specific function). I also run this program via WINE on Puppy and would like to know if it will be possible to use a script similar to that of the DOS batch script. Attached the batch file I use in Windows.
multiconvert.zip
Description 
zip

 Download 
Filename  multiconvert.zip 
Filesize  256 Bytes 
Downloaded  65 Time(s) 
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Fri 03 Jan 2014, 03:27    Post subject:  

Batch files are just scripts. They are to windows what shell scripts are to linux (disclaimer: broad analogy Very Happy with accompanying broad grin).


I dunno what ttscmd.exe is or does but if you use wine you could probably write a shell script to do something similar. Is there a similar program availale natively? That would be a better option.

Maybe something like...

Code:
#!/bin/bash
for i in "path/to/the/Documents/*.txt" ;do #forward slashes, # = REM
wine "ttscmd.exe /ttm "$i" -s 162 -w 128 -r 16 -b 16 -q 7"
done

Some wine user will come up with the correct script sooner or later. But that should be enough to give you the gist of things.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
nic007

Joined: 13 Nov 2011
Posts: 734

PostPosted: Fri 03 Jan 2014, 06:20    Post subject:  

01micko wrote:
Batch files are just scripts. They are to windows what shell scripts are to linux (disclaimer: broad analogy Very Happy with accompanying broad grin).


I dunno what ttscmd.exe is or does but if you use wine you could probably write a shell script to do something similar. Is there a similar program availale natively? That would be a better option.

Maybe something like...

Code:
#!/bin/bash
for i in "path/to/the/Documents/*.txt" ;do #forward slashes, # = REM
wine "ttscmd.exe /ttm "$i" -s 162 -w 128 -r 16 -b 16 -q 7"
done

Some wine user will come up with the correct script sooner or later. But that should be enough to give you the gist of things.

Thanks for the feedback.. Ttscmd.exe is the text to speech command-line application for 2nd Speech Center (a text to speech program)and the other part of the script the parameters of the MP3 output files. The executable and the documents directory are in the same location on my windows partition.
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 528

PostPosted: Sat 04 Jan 2014, 12:19    Post subject:  

nic007 wrote:
01micko wrote:
Batch files are just scripts. They are to windows what shell scripts are to linux (disclaimer: broad analogy Very Happy with accompanying broad grin).


I dunno what ttscmd.exe is or does but if you use wine you could probably write a shell script to do something similar. Is there a similar program availale natively? That would be a better option.

Maybe something like...

Code:
#!/bin/bash
for i in "path/to/the/Documents/*.txt" ;do #forward slashes, # = REM
wine "ttscmd.exe /ttm "$i" -s 162 -w 128 -r 16 -b 16 -q 7"
done

Some wine user will come up with the correct script sooner or later. But that should be enough to give you the gist of things.

Thanks for the feedback.. Ttscmd.exe is the text to speech command-line application for 2nd Speech Center (a text to speech program)and the other part of the script the parameters of the MP3 output files. The executable and the documents directory are in the same location on my windows partition.


There is a pet for espeak. You may want to look into that. It may give you a Linux native way to do what you need.
Back to top
View user's profile Send private message 
nic007

Joined: 13 Nov 2011
Posts: 734

PostPosted: Sun 05 Jan 2014, 00:24    Post subject:  

Moose On The Loose wrote:
nic007 wrote:
01micko wrote:
Batch files are just scripts. They are to windows what shell scripts are to linux (disclaimer: broad analogy Very Happy with accompanying broad grin).


I dunno what ttscmd.exe is or does but if you use wine you could probably write a shell script to do something similar. Is there a similar program availale natively? That would be a better option.

Maybe something like...

Code:
#!/bin/bash
for i in "path/to/the/Documents/*.txt" ;do #forward slashes, # = REM
wine "ttscmd.exe /ttm "$i" -s 162 -w 128 -r 16 -b 16 -q 7"
done

Some wine user will come up with the correct script sooner or later. But that should be enough to give you the gist of things.

Thanks for the feedback.. Ttscmd.exe is the text to speech command-line application for 2nd Speech Center (a text to speech program)and the other part of the script the parameters of the MP3 output files. The executable and the documents directory are in the same location on my windows partition.


There is a pet for espeak. You may want to look into that. It may give you a Linux native way to do what you need.

Thanks but 2nd Speech Center is by far the best text to speech program I have ever used and works perfectly with WINE. The desired result can easily be achieved by running the program with it's normal GUI and the only reason for wanting to use the command-line in some instances is for faster conversion to the MP3 format by changing the quality setting of the MP3 output file (this can not be done in GUI mode because it's fixed by default).. I think the default setting is 5 but changing this to 7 or higher via command-line input makes the conversion rate almost twice as fast. Makes quite a difference if one wants to do many conversions.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0612s ][ Queries: 12 (0.0039s) ][ GZIP on ]