Home Pricing Glossary Sitemap Contact Support Login Search
Home arrow Site Map arrow Index arrow Software Ressources arrow Macro Automation 
ALL |0-9 |A |B |C |D |E |F |G |H |I |J |K |L |M |N |O |P |Q |R |S |T |U |V |W |X |Y |Z

Index arrow Software Ressources arrow Macro Automation

Open Folder Taks Visat Runner Instructions Print E-mail

How to open folder but not .exe file 

This is a forum thread support ticket, correct answer is highlighted in green:

 


This is the path I need to open:
 
C:\Program Files\JSAS\http_root\www
 
I've modified like this as instructed:
 
C:{Program Files}\JSAS\http_root\www
 
But it's not working
 
How should I modify that line of code? 
 


The example listed above doesn't include the "C:" (drive).  The "C:" is part of {programfiles}, so you should do this:
 
    {programfiles}\JSAS\http_root\www 
 
For troubleshooting, you can display "{programfiles}" in a Message to view what it translates to. 
Back to top     
--------------------------------------------------------------------------------


 
I've tried this:
 
 {programfiles}\JSAS\http_root\www 
 
 
and this:
 
 C:{programfiles}\JSAS\http_root\www 
 
 
 
They both dont' work...
 
What should I enter excatly in the field please? 
 

 
The exact text is same as above:  {programfiles}\JSAS\http_root\www
Did you display it in a Message?  What does the Message box say? (screenshot please)
 
If you could post the VXM step that is giving you problems, it would greatly help me with assisting you. 
pataya6, run this script, and tell me what happens: 
(please highlight, copy, and paste into VistaRunner, don't type it)
 
Code:<?xml version="1.0" ?>
<VistaRunner>
<step>
 <action>Start</action>
 <text>{windir}\EXPLORER.EXE {programfiles}</text>
 <options>Single</options>
</step>
</VistaRunner>

 

 



 
I ran your example and it works.
 
But it doesn't work with this:
 
{windir}\Common Files {programfiles}
 
{windir}\COMMON FILES {programfiles}
 
 
 
I don't understand the logic with the variables, does {programfiles} represent the folder that the folder is in? Does capitalization matter? Why is there a space before {programfiles} and a forward slash before "EXPLORER.EXE" but not after? 
 
  
 
This is the complete path I am trying to open:
 
C:\Program Files\JSAS\http_root\www
 
 
 
Could it be possible to just tell me exactly what to input in the box? 
 
I mean by that translate the above path with all the proper slashes, punctuations and variable so it works? 
 

 

 


 
Open a folder has two parts:
The "Open" part
The "Folder" part
 
The Open part stays the same, and the folder part changes with each different folder. 
So the open part (or the part that stays the same) is bold.

 

<?xml version="1.0" ?>
<VistaRunner>
<step>
     <action>Start</action>
     <text>{windir}\EXPLORER.EXE {programfiles}</text>
     <options>Single</options>
</step>
</VistaRunner> 


The "Folder" part of "Open a Folder" was not bold {programfiles}.
IF you want to open C:\ you would change the not bold part like this:

     <text>{windir}\EXPLORER.EXE C:\</text>


or if you want to open C:\Program Files\JSAS\http_root\www

     <text>{windir}\EXPLORER.EXE C:\Program Files\JSAS\http_root\www</text>


By the way {windir} is where Windows is on your computer.
In Windows 98 {windir} was C:\WINDOWS. 
In Windows 2000 {windir} was C:\WINNT. 
In Windows XP it was back to C:\WINDOWS again.
But when you install windows you could change where it goes to something crazy like D:\FRED and {windir} would be D:\FRED
 
So if Vista Support said use C:\WINDOWS\EXPLORER.EXE it would be right for some and wrong for others. Instead they say use {windir}\EXPLORER.EXE, and {windir} is set to whatever is right for each computer. 
The same is true for "C:\Program Files\". The "program files" location could be "z:\place to put programs\". 
If you are writing your script on one computer, and running it on a different computer, these places might not be the same, but if you use {windir} it will automatically adjust. 
 



THis is the exact text that works for the future:

C:\WINDOWS\EXPLORER.EXE C:\Program Files\JSAS\http_root\www  

C:\WINDOWS\EXPLORER.EXE C:\Program Files\JSAS\http_root\www
 
Looks good, however I would replace the hard-coded paths with something dynamic:  (which was the point of the original post)
 
{windir}\EXPLORER.EXE {programfiles}\JSAS\http_root\www
 
or, using environment variables:
 

 
Web Site Design Services Canada - SEO Vancouver BC Webmaster
Copyright © 1999-2008 | 6805 Fleming Street Vancouver, British Columbia, Canada V5P 3H4
Toll Free Phone: 1-800-680-1358 - Toll Free Fax: 1-801-740-8940 Privacy | Contact | Archive