cancel
Showing results for 
Search instead for 
Did you mean: 

open tif file on my computer then copy it with other name(but as tif) to other machine on local network

ahmed_tawfik
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

arnd_schmidt
Active Contributor
0 Kudos

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

ahmed_tawfik
Participant
0 Kudos

Hi Arnd

how to display browser to user to select files?

how to set source file to be a file that i double clicked in browser as it is tif file??

note

when user double clicked to file is not tif then no thing to do

best regards

Ahmed

arnd_schmidt
Active Contributor
0 Kudos

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

Answers (0)