home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
COMPILER
/
TOUCH
/
README
< prev
next >
Wrap
Text File
|
1995-06-08
|
4KB
|
109 lines
COPYRIGHT:
----------
Copyright (C) International Business Machines Corp., 1991,1992,1993.
DISCLAIMER OF WARRANTIES:
-------------------------
The following [enclosed] code is sample code created by IBM Corporation.
This sample code is not part of any standard IBM product and is provided
to you solely for the purpose of assisting you in the development of
your applications. The code is provided "AS IS", without warranty of
any kind. IBM shall not be liable for any damages arising out of your
use of the sample code, even if they have been advised of the
possibility of such damages.
REVISION LEVEL: 1.0
---------------
DESCRIPTION:
TOUCH is an OS/2 program that changes the date and time of
selected files to the date and time at which the command is run.
You must input one or more file masks indicating the files that
are to have their date and time updated. A message is output for
each file indicating the successful update of the date and time.
TASK:
Changes the date and time of selected files to the date and time
at which the command is run.
CONCEPT/FEATURE:
This program demonstrates how to query the date and time, how to
find files based on a file mask, how to open those files, how to
update the date and time of those files, and how to close the
files when done.
PROJECT LOCATION:
Inside the COMPILER Sample folder (inside the VisualAge C++
SAMPLES folder).
SOURCE FILE LOCATION:
X:\ibmcpp\samples\compiler\touch
where X: is the drive you installed the samples and document
component of VisualAge C++.
HOW TO RUN THE SAMPLE:
FROM WITHIN THE WORKFRAME ENVIRONMENT:
Open the Samples folder on your OS/2 desktop then double-click on
the project's icon to open the project view of the sample. Click
on the RUN button of the project's toolbar.
FROM THE COMMAND LINE:
Simply type the name of the .EXE file, that is:
TOUCH
HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
FROM WITHIN THE WORKFRAME ENVIRONMENT:
Open the Samples folder on your OS/2 desktop then double-click on
the project's icon to open the project view of the sample. In the
upper half of the project window you will see the icons of the
files associated with the sample. From the Project pulldown,
select BUILD -> REBUILD ALL. To run the sample project, see HOW
TO RUN THE SAMPLE above.
FROM THE COMMAND LINE:
A command file is provided to allow rebuilding of the WorkFrame
projects from the command line. Simply type:
BUILD
To run the sample project, see HOW TO RUN THE SAMPLE
project above.
SOFTWARE/HARDWARE PREREQUISTES:
o IBM VisualAge C++
o OS/2 2.1 or Warp
o IBM or compatible 386 and up.
ADDITIONAL INFORMATION:
For more information on the creation and use of projects in the
WorkFrame environment, see the VisualAge C++ for OS/2 User's
Guide.
To access an online book, simply open the main VisualAge C++
desktop folder, then open the Information Folder inside. To view
a book, double-click on that book's icon.
SOURCE FILES - TOUCH
Required files/libraries:
TOUCH C
touch source file
TOUCH MAK
touch make file
OS2386.LIB
OS/2 API library