Jac Posted October 23, 2012 Posted October 23, 2012 Hello im trying to make an app to replicate my windows AD Here is the command line RunWait(@ComSpec & " /c " & "repadmin /sync dc=xxx,dc=xxx,dc=qc,dc=ca DC_NAME 3ccaae88-fe1d-4709-abaf-60cf2d499367 > """ & @ScriptDir & "\RepAD_Result_temp.txt""","",@SW_HIDE) On windows 7 it's working fine but on my windows 8 i get this error RepAD_Result_temp.txt when opening the file @ScriptDir & "\RepAD_Result_temp.txt Thanks for your help !
Developers Jos Posted October 23, 2012 Developers Posted October 23, 2012 Does it work when you run it manually at the CMD prompt or does it give the same errors? Jos 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.
Jac Posted October 23, 2012 Author Posted October 23, 2012 Yes it's working on the command line C:\Users\jefrguen>repadmin /sync dc=xxx,dc=xxx,dc=qc,dc=ca DC_NAME 3cc aae88-fe1d-4709-abaf-60cf2d499367 Sync from 3ccaae88-fe1d-4709-abaf-60cf2d499367 to DC_NAME completed successfull y.
Moderators JLogan3o13 Posted October 23, 2012 Moderators Posted October 23, 2012 What if you swap your /c for a /k to keep the window open. What do you see? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Developers Jos Posted October 23, 2012 Developers Posted October 23, 2012 Are you running the script with the x64 or x86 version of AutoIt3? 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.
Jac Posted October 23, 2012 Author Posted October 23, 2012 Ha thanks i compiled it with 64 bit support and now it's working fine !
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