/build/static/layout/Breadcrumb_cap_w.png

Search for a key word

I'm using WiseScript. I need to do a file search that searches for a directory that begins with Reader. It can begin with Reader and end with anything. Would the proper way to do that be to search Reader* ?

This will be followed by and If statement. Would I then proceed to check if it's equal to Reader or Reader* ?


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: SnowLyric 11 years ago
Second Degree Brown Belt
0

Why don't you use "Search for File" action with wildcard character *? It can then assign to a variable and be used in If block. If the variable is assigned a value(in this case file path), it indicates search was successful. I'm not sure if this action can be used to serach directory. See "Check if File/Dir Exists" action as well.

Posted by: SMal.tmcc 11 years ago
Red Belt
0

this is a file search

http://ss64.org/viewtopic.php?id=1018

you need to do a folder search, which is a different thing.

http://blogs.technet.com/b/heyscriptingguy/archive/2004/08/19/how-can-i-determine-if-a-folder-exists-on-a-computer.aspx

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ