Home › Forums › Knowledge Base › Legacy Applications › PMCopy File Utility
- This topic has 0 replies, 1 voice, and was last updated 19 years ago by
Rob.
-
AuthorPosts
-
April 15, 2006 at 3:18 am #1614
Rob
MemberPMCopy File Utility
Last edited: December 15, 2003 08:14 AM
PMCopy is a specialized file copier designed specifically for backing up files from the application directory and it’s subdirectories. It differs from a regular DOS XCOPY command in that it looks only for specific directories instead of automatically copying all directories, and it can skip over a locked file without generating an error message. PMCopy can be run from a shell, from a DOS prompt, or automatically using a Windows scheduler. It replaces and improves on TMCopy.
Syntax
PMCOPY {/INIT} {/APPDIR=} [{/DEST=}/{/UNC=}] {/AUTOCLOSE} {/LOGIN} {/CHANGED} {/?}
And what do they mean?
* /INIT – will initialize the video. Use when not run from Touchnet.
* /APPDIR= – will specify the application directory to copy from.
* /DEST= – will specify the drive to copy to. (ex: /DEST=C:)
* /UNC= will allow specification of a network share using universal naming conventions. Can be used in place of the /DEST= switch. (ex: /UNC=\COUNTER1C-DRIVE)
* /AUTOCLOSE – will bypass completed notification screen.
* /LOGIN – will perform a Lantastic 7.0/8.0 for Win95 Net Login on the computer name specified in the /UNC command line switch.
* /CHANGED – will only copy files that have their archive attribute turned ON. Once copied this switch will also set the archive attribute to OFF.
* /? – Displays help info.NOTE: You don’t have to tell PMCopy the application directory if you don’t want. It will assume that the current directory is the directory you wish to copy from. The only caveat is that it does require that the application directory is a child of Touchnet directory (which must be off the root). So, for example:
“Touch MenusTouchnetMyApp” is not a valid directory
BUT,
“TouchnetMyApp” is a valid directory
It is not necessary to create the directories on the destination. If they don’t exist, PMCopy will create them for you.
Here’s a example of usage:
To back up a application called Joes from your local hard drive to a shared drive on a file server named COUNTER1 you would launch PMCopy like this:
PMCopy /INIT /APPDIR=Joes /UNC=\Counter1c-drive /LOGIN /AUTOCLOSE /CHANGED
Once launched with these command line switches PMCopy will initialize the video (because you’re not using a shell), perform a net login to the machine COUNTER1, copy the files from TouchnetJoes that have changed since the last time it was run, and shut itself down.
Setting Up a Nightly BackupPMCopy can be used with an automatic scheduler such as the one that comes with Windows98 to create an automatic backup routine. The backup must be either to itself, or to a network server accessible from the Windows98 computer. Set it up as follows:
1. Run Scheduler by selecting it from the system tray on the desktop.
2. Select Add Scheduled Task to start the wizard, then click Next.
3. Select Browse, navigate to PMCopy.PIF in the Tools directory, and click Open.
4. Set the name to Nightly Backup.
5. Select Daily and click Next.
6. Set the Start Time to 3:00AM, leave the other options set to their defaults, and click Next.
7. Select Open Advanced Properties… and click Finish.
8. You are now looking at Properties for Nightly Backup. On the Run line, add the appropriate command line switches to the end of the command, being sure to leave spaces on both sides of each switch.
Example – To back up a Windows TMCU to a DOS workstation, the switches would be:
/INIT /UNC=\COUNTER1C-DRIVE /APPDIR=JOES /AUTOCLOSE /LOGIN /CHANGED
9. You are done. Press OK to exit. You can test it by right clicking on it in Scheduler and selecting Run.Directories Copied
* (application)
* Checks
* Data
* Reports
* Inv
* InvData
* InvRecipe
* Bread
* BreadRecipe
* CashMgmt
* A_RRevisions
01/10/97 Version 1.05
1. Converted from TMCopy.
2. Corrected problem of locking up when encountering a file that was locked.
3. The /LOGIN command will no longer generate a Net Logout when done. This eliminates situations where the station is supposed to be logged in to the backup computer for other reasons.
4. Improved error handling to inform the user if it had errored out due to inability to access the remote computer.
5. Enlarged progress window so that full name of files being copied could be seen.
6. Changed PIF to run in Full Screen so that graphics will be correct. -
AuthorPosts
- You must be logged in to reply to this topic.