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 Wed 26 Nov 2014, 13:42
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 Posts_count  
Author Message
nic007

Joined: 13 Nov 2011
Posts: 754

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  69 Time(s) 
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7841
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_website 
nic007

Joined: 13 Nov 2011
Posts: 754

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: 535

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: 754

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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