Jump to content











Photo
- - - - -

CopyOrExpand issue or not?


  • Please log in to reply
1 reply to this topic

#1 fxscrpt

fxscrpt

    Frequent Member

  • .script developer
  • 328 posts
  •  
    Germany

Posted 01 October 2009 - 02:03 PM

Hi Peter,
If,ExistFile,"%target_sys%\C_437.NL_",FileDelete,"%target_sys%\C_437.NL_"

If,ExistFile,"%target_sys%\C_437.NLS",FileDelete,"%target_sys%\C_437.NLS"

FileCopy,"%source_win%\C_437.NL_","%target_sys%"

CopyOrExpand,"%source_win%\C_437.NLS","%target_sys%\C_437.NLS"

this code will give us C_437.NLS file in system directory,
but only if source file is not readonly.

Thanks
:D
Peter

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 October 2009 - 10:45 AM

I think that it is correct. In the log there is a hint that the file exists as readonly.

And if the WB session or the project is set to 'no warnings', the log icon is 'success' rather than 'warning'

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users