Jump to content

Recommended Posts

Hello Forum! 

 

I have been working on a project where it involves working of VBS as well as TCL. And before running the main logic in the TCL I want to run the VBS file from TCL using EXEC command but it was throwing some kind of error. I have a constraint of not using the batch file to run both the scripts individually. 

When I did a search on the internet I found that CScript or Wscript should be helping but while working with this command, it was of no help.

Can someone share the approach of solving this issue.

 

thanks and regards,

Brahmadev.

 

 

Share this post


Link to post
Share on other sites

Hello Tinh,

 

I just need to run a vbs script from tcl as we run notepad application from tcl

 

i tried with Cscript/Wscript but it was not working

 

Share this post


Link to post
Share on other sites
25 minutes ago, brahmadev said:

Hello Tinh,

 

I just need to run a vbs script from tcl as we run notepad application from tcl

 

i tried with Cscript/Wscript but it was not working

 

 

Do you try to search with Google yet?

Try: http://code.activestate.com/lists/activetcl/2550/

Thank you Google!

 

Share this post


Link to post
Share on other sites
19 minutes ago, Q.Nguyen-Dai said:

Do you try to search with Google yet?

 

Yeah! That was my first step way before posting this question in the forum

 

20 minutes ago, Q.Nguyen-Dai said:

 

This was the exact set of code I have tried in TCL but it was of no help.

 

So i was just wondering do I need to install any external packages !

 

 

Share this post


Link to post
Share on other sites
On 6/10/2019 at 2:02 PM, brahmadev said:

Hello Forum! 

 

I have been working on a project where it involves working of VBS as well as TCL. And before running the main logic in the TCL I want to run the VBS file from TCL using EXEC command but it was throwing some kind of error. I have a constraint of not using the batch file to run both the scripts individually. 

When I did a search on the internet I found that CScript or Wscript should be helping but while working with this command, it was of no help.

Can someone share the approach of solving this issue.

 

thanks and regards,

Brahmadev.

 

 

 

Have you tried the following :

exec cmd.exe /k "<vbs file path>"

 

 

Share this post


Link to post
Share on other sites
15 minutes ago, Roshan Shiveshwar said:

exec cmd.exe /k "<vbs file path>"

 

Hey Roshan, thanks for the response....

Actually I won't be having permissions to access the CMD  on my machine due to security. :mellow:

Share this post


Link to post
Share on other sites
5 hours ago, brahmadev said:

 

Hey Roshan, thanks for the response....

Actually I won't be having permissions to access the CMD  on my machine due to security. :mellow:

 

Sure, if security is restricted you cannot run the interp

 

How's about exec cscript.exe ? What is error?

Share this post


Link to post
Share on other sites

Hello guys,

 

Thanks for your response.

 

Actually, the cscript was working perfectly, thing was I didn't keep a reference file as input for the VBS file because of which error has occurred.

 

Thanks and regards,

Brahmadev.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...