arekowczarek Posted January 24, 2011 Report Share Posted January 24, 2011 What does "Use the search path" option in the "If file exists" command do? There's no reference to it in the help file and I couldn't figure out what that could be for. Quote Link to comment Share on other sites More sharing options...
Cory Posted January 24, 2011 Report Share Posted January 24, 2011 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. Quote Link to comment Share on other sites More sharing options...
arekowczarek Posted January 24, 2011 Author Report Share Posted January 24, 2011 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. Quote Link to comment Share on other sites More sharing options...
Cory Posted January 25, 2011 Report Share Posted January 25, 2011 I like questions like this. I’ve never had an occasion to use this command but when I consider it in posts like this it brings it to the front of my brain again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.