pjw73nh Posted April 19, 2007 Posted April 19, 2007 Greetings, My exe file is called "workingdirtest.exe and is located in a folder called \\testmachine\test. CODEMsgBox(4096, "Update Not Needed", @WorkingDir) RunWait(@ComSpec & " /c Dir /p & @workingDir") When I run the exe, it displays the correct folder. ( \\testmachine\test ) in the msgbox. When it runs the second line, it runs the DIR on my c:\windows folder. I presume this is because my comspec variable is pointing to c:\windows? How can I make it do a DIR of the actual working directory using a variable? Thanks P.
BillLuvsU Posted April 19, 2007 Posted April 19, 2007 try using the macro @ScriptDir [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw
Developers Jos Posted April 19, 2007 Developers Posted April 19, 2007 RunWait(@ComSpec & " /c Dir /p " & @workingDir) 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.
BillLuvsU Posted April 19, 2007 Posted April 19, 2007 Ok, listen to JdeB, he's way smarter then I am. [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw
pjw73nh Posted April 20, 2007 Author Posted April 20, 2007 Ok, listen to JdeB, he's way smarter then I am. Thanks JDEB & Fear1313P.
AutoItKing Posted April 20, 2007 Posted April 20, 2007 (edited) So many people make stupid syntax mistakes. Check your code before you post. Duh! And reading the help file never hurts. Edited April 20, 2007 by AutoItKing http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
GEOSoft Posted April 20, 2007 Posted April 20, 2007 (edited) Adding to what JdeB posted In the help file you will also find FileChangeDir() to set the working directory to the folder you want to check Edit: Spelled the function name wrong Edited April 20, 2007 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
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