Jump to content
Sign in to follow this  
cleaner

noob question - please help

Recommended Posts

cleaner

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
cleaner

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
MHz

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.