skafreak_510 Posted October 31, 2005 Share Posted October 31, 2005 Ok so I have a Dircopy script that runs as admin. #NoTrayIcon AutoItSetOption("RunErrorsFatal", 0) Break(0) $USERNAME = "Administrator" $PASSWORD = "*" $RUN = 0 ; run indicator ; retrieve the cycle from commandline If $CMDLINE[0] = 1 Then $RUN = $CMDLINE[1] If $RUN = 0 Then RunAsSet($USERNAME, @ComputerName, $PASSWORD) Run('"' & @ScriptFullPath & '" " 1"') If @error Then MsgBox(4096+32,"Error", "Error starting under admin mode") Exit EndIf DirCopy ( "\\local server\Ascrpts\", "C:\Program Files\Ascripts\" ,1) RunAsSet() I know the running it as admin isn't the problem because or the MsgBox part. How do I check if A. The Dir the cammand is copying from exist. B. That it has been created. C. If not what went wrong thanks Link to comment Share on other sites More sharing options...
Valuater Posted October 31, 2005 Share Posted October 31, 2005 this might help you could use it for the "source" then use it to verify the "created" ; checks for exe folder DirGetSize(@ProgramFilesDir & "\QTasc\XPClean\Settings\Skins\") If @error = 1 Then DirCreate(@ProgramFilesDir & "\QTasc\XPClean\Settings\Skins\") MsgBox(0," Directory", " The directory did not exist and has been created ") EndIf 8) Link to comment Share on other sites More sharing options...
Developers Jos Posted October 31, 2005 Developers Share Posted October 31, 2005 What about : FileExists SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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