using FTP Wildcard in asp.net code

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default using FTP Wildcard in asp.net code

    Hi,
    We have an asp.net app that uploads and downloads files
    files from an FTP server. It works this way.
    1) Put a MyFile.request file on the server
    2) server processes and returns MyFile.txt
    3) My application looks for MyFile.txt and downloads.

    So far so good. The problem occurs if there is some error
    in processing in which case the server does not return a
    MyFile.txt but an error file called MyFile-MM-DD-YYYY-hh-
    mm-ss.err and this file's type shown on the server is
    binary . The MM-DD-YYYY-hh-mm-ss addition to the file name
    is arbitrary over which I have no control. I am trying to
    download this file by searching for MyFile*.err which
    throws me an error saying invalid filename.
    Could anyone help me here or tell me where I could look
    for similar .net code to look for wildcard entries in
    filenames?
    Thanks in advance
    Naveen
    Naveen M Guest

  2. Similar Questions and Discussions

    1. Need help with wildcard
      I need help with wildcard. I tried to do a search and search for any record contains "agency list" in that column. I got no record return in this...
    2. WildCard Defaults
      I'm trying to use % as the default value in the query variables. I have a select list displaying numbers. At the top of the select list I want an...
    3. wildcard search
      I have the following SQL that searches based on the exact input stored in a session variable If reqname <> '' Then strSQL = strSQL &amp;...
    4. newbie: rcp and wildcard
      dear unix-gurux, i'd like to rcp a complete subdirectory-structure with all files within from an unix host to another unix host. my command looks...
    5. Wildcard and DTS..?
      Hi all, I have a path in a DTS-package that looks like: sFilename = "d:\path\*.PMS" & Right(Year(Now()), 2) sFilename = DTSGlobalVariables ...
  3. #2

    Default Re: using FTP Wildcard in asp.net code

    You could use the FileInfo and DirectoryInfo classes to search for these
    ..err files. Perhaps look for FileInfo.Name.EndsWith(".err") in the
    Directory.

    hth,
    -Christopher
    [url]http://weblogs.asp.net/CFrazier[/url]


    Naveen M wrote:
    > Hi,
    > We have an asp.net app that uploads and downloads files
    > files from an FTP server. It works this way.
    Christopher Frazier Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139