maneesh_jain
23rd September 2009, 16:05
Hi,

I am writing a session to transfer files from a Network drive to my local PC in Baan V. I have in the past used client2server and server2client functions to transfer files between local and the host and they work very well.

For my session, I am using start.application.local:

command.line = "cmd /c copy " & source & " " & target
ret = start.application.local( command.line, false, ret2, "")

It is working fine except:

1. It does not display Progress Indicator
2. This being a DOS command, I can't use file names with spaces in them.
3. The black DOS window stays on the screen for the entire duration of the file transfer.

Can someone suggest a better way to copy files from local to local?

george7a
25th September 2009, 10:48
Hi,

1. Using this command (the dos copy), I am not sure there is a solution.
2. Add a quote before and affter the source and target variables. Then it should work
3. To solve this I have wrote a small VB application (a one liner :)) that will hides the black window or run it minimized.

I hope it helps,

- George