check Existance of a file on different machine

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

  1. #1

    Default check Existance of a file on different machine

    Is there anyway to check for existance of a file on different machine.
    i.e. we have a data file (text file) thats stored on some other machine as
    its not to be exposed in case the web server is hacked.
    and we want to update data from this text file into our database.

    I know file object but it works only locally.(i.e. work with files stored on
    local drive)

    If anyone could help me it will be great.




    Ajit Guest

  2. Similar Questions and Discussions

    1. Testing existance of a datagrid control on a webform
      Hi all, I have a usercontrol (a textbox with dropdown calendar that fills the textbox with the selected date) that I implement in a datagrid in a...
    2. Check for existance of a temp table
      Hello- Is there a way to check for the existance of a temp table? Thanks Don
    3. Testing for the existance of an Application() variable
      How about this: theLetter="G" If len(Application(theLetter)) > 0 then HTH, Bob Barrows
    4. Test an Array for existance before processing data
      I need to set up an If statement to test if an array exists and process a block of code if it does, do nothing if it does not. I have tried the...
    5. Machine Check Exception
      Running Intel 2.0 processor, Win XP Pro, 512 DDR 2700 RAM,all of a sudden computer starts rebooting constantly and will not stop. Finally the "BLUE...
  3. #2

    Default Re: check Existance of a file on different machine

    Would a Web service on the server with the text file not do? The Web service
    can then use the File object and return status to the Web service consumer
    on your Web server.

    --
    Carsten Thomsen
    [email]carstent@SPAMMERSDROPOUTdotnetservices.biz[/email]
    "Ajit" <adeogade@thedebtmediator.com> wrote in message
    news:e6hOwInRDHA.2232@TK2MSFTNGP11.phx.gbl...
    > Is there anyway to check for existance of a file on different machine.
    > i.e. we have a data file (text file) thats stored on some other machine as
    > its not to be exposed in case the web server is hacked.
    > and we want to update data from this text file into our database.
    >
    > I know file object but it works only locally.(i.e. work with files stored
    on
    > local drive)
    >
    > If anyone could help me it will be great.
    >
    >
    >
    >

    CT Guest

  4. #3

    Default Re: check Existance of a file on different machine

    The System.IO.File class is NOT designed for mere local machine access to
    files. It can access any files on any machine in the local machine's
    network, as long as it has permission. It can certainly use UNCs.

    --
    HTH,

    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    [url]http://www.takempis.com[/url]
    Big things are made up
    of lots of little things

    "Ajit" <adeogade@thedebtmediator.com> wrote in message
    news:e6hOwInRDHA.2232@TK2MSFTNGP11.phx.gbl...
    > Is there anyway to check for existance of a file on different machine.
    > i.e. we have a data file (text file) thats stored on some other machine as
    > its not to be exposed in case the web server is hacked.
    > and we want to update data from this text file into our database.
    >
    > I know file object but it works only locally.(i.e. work with files stored
    on
    > local drive)
    >
    > If anyone could help me it will be great.
    >
    >
    >
    >

    Kevin Spencer Guest

  5. #4

    Default Re: check Existance of a file on different machine

    I'm not a king in that, but try to see what you can do with WMI.
    I already use WMI and I see that you can do a lot of thing remotely.
    But I think it's depends of the version of Windows that you want to ask.



    "Ajit" <adeogade@thedebtmediator.com> wrote in message
    news:e6hOwInRDHA.2232@TK2MSFTNGP11.phx.gbl...
    > Is there anyway to check for existance of a file on different machine.
    > i.e. we have a data file (text file) thats stored on some other machine as
    > its not to be exposed in case the web server is hacked.
    > and we want to update data from this text file into our database.
    >
    > I know file object but it works only locally.(i.e. work with files stored
    on
    > local drive)
    >
    > If anyone could help me it will be great.
    >
    >
    >
    >

    Santastp 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