SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wildcards don\'t work in SYS_FileExists()

    Am I missing something?

  2. #2
    Senior Member
    Join Date
    Sep 1999
    Location
    San Jose,CA,USA
    Posts
    340
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wildcards don\'t work in SYS_FileExists()

    I am a little bit surprised at the question.
    I think it would be a stretch to support such a routine. To me SYS_FileExists() is exceedingly specific and might even be mis interpreted if it supported this type of enquiry.

    I would suggest you employ SYS_Execute("dir /B xyz*.*",lsOutput) for something like this. Allthough I am preety certain by your previous posts you have already done something like this.

    Really I know that you may not agree on this one, but in a few other languages I do know this is consistent behavior for this particular function.




    [This message has been edited by rick_weth (edited 01-04-2001).]
    Smoke me a kipper, I'll be back for breakfast!
    Sincerely
    Richard Weth
    Sr. QA Engineer

  3. #3
    Guest

    Re: Wildcards don\'t work in SYS_FileExists()

    No, you're not missing anything. SYS_FileExists() expects the STRING passed to it to contain a valid and fully qualified filename. Wildcards are not supported.

    ------------------
    Tony Mrozinski
    Sr. Software Test Automation Engineer
    Home Networking Operations
    Intel Corporation

    [This message has been edited by Tony Mrozinski (edited 01-03-2001).]

  4. #4
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wildcards don\'t work in SYS_FileExists()

    Rick, don't lose faith in me.

    I suppose you're correct that this function should not support such a query. It's just such a simple query that I was kind of surprised I'd need to go sorting through a list of dir contents. I think I'll use your SYS_Execute line. Thanks.

  5. #5
    Member
    Join Date
    Dec 1999
    Location
    Portland, OR, USA
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Wildcards don\'t work in SYS_FileExists()

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by BrianCarroll:
    Am I missing something?<HR></BLOCKQUOTE>

    Read the documentation, it is very clear on what the command does and does not do. It behaves in a similar manner to the perl and
    unix file test commands in that it does not support wildcards.

    It is a matter of convention.

    It is dangerous to assume that commands in Silk Test or any other system follow DOS conventions.


    [This message has been edited by cradley (edited 01-04-2001).]
    Quality Control Analyst at Syntel Inc
    Project Test Lead for client Daimler Trucks - North America.
    Interested in testing dot net web services and SOA systems.
    Charles F. Radley
    Oregon, USA.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:14 PM.

Copyright BetaSoft Inc.