mrmacadamia Posted May 21, 2009 Share Posted May 21, 2009 I'm using Litestep and I want to move files to specific folder. Normally i can use DirCopy("pictures", "C:\program files\LiteStep\Profiles\MRNIXON\themes"", 1) but i want to use macros @ProgramFilesDir and @UserName for this to work. Currently i just can use DirCopy("pictures", @ProgramFilesDir &"LiteStep\Profiles\MRNIXON\themes"", 1) How to put the @UserName in the code? I tried different ways but it doesn't seem to work. Link to comment Share on other sites More sharing options...
martin Posted May 21, 2009 Share Posted May 21, 2009 I'm using Litestep and I want to move files to specific folder. Normally i can use DirCopy("pictures", "C:\program files\LiteStep\Profiles\MRNIXON\themes"", 1) but i want to use macros @ProgramFilesDir and @UserName for this to work. Currently i just can use DirCopy("pictures", @ProgramFilesDir &"LiteStep\Profiles\MRNIXON\themes"", 1) How to put the @UserName in the code? I tried different ways but it doesn't seem to work.Not sure what you need so this is a guess. But the code you posted won't work because @ProgramFilesDir does not have a trailing '\'. DirCopy("pictures", @ProgramFilesDir &"\LiteStep\Profiles\" & @UserName & "\themes"", 1) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
mrmacadamia Posted May 21, 2009 Author Share Posted May 21, 2009 Not sure what you need so this is a guess. But the code you posted won't work because @ProgramFilesDir does not have a trailing '\'. DirCopy("pictures", @ProgramFilesDir &"\LiteStep\Profiles\" & @UserName & "\themes"", 1) oh i forgot about that but now i know there should be another "&" before @UserName. Anyway, If I use your posted code, it won't work because the last " should be removed. Thanks anyway though. Link to comment Share on other sites More sharing options...
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