currently, I'm making POS system with coldfusion.

On checkout, I want to open cash register draw when calculate button clicked on coldfusion page.
Do you have any idea or any code?
Who is Participating?
gdemariaConnect With a Mentor Commented:

As Sid suggested, the place to start is the drawer docs... what action will open the drawer?   What language is it in, how do you execute it?

I am also curious if the cash drawer is connected to the CF server or a client PC?  I assume a client PC (that you have more than one PC with more than one drawer).   If true, you need to choose a language such as javascript or java on the client side to open the drawer.  CFexecute will run on the server, not on the PC connnected to the drawer (unless the server is connected to the drawer)
As with the printer issue in your other Q, this is not straightforward although this may be a bit easier. depending on your cashdrawer, you may be able to fire an open signal using VBscript and if this is the case, you can use cfexecute to trigger the event. But again, there's not going to be a cut & paste solution. You'll have to look at the drawer docs to see what is possible.
SidFishesConnect With a Mentor Commented:
gd is correct that cfexecute only runs on the server - but I assumed your cfserver is on your internal network and you would be able to give cf access to a folder on the client side machine that the drawer is attached to. You'd have your vbscript in that folder and cfexecute could run it.

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to and use offer code ‘EXPERTS’ to get 10% off your first purchase.


Yup, Sid, that's another way that I didn't think..  Good Idea.

So it all depends on what makes the drawer open...  what's the code?
Hammo777Connect With a Mentor Commented:
I think cash registers like com ports:

How about looking at a network controllable switch?   I have no clue where to start here.  Just an idea.

wannabemasterAuthor Commented:
Thank you for all comments.
I' still working on it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.