Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
args not passed to .tcl script in batch file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rick h  
View profile  
 More options May 8 2012, 10:39 am
Newsgroups: comp.lang.tcl
From: rick h <ri...@advertech-ltd.com>
Date: Tue, 8 May 2012 07:39:00 -0700 (PDT)
Subject: args not passed to .tcl script in batch file
Have tcl scripts in .bat files that expect arguments. Works fine in
XP. When run in win7, the script does not receive the values passed as
parameters.

Net: argc is 0; argv is empty.

Have taken UAC to lowest level. Have changed the properties to enable,
read, write, execute, etc.

All scripts are in c:\program files (x86)\star.

e.g
runtranslator.bat contains the following
shell-translatorTCL.bat "/Star/sims/source_scenarios/IF_test.ssc"

shell-translatorTCL.bar contains the following
cd \Star\SIDE\sp_translator
sdd_scripttranslator.tcl %1 %2 %3 %4 %5 %6 %7 %8 %9


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
arjenmarkus  
View profile  
 More options May 8 2012, 10:53 am
Newsgroups: comp.lang.tcl
From: arjenmarkus <arjen.markus...@gmail.com>
Date: Tue, 08 May 2012 16:53:38 +0200
Local: Tues, May 8 2012 10:53 am
Subject: Re: args not passed to .tcl script in batch file
On 2012-05-08 16:39, rick h wrote:

I see that you rely on the associations. What happens if you change the
line to:

tclsh sdd_scripttranslator.tcl %1 %2 %3 %4 %5 %6 %7 %8 %9

?

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rick h  
View profile  
 More options May 8 2012, 1:52 pm
Newsgroups: comp.lang.tcl
From: rick h <ri...@advertech-ltd.com>
Date: Tue, 8 May 2012 10:52:13 -0700 (PDT)
Local: Tues, May 8 2012 1:52 pm
Subject: Re: args not passed to .tcl script in batch file

Also, the tcl directory is in the OS environment 'path' and extensions records.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rick h  
View profile  
 More options May 8 2012, 1:56 pm
Newsgroups: comp.lang.tcl
From: rick h <ri...@advertech-ltd.com>
Date: Tue, 8 May 2012 10:56:41 -0700 (PDT)
Local: Tues, May 8 2012 1:56 pm
Subject: Re: args not passed to .tcl script in batch file

Just put a ref to c:\program files (x86)\tcl\bin in the environment and it seems to be working...at least it is being invoked...

Thanks,


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rick h  
View profile  
 More options May 8 2012, 1:51 pm
Newsgroups: comp.lang.tcl
From: rick h <ri...@advertech-ltd.com>
Date: Tue, 8 May 2012 10:51:14 -0700 (PDT)
Local: Tues, May 8 2012 1:51 pm
Subject: Re: args not passed to .tcl script in batch file

tclsh.exe is not recognized as an internal or external command ... or operable program or batch file...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rick h  
View profile  
 More options May 8 2012, 2:47 pm
Newsgroups: comp.lang.tcl
From: rick h <ri...@advertech-ltd.com>
Date: Tue, 8 May 2012 11:47:42 -0700 (PDT)
Local: Tues, May 8 2012 2:47 pm
Subject: Re: args not passed to .tcl script in batch file

One last thought (question): why, using references, was the script initiated, but no parms passed?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rick h  
View profile  
 More options May 8 2012, 2:48 pm
Newsgroups: comp.lang.tcl
From: rick h <ri...@advertech-ltd.com>
Date: Tue, 8 May 2012 11:48:48 -0700 (PDT)
Local: Tues, May 8 2012 2:48 pm
Subject: Re: args not passed to .tcl script in batch file


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Leitgeb  
View profile  
 More options May 8 2012, 6:49 pm
Newsgroups: comp.lang.tcl
From: Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at>
Date: Tue, 8 May 2012 22:49:31 +0000 (UTC)
Local: Tues, May 8 2012 6:49 pm
Subject: Re: args not passed to .tcl script in batch file

rick h <ri...@advertech-ltd.com> wrote:
> One last thought (question): why, using references, was the script initiated, but no parms passed?

Probably, because the "open"-binding for extension .tcl specifies
tclsh.exe(with correct path) but no parameters.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options May 9 2012, 8:01 am
Newsgroups: comp.lang.tcl
From: Arjen Markus <arjen.markus...@gmail.com>
Date: Wed, 9 May 2012 05:01:53 -0700 (PDT)
Local: Wed, May 9 2012 8:01 am
Subject: Re: args not passed to .tcl script in batch file
Op woensdag 9 mei 2012 00:49:31 UTC+2 schreef Andreas Leitgeb het volgende:

> rick h wrote:
> > One last thought (question): why, using references, was the script initiated, but no parms passed?

> Probably, because the "open"-binding for extension .tcl specifies
> tclsh.exe(with correct path) but no parameters.

I have checked the association for .tcl files on my system:
assoc .tcl
.tcl=ActiveTclScript

Apparently the definition of "ActiveTclScript" is: c:\tcl86\bin\wish86.exe "%1" %*
(That is the information I get from the file manage I use. I have no clue as
to how to set that, but it is probably stored in the Windows registry)

The point is: with "%1" wish86 gets the file name, with %* it probably gets all
the other command-line parameters as well.

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »