TheDcoder Posted April 22, 2015 Share Posted April 22, 2015 (edited) This might be a silly question but, AutoIt is my first language (Also the only one I know) What is "working directory"? (2nd param in Run) I saw the term many times, now I am curious about it. Thanks in advance, TD Edited April 22, 2015 by TheDcoder EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
MikahS Posted April 22, 2015 Share Posted April 22, 2015 (edited) "Current/active working directory." Means the Directory you are currently working in. An example: If you are working with a script on your desktop, it would be C:UsersUserNameDesktop. Edited April 22, 2015 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
TheDcoder Posted April 22, 2015 Author Share Posted April 22, 2015 @MikahS If I supply a string (path) to Run(), how will it effect executable? EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
MikahS Posted April 22, 2015 Share Posted April 22, 2015 (edited) The path (string) to the executable is the 1st parameter. The working directory is what you have access to (the directory you are currently in). Not the path of the executable. EDIT: I'm sure there are some who can explain a little more technical. Edited April 22, 2015 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 22, 2015 Moderators Share Posted April 22, 2015 TheDcoder,An Internet search is usually a good place to start - and the opening paragraph there is a pretty good description.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
TheDcoder Posted April 23, 2015 Author Share Posted April 23, 2015 @Melba23 I already checked that before posting this thread . What I tried after reading the wiki is Compiled this (test.exe): FileOpen(@ScriptDir & '\text.txt', 1) ; Make a file called text.txt Used another script to execute test.exe: Run("test.exe", @AppDataDir) ; Both script are located in the same directory (Desktop) It didn't create a file called text.txt in %appdata% as mentioned in the wiki So I asked the question here, TD EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 23, 2015 Moderators Share Posted April 23, 2015 TheDcoder,And why would it create a file in @AppDataDir when you are coding the exe to open a file on a specific path ((@ScriptDir) which will override the @WorkingDir setting? Recode the exe to remove the specific path and it will work as @WorkingDir will be used as the default location in the absence of a path.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
TheDcoder Posted April 23, 2015 Author Share Posted April 23, 2015 Thanks Melba EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion 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