Sign in to follow this  
Followers 0
mrmacadamia

multiple macro in one statement

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

:)

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