Export stock table when global register closed.

Make comments, ask questions, or just complain about the software on this site. Or comment on any educational software.
Please note that by clicking on links that may appear in these posts that you may be leaving the Dale Harris Educational Software website and that the content of those sites is the sole resposibility of the authors of those sites.

Moderators:daleadmin, Dale Harris, Alan, Andrew

Post Reply
Guest
Export stock table when global register closed.

Post by Guest » Wed Sep 14, 2005 10:07 pm

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.

User avatar
Dale Harris
Forum Owner
Posts:1171
Joined:Sun Dec 28, 2003 10:19 pm
Location:Chicago
Contact:

Export stock table at close.

Post by Dale Harris » Wed Sep 14, 2005 10:32 pm

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.
Dale

User avatar
Andrew
Site Administrator
Posts:822
Joined:Sun Dec 28, 2003 3:40 pm
Location:New Zealand

Post by Andrew » Wed Sep 14, 2005 11:54 pm

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.
Image
DHPOS Veteran (from v3.46, July 2002)

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests