Jump to content
Macro Express Forums

How to share variable between macroexpress and external script


Recommended Posts

although a "insert variable" menu is available in the external script window, but the inserted variable cannot work in VBS script. What to do if I want to use a variable from macroexpress, such as %T[1]% in the VBS script. Besides, seems that each time only one console output can be saved to macroexpress variable, can I output like, an array, to macroexpress variables? Thanks a lot

Link to comment
Share on other sites

  • 3 weeks later...

I have been able to insert variables into the script text with no problem. EG I have one that retrieves the owner of a file. Perhaps you could post a simple example that demonstrates?

 

As far as the console output you are only going to get one big text string. However one can easily parse that into an array. For instance if you had a list of files you could use the Split String command and split on the line feeds to dump the list into an array. Also of course you could direct the console output to file and process that.

Link to comment
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
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.

Loading...
 Share

×
×
  • Create New...