At 2:13 AM -0800 11/2/00, Scott Rossi wrote:
>I have a script which is apparently failing to write a binary file on
>Windows (MC v2.3.2). After running the script, I wind up with a file in the
>correct location which is only a few bytes in filesize when it should be
>multiple megabytes.
>
>I used an almost identical script in previous versions of MC so I can't see
>why this is failing -- perhaps someone has a suggestion?
>
># tSourcePath and tDestPath are source and destination paths
>open file tDestPath for binary write
>put url "file/binfile:" & tSourcePath into tSourcePath
>write tSourcePath to file tDestPath
>close file tDestPath
>
>Am I missing something?
Is the "file/binfile:" part a legit format? I've never seen that before.
However, is it not simpler to do this?
put url ("binfile:" & tSourcePath) into url ("binfile:" & tDestPath)
Cheers
Dave Cragg
--
_____________________________________________
The LACS Centre (Business English Training Resources)
mailto:[EMAIL PROTECTED]
http://www.lacscentre.co.uk
_____________________________________________
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.