E1M1 Posted October 24, 2009 Share Posted October 24, 2009 It i start cmd manually from stat menu... I see.,.,. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\rain> but if I use run("cmd") I see .,.,. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\> How to make script that stats CMD so that it shows @scriptdir instead of C:\ thanks edited Link to comment Share on other sites More sharing options...
Authenticity Posted October 24, 2009 Share Posted October 24, 2009 Run(@ComSpec & ' "' & @ScriptDir & '"') Link to comment Share on other sites More sharing options...
E1M1 Posted October 24, 2009 Author Share Posted October 24, 2009 Run(@ComSpec & ' "' & @ScriptDir & '"') it still shows Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\> edited Link to comment Share on other sites More sharing options...
Authenticity Posted October 24, 2009 Share Posted October 24, 2009 Heh, sorry. Run(@ComSpec, @ScriptDir) Read function description. Me too. =) Link to comment Share on other sites More sharing options...
E1M1 Posted October 24, 2009 Author Share Posted October 24, 2009 it does same as your 1-st code edited Link to comment Share on other sites More sharing options...
Developers Jos Posted October 24, 2009 Developers Share Posted October 24, 2009 What is the path of the testscript you use and how are you running it? 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...
Baraoic Posted October 24, 2009 Share Posted October 24, 2009 Try Run(@ComSpec,@UserProfileDir) Link to comment Share on other sites More sharing options...
E1M1 Posted October 24, 2009 Author Share Posted October 24, 2009 (edited) What is the path of the testscript you use and how are you running it?Oh you opened my eyes, thanks my script was in c:\ for some reason I am used to store my scripts in my documents , I really don't know why I did expection for this script I am running it with f5.But still what makes CMD start in script directory? how cmd know it?for me it looks you just cant tell cmd it's dir that easy.thanks. Edited October 24, 2009 by E1M1 edited Link to comment Share on other sites More sharing options...
Developers Jos Posted October 24, 2009 Developers Share Posted October 24, 2009 Oh you opened my eyes, thanks my script was in c:\ for some reason I am used to store my scripts in my documents , I really don't know why I did expection for this script I am running it with f5.But still what makes CMD start in script directory? how cmd know it?thanks.Did you try the first posted script again for another directory? 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...
E1M1 Posted October 24, 2009 Author Share Posted October 24, 2009 Did you try the first posted script again for another directory? yes it worked edited Link to comment Share on other sites More sharing options...
Developers Jos Posted October 24, 2009 Developers Share Posted October 24, 2009 yes it worked Ok, so next time please think a little longer before posting because you are now around here long enough to show a little more effort first.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. Link to comment Share on other sites More sharing options...
E1M1 Posted October 24, 2009 Author Share Posted October 24, 2009 your're right I just didn't think about it before posting - sorry. if you wan to know I was thinking about 20 minutes and then I googled about cmd and I was was like crazy... edited 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