Ask a Question related to ASP Components, Design and Development.
-
Vahan Babakhanian #1
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
-
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... -
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>... -
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... -
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... -
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... -
McKirahan #2
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...First, change> 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
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
-
Marius Strumyla #3
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



Reply With Quote

