in reply to Re: chdir does not work on win2000
in thread chdir does not work on win2000
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: chdir does not work on win2000
by juo (Curate) on May 28, 2001 at 20:32 UTC | |
Here comes a standalone sample of the windows 2000 native browser. You will need the Tk module. You will notice the chdir in their and it doesn't produce any error but it also does not change the directory. It always goes back to the last directory browsed too. says Simply use your question
| [reply] [d/l] |
by the_slycer (Chaplain) on May 28, 2001 at 20:54 UTC | |
| [reply] |
by tye (Sage) on May 28, 2001 at 21:09 UTC | |
This isn't a problem with chdir, it appears to be a problem specific to directory named "tmp". If I try to chdir to a directory that doesn't exist, then the "Browse" button shows me files in the working directory of the script. If I successfully chdir, then it shows me files in that directory. But on both of those cases, if the directory name is "tmp", then I am instead shown files in the "My Documents" folder. Sounds like just the kind of thing Microsoft would do. An aside: If you cancel out of the Browse window, you get a two-button dialog box that either throws you back into the Browse window or exits the program. You really should allow the user to cancel the Browse window and return to the original form in case they change their mind about browsing. - tye (but my friends call me "Tye") | [reply] |
by juo (Curate) on May 31, 2001 at 17:15 UTC | |
Dear Tye, Are you using Win2000. With me it doesn't change the directory on Windows2000. When the browser open it shows me the directory last browsed too and not the directory that is returned by cwd(). The directory that is returned by cwd() is the directory were I started the script from. When I use chdir that directory has been changed but the directory in the browser stays untouched. When I browse to another location in the browser and I exit the browser that location is now stored and shown everytime I open the browser even when I reboot. It's that pointer I am not able to change. I believe it must be somewhere a setting in the windows2000 register that is not correct. On Windows NT it is working fine. Did anybody had simular problems ?
| [reply] [d/l] |
by tye (Sage) on May 31, 2001 at 19:11 UTC | |
by juo (Curate) on May 31, 2001 at 19:37 UTC |