Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2004, 04:54 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copying files using VBScript in ADO 3.0

I am writing a document control system and want to know if anyone has code for copying a file on a network server to an Intranet server by allowing the user to browse to their network drive and use code to then copy the file on to the Intranet server.
I also need to know if there are any security considerations, i.e., does the server recognize the user when trying to do the copy using code in an asp page or do I need to catch the users details and use them in the code?
This is the first real intranet development I have done so any help would be much appreciated.
 
Old October 26th, 2004, 05:04 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

  <form name="frm1" action="filename.asp" method="post" ENCTYPE="multipart/form-data">
<input type="file" name="txtFile1">
</form>

This will allow to search for selecting file in network or local(just like File -> Open under wondows environment)

To copy the file to intranet server(i assume that your virtual root), use http://www.aspsmart.com (ASPSmartUpload control). Download it for free and follow the methods and properties.

Which user you are talking about? (network user/your site user)


------------
Rajani

 
Old October 26th, 2004, 05:35 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the response Rajani. The user I am talking about will be a network user logged onto the Intranet site using their network log in.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Decrypting pgp files with vbscript tonyromero99 VBScript 4 June 4th, 2008 04:09 AM
Copying files error kwik10z Excel VBA 1 November 10th, 2007 10:11 PM
Copying data across files sda443 Excel VBA 2 January 16th, 2006 06:49 AM
Copying selected files in vb sunitha_padmanabhan VB Components 2 November 15th, 2004 07:43 AM
Copying files marclena General .NET 2 June 18th, 2004 08:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.