Hi,<br />
I hope this is possible...<br />
<br />
I am opening a file from a network by clicking on a link:<br />
<br />
<a href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"<%=varFile2%>"><%=varFile2Name%></a> <br />
<br />
varFile2 contains: \\server\folder\file.doc<br />
<br />
Is there any way I can have this file open as READ ONLY????<br />
<br />
I tried opening the file using FileSystemObject with OpenTextFile... but I had trouble reading the file in and then outputting it in the browser.<br />
<br />
Is there an easier way???????<br />
<br />
Thanks,<br />
Juls.<!--content-->I think you could CHOMD it to 755 (I think that's the right one). Good Luck,<br />
Paul<!--content-->As far as I know......<br />
<br />
Browsers don't read .doc files. Whatever application is associated with .doc files (MS WORD most likely) will open and read the file. If there is no application associated with .doc files the "open file with" window will display instead. <br />
<br />
Regards,<br />
Kevin<!--content-->Well, since it's a .doc file, why don't you just write protect it in Word?<!--content-->Any time you are on a page on the Internet, you have the option of Show Source. Where this is depends on your broswer.<br />
<br />
If you have Internet Explorer, you merely click-hold the mouse down on the page and a menu will pop up. In this menu will be an option called Show Source (or Show Source Code).<br />
<br />
A small window will appear with the source code text in it. You highlight this text and Copy it.<br />
<br />
Now paste this source code into a text document made by a word processor (such as Notepad). Save the doc with any name as long as you put ".html" as an extension.<br />
<br />
Now use your browser to open this new html doc and you will see the page.<br />
<br />
You should also check out (do an Internet search) programs, such as Web Devil or also Page Sucker, that Download <!--more-->s an entire site's pages to your computer for your own use.<!--content-->Nice explanation, you can tell you write computer books!<br />
<br />
However, I don't think that is what Juls was asking.<!--content-->Hi guys,<br />
I think I should explain myself a little further.<br />
<br />
I am opening not only word files.. it can be an excel file or pdf or whatever...<br />
<br />
What is happening is this:<br />
Users upload a file to the network folder and then they open any of the files in that folder the way I described in my first post. <br />
<br />
"Well, since it's a .doc file, why don't you just write protect it in Word?"<br />
<br />
I don't go to every uploaded document to make it read only.<br />
<br />
Hacker, what is "CHOMD 755" ????<br />
<br />
Thanks,<br />
Juls<!--content-->the only way you could make it read only is if it was reading off a cd. other than that you hav eto go into every file and make it that way.<br />
<br />
the file is/will be opened by the client's computer so the file will have to be altered.<br />
<br />
hope this helps<!--content-->
I hope this is possible...<br />
<br />
I am opening a file from a network by clicking on a link:<br />
<br />
<a href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"<%=varFile2%>"><%=varFile2Name%></a> <br />
<br />
varFile2 contains: \\server\folder\file.doc<br />
<br />
Is there any way I can have this file open as READ ONLY????<br />
<br />
I tried opening the file using FileSystemObject with OpenTextFile... but I had trouble reading the file in and then outputting it in the browser.<br />
<br />
Is there an easier way???????<br />
<br />
Thanks,<br />
Juls.<!--content-->I think you could CHOMD it to 755 (I think that's the right one). Good Luck,<br />
Paul<!--content-->As far as I know......<br />
<br />
Browsers don't read .doc files. Whatever application is associated with .doc files (MS WORD most likely) will open and read the file. If there is no application associated with .doc files the "open file with" window will display instead. <br />
<br />
Regards,<br />
Kevin<!--content-->Well, since it's a .doc file, why don't you just write protect it in Word?<!--content-->Any time you are on a page on the Internet, you have the option of Show Source. Where this is depends on your broswer.<br />
<br />
If you have Internet Explorer, you merely click-hold the mouse down on the page and a menu will pop up. In this menu will be an option called Show Source (or Show Source Code).<br />
<br />
A small window will appear with the source code text in it. You highlight this text and Copy it.<br />
<br />
Now paste this source code into a text document made by a word processor (such as Notepad). Save the doc with any name as long as you put ".html" as an extension.<br />
<br />
Now use your browser to open this new html doc and you will see the page.<br />
<br />
You should also check out (do an Internet search) programs, such as Web Devil or also Page Sucker, that Download <!--more-->s an entire site's pages to your computer for your own use.<!--content-->Nice explanation, you can tell you write computer books!<br />
<br />
However, I don't think that is what Juls was asking.<!--content-->Hi guys,<br />
I think I should explain myself a little further.<br />
<br />
I am opening not only word files.. it can be an excel file or pdf or whatever...<br />
<br />
What is happening is this:<br />
Users upload a file to the network folder and then they open any of the files in that folder the way I described in my first post. <br />
<br />
"Well, since it's a .doc file, why don't you just write protect it in Word?"<br />
<br />
I don't go to every uploaded document to make it read only.<br />
<br />
Hacker, what is "CHOMD 755" ????<br />
<br />
Thanks,<br />
Juls<!--content-->the only way you could make it read only is if it was reading off a cd. other than that you hav eto go into every file and make it that way.<br />
<br />
the file is/will be opened by the client's computer so the file will have to be altered.<br />
<br />
hope this helps<!--content-->