Question File System Object

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Question re: File System Object

    I am presently pulling information from a specific text file that has to be
    on a floppy (don't ask why...I gave up asking why a long time ago).
    The application takes the info from the file stores it in a session array
    and all is good from there.

    I'm trying to figure a 'nice' way of error trapping and alerting the user
    that he hasn't put the disk in or that the file isn't there etc.

    I have limited experience with the FileSystemObject so that's why I'm
    turning here.
    I'd like to alert the user that they have not yet put the disk in and not
    let them go on until the correct disk with the correct file is in their
    drive.

    Anyone have any similar code or can point me in a good direction?

    Pejo


    Pejo Guest

  2. Similar Questions and Discussions

    1. File system object in FLEX
      Hi. im new to flex. i currently have a web site written in ASP www.4tune8.com that i want to rewrite using flex/flex builder, similar to the sample...
    2. File System Object question
      I have about 200 documents to which I need to write a header and a footer. Appending (the footer) is easy, but I cannot figure out how to write to...
    3. Distributed File System question -
      Hi all. I wonder if somebody could assist me. I'm going to be rolling out a Server 2003 network and I am attempting to get DFS working. I have...
    4. using file system object across network
      I have a web site that uses NT authentication. It accesses a file on another server using FSO. The user has full control of that file yet when...
    5. File System object
      Can you show your code... "Tom Williams" <t.b.williams@dur.ac.uk> wrote in message news:1057834808.688074@ananke.eclipse.net.uk... created.
  3. #2

    Default Re: Question re: File System Object

    Couldn't you use on error resume next, and fso.fileexists? Something like:

    set fso = createObject("Scripting.FileSystemObject")
    on error resume next
    x = fso.fileExists("a:\file.ext")
    if err or not x then
    response.write "Put the right disk in the drive."
    response.end
    end
    continue






    "Pejo" <pottymouthed@hotmail.com> wrote in message
    news:_Vxlb.5758$XO.761861@news20.bellglobal.com...
    > I am presently pulling information from a specific text file that has to
    be
    > on a floppy (don't ask why...I gave up asking why a long time ago).
    > The application takes the info from the file stores it in a session array
    > and all is good from there.
    >
    > I'm trying to figure a 'nice' way of error trapping and alerting the user
    > that he hasn't put the disk in or that the file isn't there etc.
    >
    > I have limited experience with the FileSystemObject so that's why I'm
    > turning here.
    > I'd like to alert the user that they have not yet put the disk in and not
    > let them go on until the correct disk with the correct file is in their
    > drive.
    >
    > Anyone have any similar code or can point me in a good direction?
    >
    > Pejo
    >
    >

    Aaron Bertrand - MVP Guest

  4. #3

    Default Question re: File System Object

    Pardon me while I jump in here.

    Do I understand correctly that you have users putting
    floppy disks into your web server? And you are
    comfortable with that level of risk?

    Just curious,
    John


    >-----Original Message-----
    >I am presently pulling information from a specific text
    file that has to be
    >on a floppy (don't ask why...I gave up asking why a long
    time ago).
    >The application takes the info from the file stores it in
    a session array
    >and all is good from there.
    >
    >I'm trying to figure a 'nice' way of error trapping and
    alerting the user
    >that he hasn't put the disk in or that the file isn't
    there etc.
    >
    >I have limited experience with the FileSystemObject so
    that's why I'm
    >turning here.
    >I'd like to alert the user that they have not yet put the
    disk in and not
    >let them go on until the correct disk with the correct
    file is in their
    >drive.
    >
    >Anyone have any similar code or can point me in a good
    direction?
    >
    >Pejo
    >
    >
    >.
    >
    John Beschler Guest

  5. #4

    Default Re: Question re: File System Object

    Oh no not in the web server...That wouldn't be prudent in any situation.
    Just in their workstation.
    For security reasons we cannot have certain personal info reside on the
    webservers
    DB so I use a UID that matches up to a list on the disk which has the
    details.
    It is a very akward situation by the organization I work for is over the top
    with security.
    Believe it or not we are not even allowed wireless Mouse or keyboard as they
    are seen as a security risk. I mean the keyboard ,..maybe someone could log
    the strokes...but a mouse....
    what good would logged coordinates be to anyone?

    Thanks Aaaron for your help.

    Pejo.

    "John Beschler" <giles@geewhiz.com> wrote in message
    news:006a01c398c8$1f29cc60$a601280a@phx.gbl...
    > Pardon me while I jump in here.
    >
    > Do I understand correctly that you have users putting
    > floppy disks into your web server? And you are
    > comfortable with that level of risk?
    >
    > Just curious,
    > John
    >
    >
    >
    > >-----Original Message-----
    > >I am presently pulling information from a specific text
    > file that has to be
    > >on a floppy (don't ask why...I gave up asking why a long
    > time ago).
    > >The application takes the info from the file stores it in
    > a session array
    > >and all is good from there.
    > >
    > >I'm trying to figure a 'nice' way of error trapping and
    > alerting the user
    > >that he hasn't put the disk in or that the file isn't
    > there etc.
    > >
    > >I have limited experience with the FileSystemObject so
    > that's why I'm
    > >turning here.
    > >I'd like to alert the user that they have not yet put the
    > disk in and not
    > >let them go on until the correct disk with the correct
    > file is in their
    > >drive.
    > >
    > >Anyone have any similar code or can point me in a good
    > direction?
    > >
    > >Pejo
    > >
    > >
    > >.
    > >

    Pejo Guest

  6. #5

    Default Re: Question re: File System Object

    Let me just check - your org is "over the top" about security, but they
    allow browser settings low enough to be able to use the FSO in a web page?
    That sounds a bit inconsistent.

    Unless you have your server set as a trusted domain, allowing use of FSO in
    a standard web page is asking for trouble.

    Tim.


    "Pejo" <pottymouthed@hotmail.com> wrote in message
    news:BlPlb.4907$VQ3.404909@news20.bellglobal.com.. .
    > Oh no not in the web server...That wouldn't be prudent in any situation.
    > Just in their workstation.
    > For security reasons we cannot have certain personal info reside on the
    > webservers
    > DB so I use a UID that matches up to a list on the disk which has the
    > details.
    > It is a very akward situation by the organization I work for is over the
    top
    > with security.
    > Believe it or not we are not even allowed wireless Mouse or keyboard as
    they
    > are seen as a security risk. I mean the keyboard ,..maybe someone could
    log
    > the strokes...but a mouse....
    > what good would logged coordinates be to anyone?
    >
    > Thanks Aaaron for your help.
    >
    > Pejo.
    >
    > "John Beschler" <giles@geewhiz.com> wrote in message
    > news:006a01c398c8$1f29cc60$a601280a@phx.gbl...
    > > Pardon me while I jump in here.
    > >
    > > Do I understand correctly that you have users putting
    > > floppy disks into your web server? And you are
    > > comfortable with that level of risk?
    > >
    > > Just curious,
    > > John
    > >
    > >
    > >
    > > >-----Original Message-----
    > > >I am presently pulling information from a specific text
    > > file that has to be
    > > >on a floppy (don't ask why...I gave up asking why a long
    > > time ago).
    > > >The application takes the info from the file stores it in
    > > a session array
    > > >and all is good from there.
    > > >
    > > >I'm trying to figure a 'nice' way of error trapping and
    > > alerting the user
    > > >that he hasn't put the disk in or that the file isn't
    > > there etc.
    > > >
    > > >I have limited experience with the FileSystemObject so
    > > that's why I'm
    > > >turning here.
    > > >I'd like to alert the user that they have not yet put the
    > > disk in and not
    > > >let them go on until the correct disk with the correct
    > > file is in their
    > > >drive.
    > > >
    > > >Anyone have any similar code or can point me in a good
    > > direction?
    > > >
    > > >Pejo
    > > >
    > > >
    > > >.
    > > >
    >
    >

    Tim Williams 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