Page 1 of 1

Export stock table when global register closed.

Posted: Wed Sep 14, 2005 10:07 pm
by Guest
Hello. Would it be possible to have POS export the stock table to a file automatically when the global register is closed (all lines with non-zero stock number & sales)? Or a way of exporting it without going into POSCONFIG where employees can mess up stock numbers?

Thanks.

Export stock table at close.

Posted: Wed Sep 14, 2005 10:32 pm
by Dale Harris
Guest,

Nope.

Although when the POS program closes you can set it up to run another program. For example a .BAT file that will backup the entire stock table to a floppy or other drive / folder.

Posted: Wed Sep 14, 2005 11:54 pm
by Andrew
If you want to make DHPOS run a batch (.BAT) file upon closing, the instructions about this feature are at http://www.dhpos.com/discuss/phpBB2/viewtopic.php?t=322

Basically you need a file called POS_NEXT.DAT which contains the path/filename of a program/batch file to run. DHPOS checks for the presence of this file upon exiting.

The program you would want to run would most likely be a batch file which contains the DOS commands to copy your stock table (TBL) files to another location. For example (untested):

Code: Select all

COPY MARTHA.TBL C:\POSBKUP\MARTHA.TBL
This code is in three parts:

1) COPY is the DOS command to copy files/folders.
2) MARTHA.TBL is the name of your register, plus the .TBL extension.
3) C:\POSBKUP\MARTHA.TBL tells the computer to copy the file in part 2, to the folder POSBKUP on C drive.