Jump to content

Recommended Posts

Posted

Hi.... guess its quite easy for u but i just have no clue how to do it..... i need the command for copying that file @UserName&"log.html" which is in the script folder to another folder... i tried FileCopy ( @UserName&"log.html" , @UserName& "c:\temp\" ,1 ) but it wont work....

Posted

thx it works.... but if the @username file that should be copied is not in the script folder, but in another folder, for example c:\programs ?

Posted (edited)

Oh, your saying @UserName is part of the filename?

Assuming C:\ is your systemdrive, then

FileCopy ( EnvGet("systemdrive") & "\programs\" & @UserName & "log.html" , EnvGet("systemdrive") &"\temp\" , 1 )
oÝ÷ Úò¢êá¢g©jØb±©l¢)ÂÓݺÚ"µÍ[PÛÜH
ÛYQ]H  [È ][ÝÉÌLÜÙÜ[ÉÌLÉ][ÝÈ   [ÈÙ[YH    [È ][ÝÛÙË[ ][ÝÈÛYQ]H    [È ][ÝÉÌLÝ[    ÌLÉ][ÝÈH
BoÝ÷ ØêÞ½éÜ©àzØ^Âäx·¶ò~íë®*mjwn±êÞ«b½æv·¬²)àjëh×6
If FileChangeDir( @HomeDrive & "\programs" ) Then
    FileCopy( @UserName & "log.html" , "..\temp\" , 1 )
EndIf
Edited by MHz

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...