Sign in to follow this  
Followers 0
cleaner

noob question - please help

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Welcome,

Try this

FileCopy ( @UserName&"\log.html" , "c:\temp\" ,1 )

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

omg it works..... thx very much

Share this post


Link to post
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
Sign in to follow this  
Followers 0