cleaner Posted September 4, 2006 Posted September 4, 2006 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....
MHz Posted September 4, 2006 Posted September 4, 2006 Welcome, Try this FileCopy ( @UserName&"\log.html" , "c:\temp\" ,1 )
cleaner Posted September 4, 2006 Author Posted September 4, 2006 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 ?
MHz Posted September 4, 2006 Posted September 4, 2006 (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 September 4, 2006 by MHz
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now