stompbox Posted December 10, 2004 Posted December 10, 2004 Is it possible to set the directory that the open and save dialogs will point to via AutoIt? For example, I'd like to call: SetOpenSaveDir("c:\temp") and when I choose Open... from the File menu, I'd like the open dialog to point to: c:temp Thanks!!!!
Josbe Posted December 10, 2004 Posted December 10, 2004 (edited) Well, simply you could add this:$dir = "C:\temp" $var = FileOpenDialog("Open", $dir, "All files (*.*)", 1 + 4 ) edit: typos Edited December 10, 2004 by josbe AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
layer Posted December 10, 2004 Posted December 10, 2004 like: FileSaveDialog ( "title", "init dir", "filter" [, options [, "default name"]] ) ? FootbaG
stompbox Posted December 10, 2004 Author Posted December 10, 2004 (edited) you beat me to it... =p<{POST_SNAPBACK}>Sorry, no, what I want to do is alter the director of the HOST program, not an Open or save Dialog that AutoIt creates.In other words, I'd like to set the directory of the active frontmost application, then when I choose Open... or Save from the File menu of the active program, have that dialog point to the "right place". Edited December 10, 2004 by stompbox
layer Posted December 10, 2004 Posted December 10, 2004 i dont know if that's possible... i know it gets annoying when ya gotta click through 8 billion folders to get to the file you want to open or the destination you want to save to... maybe someone else knows...? FootbaG
killaz219 Posted December 10, 2004 Posted December 10, 2004 What about the "init dir" part of it? (initial directory)
stompbox Posted December 10, 2004 Author Posted December 10, 2004 I tried this call, but no go: FileChangeDir ( "path" ) Apparently it's possible since there are shareware programs that allow you can jump directly to a folder/file.
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