Jump to content
Sign in to follow this  
Aqeel

To Copy files to current logged in users application data folder

Recommended Posts

Aqeel

I just wanna copy some files to current logged in users Application data folder

But my runwait command is not running ,what am i doing wrong pls helpt..

$DIR = @AppDataDir & "\MICROSOFT\TEMPLATES /C /E /I /R /Y/D "

$fulldir = "xcopy z:\zenapps\glltemplates\*.* " & $dir

MsgBox(0,"Templates",$fullDIR,30)

RunWait(@ComSpec & " /c " & $fulldir,@AppDataDir )

Thanks

Share this post


Link to post
Share on other sites
evilertoaster

Have you tried using FileCopy() instead of the dos command?

Share this post


Link to post
Share on other sites
Aqeel

Have you tried using FileCopy() instead of the dos command?

Thanks Dude. File Copy did work , but i would still like to know what i am doing wrong with that RunWait.

Aqeel

Share this post


Link to post
Share on other sites
evilertoaster

"xcopy z:\zenapps\glltemplates "& @AppDataDir & "\MICROSOFT\TEMPLATES\"

I think this is better syntax for xcopy... maybe try that

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  

×