Jump to content

noob question - please help


cleaner
 Share

Recommended Posts

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....

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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