on 05-21-2016 12:36 PM
Hi all
I want to make button when user click it ,execute the following
1-open my computer for browse files of type tif only
2-when i select one file of type tif then copy this file to different computer on local network with different name (i create this name)
for examples
i have 123.tif file on c:\my photo
i want to explore my computer to reach c:\my photo (browsing only folders and tif files)
when i select one of tif files (for example 123.tif) and double clicked (when double clicked with any other than tif file do nothing)
it copy this file to "\\192.68.1.25\photo_on_server\photo123_22022016.tif"
whrere192.168.1.25 is machine on my local net
photo_on_server is shared dir on this machine
photo123_22022016.tif" is the new name of my 123.tif file located in my computer (c:\my photo)
thanks
How about using PowerBuilders FileCopy() function?
For the browser function you might take a look at the PowerBuilder Examples application.
There is an example how to read folders recursively.
hth
Arnd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not know how you want to layout your UI .
A complete (and much much better) File Browser Example can be found here:Topwiz Software - Filesys
It should be easy to enhance the code in the doubleclicked event of the listview.
In the ue_postopen() Event of the Browser Window, you can set the "roots" for the treeview.
hth
Arnd
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.