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