Home » Developer & Programmer » Forms » Want to get image name from specified folder on hard desk
Want to get image name from specified folder on hard desk [message #422367] Tue, 15 September 2009 20:06 Go to next message
medosa
Messages: 6
Registered: February 2009
Junior Member
i made a form to call exe of scanner program and scan image.
and the scanner scan the image and put it in hard desk
and i load this image to the form but there are a problem

to do this i must know the name of the image t o load it in the for using
CLIENT_IMAGE.READ_IMAGE_FILE

But every time scanner put image on the hard desk the scanner put it with different name .

is there any solution to get the name of last modified file in specified folder
i don't want to use
CLIENT_GET_FILE_NAME

i want some thing to do it automatically is there any solution to this .

i want to solve this problem with any way but i can't get the image name the scanner put on the hard desk.


i use oracle forms 10g with Webutil to load image and save it .
Re: Want to get image name from specified folder on hard desk [message #423077 is a reply to message #422367] Tue, 22 September 2009 01:04 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Use the 'dir' and 'sort' commands to store the files in descending date order in a file and read the first line of the file.

David
Re: Want to get image name from specified folder on hard desk [message #423380 is a reply to message #422367] Wed, 23 September 2009 17:31 Go to previous message
medosa
Messages: 6
Registered: February 2009
Junior Member
thanks a lot for your reply i used it and it worked thanks a lot
Previous Topic: "Do you want to save the changes you have made?" with customized procedure
Next Topic: 10g host cmd
Goto Forum:
  


Current Time: Fri Sep 20 06:38:55 CDT 2024