Jump to content
Macro Express Forums

IF FILE EXISTS command


Recommended Posts

It is explained in the help file. But a practical example is searching for cmd.exe. I'll bet if you type in only "cmd.exe" and check the box it will test true. This is because it’s looking for that file in the “Path” environmental variable. Open a command prompt and type “Path”. In this example cmd.exe was searched for by MEP in all of those folders. It’s a good way to ensure a command is available. Before launching it and not needing it to be in the same location every time. EG sometimes cmd.exe is in c:\windows other in c:\winnt.

 

 

Link to comment
Share on other sites

It is explained in the help file. But a practical example is searching for cmd.exe. I'll bet if you type in only "cmd.exe" and check the box it will test true. This is because it’s looking for that file in the “Path” environmental variable. Open a command prompt and type “Path”. In this example cmd.exe was searched for by MEP in all of those folders. It’s a good way to ensure a command is available. Before launching it and not needing it to be in the same location every time. EG sometimes cmd.exe is in c:\windows other in c:\winnt.

 

I'm just past reinstalling windows (yep, still XP ;) ) and I must have accidently installed the wrong version of ME (4.1.5.1). Althought the option was available in that version the help file kept silent about it.

I downloaded the latest version of ME and it is mentioned there. However I find your example of usage easier to comprehend so thanks for clearing this up for me.

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...
×
×
  • Create New...