|
|
| About site: Programming/Component Frameworks/COM/Components/File Management - AspTouch |
Return to Computers also Computers |
| About site: http://www.alphasierrapapa.com/IisDev/Components/AspTouch/ |
Title: Programming/Component Frameworks/COM/Components/File Management - AspTouch Free component to refresh the timestamp of a file. By Christoph Wille. |
|
|
|
|
AccelChip AccelChip provides high-level synthesis from MATLAB/Simulink to FPGA and ASIC design flows to accelerate the process of embedded DSP design.
| Franz_Inc_ Producers of Allegro CL and related products
| RecoverYourData Free Quick Recovery Analyzer from Unistal Systems Ltd.
| Ohm_Computers Offers web, database application and graphic design, programming, ASP, VB, Java, Flash and computer training. Located in Gujarat, India.
| Process-one Process-one is a company developing Erlang products, along with services and support on disctributed computing.
| Commodore_Format_Library Scanned versions of Commodore Format, a C64 magazine published in the UK from 1990 to 1995.
|
|
| Alexa statistic for http://www.alphasierrapapa.com/IisDev/Components/AspTouch/ |
Please visit: http://www.alphasierrapapa.com/IisDev/Components/AspTouch/
|
| Related sites for http://www.alphasierrapapa.com/IisDev/Components/AspTouch/ |
| Icon_Hear-iT_98 Take control of your Windows desktop to personalize it with animated icons and cursors, wallpapers, sounds, desktop themes and screen savers. Shareware by Moon Valley Software. | | Maple A bookmarks manager that stores your bookmarks online. It is integrated into Firefox. You can categorize your bookmarks by assigning them tags. | | Messaging_Direct Electronic statement delivery solutions for billing and other confidential documents via the Internet. | | Greentree_International Offers accounting, e-commerce and financial management software and services to mid-level companies. | | Devine_Machine_Software A loop workstation VSTi, also offers the free LiveSyncRecorder PC VST plugin. | | AJAX_overview_with_vote_example This page contains an overview of AJAX with several vote examples. The code used is described. | | Software_By_Bob Simple programs such as Timed Command, Film Database, Internet Connection Checker, Memorandum. [Win32] | | Innov8_Asia_Pacific_Pty_Ltd Innov8 integrates Cyco Software with over 100 CAD packages and ERP systems such as SAP to manage all engineering data in an enterprise. | | VoIP_Consulting Consulting group specializing in VoIP solutions, PBX, networking and wireless. | | CyD_Software_Labs Produce software for home and Internet users, Web design, network administration and software developers. | | alt_binaries_pictures_weapons FAQ, charter, support and example pictures for the newsgroup dedicated to the exchange of photos of handguns, long guns, knives, swords and other weapons for historical, technical, artistical and craf | | Building_Ruby,_Rails,_LightTPD,_and_MySQL_on_Tiger Tutorial to manually build and install four programs, on Mac OS X 10.4: Tiger. [Hivelogic] (December 1, 2005) | | FavLoc Saves links and images from the context menu to user-defined folders. | | Compete_Blog Quantitative analysis of web traffic, by Compete, Inc. | | Duvall_Designs Services include website development, e-commerce and SEO; focused on the small business owner. Based in Arizona. | | Com1_UK_Ltd Offers site design, redesign and hosting. | | Power_Retouche Photo editing plugins for image-enhancement like exposure, sharpening, saturation, and contrast. These plugins emulate optics and treat images as light and color behaves, not as digital codes. Tutoria | | ZSL_Network Offers web development and design for Internet and Intranet, e-commerce solutions, software development, technical writing, logo design, Flash animations, domain registration, and networking. | | Sauron A free GPL licensed DNS and DHCP management system. Includes a detailed presentation, screenshots and documentation. | | Apple_Switch_Ad_Campaign Wikipedia article with background history and a dedicated page about Ellen Feiss. |
|
This is websites2007.org cache of m/ as retrieved on 2008.10.10 websites2007.org's cache is the snapshot that we took of the page as we crawled the web. The page may have changed since that time.
|
AspTouch 1.0
IisDev
> Home
> News
> Notification Service
Articles
> Code Samples
> ASP.NET
> Security
Components & Tools
> Free Components
> SharpDevelop
> ComponentCenter
> CodeLook Program
Service
> Links
> Advertising
> Contact us
Search IISDEV:
AspTouch 1.0 - free
Last updated: 12/01/99, v1.0 (Initial Release)
If you are an "old dog" in the computer business, then you definitely remember the touch utilities that
were around to give a file a certain date and time stamp - with a common application being setting a
common date for all files of a project before it was deployed to a client. Because I didn't save the old
utilities in a secure spot, I had to come up with a new solution: a component that does it for me.
The advantage of the component approach is that I can use it in a WSH script to touch multiple files, or
use it from within ASP to change the timestamp of certain files. Just in case you wonder what I use it for:
I have an online email archive (file based) that is searchable with Index Server, and the date selection is done via
the "touched" file date of the messages (the file time is the same as the email time was).
Samples
Download
Samples
The first method provided by AspTouch is SetToCurrentTime, and it does what the name implies to a file
that is passed as parameter-changing the date and time to the current values.
<%
Set xObj = CreateObject("AspTouch.TouchIt")
strFileName = Request.ServerVariables("SCRIPT_NAME")
strFileName = Server.MapPath(strFileName)
bRes = xObj.SetToCurrentTime(strFileName)
Response.Write "File time changed to current time"
%>
The second method supported by AspTouch is SetFiletime, which takes two parameters: the file name
and a date value. It is equally simple to use.
<%
Set xObj = CreateObject("AspTouch.TouchIt")
strFileName = Request.ServerVariables("SCRIPT_NAME")
strFileName = Server.MapPath(strFileName)
' for demonstration purposes and that you see a difference
' mm/dd/yyy
varDateTime = "01/01/2001"
bRes = xObj.SetFiletime(strFileName,varDateTime)
Response.Write "File time set successfully!"
%>
So far, no error handling was used in the ASP code. The following example uses full
error handling:
<%
On Error Resume Next
' you have to subtract vbObjectError to get the error number below
Const E_FILEERROR = 1
Const E_DATEERROR = 2
Const E_DATECONVERROR = 3
Set xObj = CreateObject("AspTouch.TouchIt")
If xObj Is Nothing Then
Response.Write "Object could not be created!"
Response.End
End If
strFileName = Request.ServerVariables("SCRIPT_NAME")
strFileName = Server.MapPath(strFileName)
bRes = xObj.SetFiletime(strFileName,Now())
If Err.Number 0 Then
Response.Write "Error #" & err.number & " " & err.description
Else
Response.Write "Successfully set the new date on the current script!"
End If
%>
Installation and Download
AspTouch is packaged for the Windows Installer Service. To be able to install the package,
you need to have the Windows Installer Service running on your computer. Windows 2000 and Office 2000
automatically install it, if you don't have any of these, then you first must install the Installer Service:
Windows 9x (1430 KB)
Windows NT (1436 KB)
Now you can download the Installer package for AspTouch,
which is only 90KB in size. After downloading, simply double-click on the package to start the installation
process. It automatically registers the component and installs the samples.
If you encounter problems with the package, then please report them to support@alphasierrapapa.com.
©1998-2004 Christoph Wille. All rights reserved.
All content and images on this site are copyright. Reuse (even parts) needs our written consent.
|
|
| |
Free | component | to | refresh | the | timestamp | of | a | file. | By | Christoph | Wille. |
|
http://www.alphasierrapapa.com/IisDev/Components/AspTouch/
AspTouch 2008 October
dvd rental
dvd
Free component to refresh the timestamp of a file. By Christoph Wille.
Rules
|
© 2008 Internet Explorer 5+ or Netscape 6+
|
|
Recommended Sites: 1.
Arts -
Business -
Computers -
Games -
Health -
Home -
Kids and Teens -
News -
Recreation -
Reference -
Regional -
Science -
Shopping -
Society -
Sports -
World
Miss Gallery
- Top Anime Hentai
- DVD rental by mail
- Personal Loans - 0 Credit Cards - Credit Counseling - Advertising - Loans
|