>Am I missing something?
>File.copy ("c:\dave\desktop.ini", "c:\temp")
>Fails but
>File copy "c:\dave\desktop.ini" "c:\temp"
>Works.

Did you try adding question marks to the file.copy call?  
File.copy (?"c:\dave\desktop.ini", ?"c:\temp")

Tested and worked here with the "?" marks.

Also tested with variables, and I had to add the "?" to the variable
assignments:
   local targetdir, localfile
   targetdir = ?"C:\Documents and Settings\PGG\Desktop\test"
   localfile = ?"C:\Documents and Settings\PGG\Desktop\menubar.zip"
   File.copy (localfile, targetdir)

For it to work.

Not being a heavy user of the file.copy function, I don't know if this is
normal or not, but that's what 4.2.09 is giving me.

Paul


Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to