/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Search for a key word

06/05/2013 1517 views

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* ?

Answer Summary:
0 Comments   [ + ] Show comments

Comments


All Answers

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.

Answered 06/05/2013 by: SnowLyric
Second Degree Brown 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

Answered 06/05/2013 by: SMal.tmcc
Red Belt

 
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