473,466 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Copy HTML file, Delete old and rename new script?

I'm new at this and wonder if this is possible.

I'm running a Win2k server with FP 2002 Extensions using discussion boards.
There is a time delay in the posted content and the way our moderators are
managing it now involves logging into the server, copying the TOC file,
deleting the public TOC file and renaming the copy to the new public
version. --Copy and paste Tocprivate.htm -> delete TocPublic.htm -> rename
copy of Tocprivate.htm to TocPublic.

Is it possible to script something that would allow this to happen with a
single click of a button through their web browser?

Thanks for any suggestions, Neil

Jul 19 '05 #1
2 2299
Have a look at the FileSystemObject:

http://msdn.microsoft.com/library/de...stemObject.asp
"N. Schultheiss" <nc******@nospam-yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I'm new at this and wonder if this is possible.

I'm running a Win2k server with FP 2002 Extensions using discussion boards. There is a time delay in the posted content and the way our moderators are
managing it now involves logging into the server, copying the TOC file,
deleting the public TOC file and renaming the copy to the new public
version. --Copy and paste Tocprivate.htm -> delete TocPublic.htm -> rename
copy of Tocprivate.htm to TocPublic.

Is it possible to script something that would allow this to happen with a
single click of a button through their web browser?

Thanks for any suggestions, Neil


Jul 19 '05 #2
hi, you can use FSO(file system object) or WSH(windows script host) to do
that.
take at this article:
http://www.aspfaq.com/show.asp?id=2059
look for more here:
http://www.aspfaq.com
http://www.asp101.com
--

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC

"N. Schultheiss" <nc******@nospam-yahoo.com> escreveu na mensagem
news:#e**************@TK2MSFTNGP11.phx.gbl...
I'm new at this and wonder if this is possible.

I'm running a Win2k server with FP 2002 Extensions using discussion boards. There is a time delay in the posted content and the way our moderators are
managing it now involves logging into the server, copying the TOC file,
deleting the public TOC file and renaming the copy to the new public
version. --Copy and paste Tocprivate.htm -> delete TocPublic.htm -> rename
copy of Tocprivate.htm to TocPublic.

Is it possible to script something that would allow this to happen with a
single click of a button through their web browser?

Thanks for any suggestions, Neil


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Dino | last post by:
dear all, i've created an application for a customer where the customer can upload ..csv-files into a specified ftp-directory. on the server, a php-script, triggered by a cronjob, reads all the...
48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
7
by: Busyman | last post by:
Hi, I have written a stay-open-AppleScript for Mac OS X, gathering certain informations from different apps, which can only be gathered via AppleScript. This script writes its informations into...
5
by: jez123456 | last post by:
Hi, I’ve written a c# program to compact certain msaccess databases. The way this works is to compact say C:\test1.mdb to C:\temp.mdb, then delete C:\test1.mdb and rename C:\temp.mdb as...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
13
by: DH | last post by:
Hi, I'm trying to strip the html and other useless junk from a html page.. Id like to create something like an automated text editor, where it takes the keywords from a txt file and removes them...
3
by: rubbishemail | last post by:
Hello, do you know of any way to copy locked / opened files under win xp? I know there is something like "Volume Shadow Copy" but I don't know how to use it. Maybe someone already has a python...
25
by: Andy_Khosravi | last post by:
I just recently changed my database that I'm running from a monolithic DB to a split FE/BE. The front end resides on the client machine and the BE resides on a network drive. I'm experimenting with...
6
by: Bill H | last post by:
I am wondering if this is possible. I have a file that is accessed by multiple users and keeps track of activity (the file is polled by flash every 2 seconds). As users leave, the flash program...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.