Re: Monitoring local file transfers
This sounds like a viable approach. I've not done this before, but it sounds like it could work. Thanks. Richard On Feb 7, 2007, at 9:35 PM, Jim Ault wrote: On 2/7/07 4:20 PM, Richard Miller [EMAIL PROTECTED] wrote: Chipp, Thanks for the suggestion. It's what I had been trying before. It certainly works in terms of transferring the files. But I can't get it to show the the progress of transferring any given file, like if I had transferred it from a remote server to my local computer. I'm using LibURLSetstatusCallBack, but this type of local transfer does not seem to generate any feedback. Any thoughts? Local transfer does not involve the same system procedures. In fact, I think that a temp file is opened for the new file to be written and then renamed as the last step for the user. Well, I think you could read and write in 'mouthfuls' rather than bytes. open file dorce for binary read open file dest for append put 0 into yyy repeat read from file sorce at yyy for xxx --chars from yyy write it to file sorce add xxx to yyy updateProgressCounter end repeat close file dest close file sorce !! Not the exact syntax, but close to that Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Monitoring local file transfers
Richard, You can put a file from one destination to another with: put C:/test.jpg into tPath put H:/test.jpg into tPath2 put URL(binfile: tPath) into URL(binfile: tPath2) If you're copying lots of files, then embedding these statements in a repeat loop with an incrementing progressbar should do the trick. You can get fancier with a 'send in time' which can also be interrupted as well. You also might want to check out the load command, though don't know if that works for local files. HTH, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Monitoring local file transfers
Chipp, Thanks for the suggestion. It's what I had been trying before. It certainly works in terms of transferring the files. But I can't get it to show the the progress of transferring any given file, like if I had transferred it from a remote server to my local computer. I'm using LibURLSetstatusCallBack, but this type of local transfer does not seem to generate any feedback. Any thoughts? Richard On Feb 7, 2007, at 4:43 PM, Chipp Walters wrote: Richard, You can put a file from one destination to another with: put C:/test.jpg into tPath put H:/test.jpg into tPath2 put URL(binfile: tPath) into URL(binfile: tPath2) If you're copying lots of files, then embedding these statements in a repeat loop with an incrementing progressbar should do the trick. You can get fancier with a 'send in time' which can also be interrupted as well. You also might want to check out the load command, though don't know if that works for local files. HTH, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Monitoring local file transfers
Richard, thats a tricky one... why not set the default folder to the one in the destination and check the detailed files for the sizes and content? Andre On Feb 7, 2007, at 10:20 PM, Richard Miller wrote: Chipp, Thanks for the suggestion. It's what I had been trying before. It certainly works in terms of transferring the files. But I can't get it to show the the progress of transferring any given file, like if I had transferred it from a remote server to my local computer. I'm using LibURLSetstatusCallBack, but this type of local transfer does not seem to generate any feedback. Any thoughts? Richard On Feb 7, 2007, at 4:43 PM, Chipp Walters wrote: Richard, You can put a file from one destination to another with: put C:/test.jpg into tPath put H:/test.jpg into tPath2 put URL(binfile: tPath) into URL(binfile: tPath2) If you're copying lots of files, then embedding these statements in a repeat loop with an incrementing progressbar should do the trick. You can get fancier with a 'send in time' which can also be interrupted as well. You also might want to check out the load command, though don't know if that works for local files. HTH, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Monitoring local file transfers
Richard, What you could do is control the file transfer yourself with a repeat handler. Using the repeat handler, transfer only 100K of the file at a time, updating the status bar as needed. Derek Bump Dreamscape Software Compress photos easily with JPEGCompress www.dreamscapesoftware.com Richard Miller wrote: I'm also looking for a way to monitor the status of a local file transfer from a connected hard drive to an internal drive. I'd like to be able to inform a user of the status of an ongoing file transfer (through a progress bar), since the transfer could take 30-60 seconds or even longer. RevCopyFile appears to be a completing blocking operation. I believe this could be done with the put url command, but I can't figure out how to use the LibURLSetStatusCallBack command so that it will monitor this local (rather than Internet-based) file transfer. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Monitoring local file transfers
On 2/7/07 4:20 PM, Richard Miller [EMAIL PROTECTED] wrote: Chipp, Thanks for the suggestion. It's what I had been trying before. It certainly works in terms of transferring the files. But I can't get it to show the the progress of transferring any given file, like if I had transferred it from a remote server to my local computer. I'm using LibURLSetstatusCallBack, but this type of local transfer does not seem to generate any feedback. Any thoughts? Local transfer does not involve the same system procedures. In fact, I think that a temp file is opened for the new file to be written and then renamed as the last step for the user. Well, I think you could read and write in 'mouthfuls' rather than bytes. open file dorce for binary read open file dest for append put 0 into yyy repeat read from file sorce at yyy for xxx --chars from yyy write it to file sorce add xxx to yyy updateProgressCounter end repeat close file dest close file sorce !! Not the exact syntax, but close to that Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution