Aqeel Posted April 18, 2007 Posted April 18, 2007 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
evilertoaster Posted April 18, 2007 Posted April 18, 2007 Have you tried using FileCopy() instead of the dos command?
Aqeel Posted April 18, 2007 Author Posted April 18, 2007 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
evilertoaster Posted April 18, 2007 Posted April 18, 2007 "xcopy z:\zenapps\glltemplates "& @AppDataDir & "\MICROSOFT\TEMPLATES\" I think this is better syntax for xcopy... maybe try that
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