PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: /ConsoleFile[Next]: /CopyRight
\ -> PPWIZARD Command Line -> Switches -> /Copy

Switch /Copy[:Fuzz]

This is a PPWIZARD command line switch.

This processing mode switch indicates that you simply want the input file copied from one place to another (source and destination filenames don't need to have the same name).

All following input masks are processed in "COPY" mode, the "/output" switch determines the destination directory and filename (it would normally include "*.*").

This can be used to syncronise .GIF, .JPG or other binary files with a local homepage image. The file will be copied only if the source date/time stamp or file size differs from the destinations (that is PPWIZARD does not care whether the source is newer or older than the destination).

Note that if you are only using PPWIZARD to copy files and not using any other processing modes (in the same command) then you will probably find it much easier to use the /Clone switch.

This switch can be used any number of times and will affect all input masks that follow. If an input mask comes first then any preconfigured extension information (see /ExtnInfo) will be used or if not available PPWIZARD will abort.

The Fuzz Parameter

This value is used to determine how close file date/times must be for two files to be considered to be the equal. The reason this is required is that different filesystems can store file times with different resolutions, for example a FAT filesystem can only resolve to the nearest 2 seconds where NTFS can resolve down to a second.

The filetime of a file copied from an NTFS drive to a FAT drive (floppy for example) may actually differ by a second! Note that for whatever stupid reason Windows has, you can actually get files with both 1 and 2 second differences! In this case an appropriate value would be "2" so that only files that differ by more than two seconds are considered different.

If not supplied then the default or last supplied value will be used. The value is ignored if you are also using the /DependsOn switch as in this case the files will not have their date/times compared.


You might already have a directory tree which is an image of your web site (contains images and html etc). This is useful for local testing and simplifies things when updating your web server.

You might wish to make a copy of this tree and call it "source" and call the original "destination" (this directory is never modified by you). You did this to "keep things together" rather than separate the images and other files from the source html (which you will pass through PPWIZARD).

Now you can use ppwizard to "make" the images (copy them when changed) as well as generating pure html from html with ppwizard commands imbedded. Note that I recommend using ".it" for "source" html but if this causes problems then there is no need (ppwizard does not care what extensions you use - as long as you don't forget which is which!).

Note that if you wish to use graphical HTML editors you should have a look at the "/HideCmd" switch.

The use of separate tree, the "/COPY" switch and "/HideCmd" would be a good approach if you wish non-technical people to maintain the source (or maybe while you get used to PPWIZARD and test it out).

If you currently use an FTP program to update the image then I suggest that you use the site syncronisation tool called "SITECOPY" (freeware, available for Windows, OS/2 and UNIX). This tool does all the work for you, uploading new or changed files or directories and deleting obsolete files or directories. If you use WINDOWS I have a free self installing download that makes it extremely easy to setup (unlike the official download...).

email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: /ConsoleFile[Next]: /CopyRight

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm