any way to write to the disk on local network?

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default any way to write to the disk on local network?

    I need to write a file to the disk
    In my ASP scripts I use this

    Set fso = CreateObject("Scripting.FileSystemObject")

    Set ts = fso.CreateTextFile(path1 &file_name , True)
    ts.WriteLine(eps1)
    ts.Close

    It works fine within same (local) HD(s)
    path2="c:\vahan\"
    ..
    It returns an error when target drive is on another PC in the LAN:

    Microsoft VBScript runtime (0x800A004C)
    Path not found

    I tried both ways - by computer name like
    path2="\\Braun2\c:\vahan\"

    or by network drive like
    path2="h:\vahan\"

    neither works...

    Is it possible to write to the (local) network drive?

    Thanks for advices,
    Vahan


    Vahan Babakhanian Guest

  2. Similar Questions and Discussions

    1. Error - Filemaker cannot write to this disk
      Mac OSX & OS9 - FMP6 I have never seen this error before. Have you? When i get this message Filemaker's only option is to quit. All files...
    2. how save to local disk?
      If you put the powerpoint file in a zip file for the user, it will download and not open in a new window. "pablovenegas" <pablo@malabares.cl>...
    3. Removable disk, mapped network disk and drive letter problem
      I don't know why this is such a big problem in Windows, but I hope somebody has a solution for it. You know those USB card readers used for...
    4. cannot write a file to disk!
      You're letting a lot of bad links creep onto that page. Do a Google search for "genesis world energy". The second item found is a broken link to...
    5. Installing Oracle Software on Local Disk Vs Shared Disk
      Hi I am investigating on several options for a multi node VCS cluster to house oracle databases. Where would it be most advantageous to...
  3. #2

    Default Re: any way to write to the disk on local network?

    "Vahan Babakhanian" <vahan@amwestbraun.com> wrote in message
    news:OvxET2ALFHA.3064@TK2MSFTNGP12.phx.gbl...
    > I need to write a file to the disk
    > In my ASP scripts I use this
    >
    > Set fso = CreateObject("Scripting.FileSystemObject")
    >
    > Set ts = fso.CreateTextFile(path1 &file_name , True)
    > ts.WriteLine(eps1)
    > ts.Close
    >
    > It works fine within same (local) HD(s)
    > path2="c:\vahan\"
    > .
    > It returns an error when target drive is on another PC in the LAN:
    >
    > Microsoft VBScript runtime (0x800A004C)
    > Path not found
    >
    > I tried both ways - by computer name like
    > path2="\\Braun2\c:\vahan\"
    >
    > or by network drive like
    > path2="h:\vahan\"
    >
    > neither works...
    >
    > Is it possible to write to the (local) network drive?
    >
    > Thanks for advices,
    > Vahan
    First, change
    Set ts = fso.CreateTextFile(path1 &file_name , True)
    to
    Set ts = fso.CreateTextFile(path1 &file_name , ForWriting, True)
    where
    Const ForWriting = 2

    Then use
    Server.MapPath(file_name)
    instead of
    path1 &file_name
    as the path must be relative to where your Web page is.

    Or you can use a virtual directory to point to another folder.


    McKirahan Guest

  4. #3

    Default Re: any way to write to the disk on local network?

    See kb article 197964
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;197964[/url]

    Hope this helps
    --
    i5mast

    Marius Strumyla 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