SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2002
    Location
    rochester, ny, usa
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    WinInet.dll / FTP: any way to get file list?

    situation: I need to get a file from an internal ftp site. I do not know what the file name is because it is the format XXX_TIME.OF.DAY_DATE.zip. So, I need to somehow get a file list, put that file list into a list of strings, and then filter the file list to contain only the files that mach given criterea. Does this make sense?

    Thanks

    ------------------

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WinInet.dll / FTP: any way to get file list?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by phenolite:
    I need to somehow get a file list, put that file list into a list of strings, and then filter the file list to contain only the files that mach given criterea.<HR></BLOCKQUOTE>

    SYS_GetDirContents() will return a list of records containing the file names.

    MatchStr() can be used in a loop to find the file(s) you desire.


    John


    ------------------

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: WinInet.dll / FTP: any way to get file list?

    This was (recently) discussed in the thread:
    http://www.qaforums.com/Forum1/HTML/004030.html

    I came up with a quick and dirty fix for remote unix boxes that are up all of the time:
    I run a perpetual shell script that periodically saves a directory listing in a file that can be ftp'ed by SilkTest.

    Remember to search first and ask questions later :-)

    ------------------
    Rob Kapteyn

    [This message has been edited by RobKapteyn (edited 10-29-2002).]
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

 

 

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 12:34 AM.

Copyright BetaSoft Inc.