Real Software Forums
http://forums.realsoftware.com/

Problem with InitialDirectory in Windows 7
http://forums.realsoftware.com/viewtopic.php?f=6&t=41459
Page 1 of 1

Author:  pbesong [ Wed Nov 16, 2011 8:16 pm ]
Post subject:  Problem with InitialDirectory in Windows 7

I'm using this code to open a specific folder that was created.
Dim dlg as OpenDialog
Dim f as FolderItem
dlg= New OpenDialog
dlg.InitialDirectory= getFolderItem(app.tmpPath).parent.Child("Backups")

msgBox dlg.InitialDirectory.absolutePath

This works fine on Windows XP. The msgBox gives me the correct path and it opens that folder.
But in Windows 7, msgBox gives me the correct path, but opens the Desktop folder instead.

Author:  pbesong [ Wed Nov 16, 2011 8:17 pm ]
Post subject:  Re: Problem with InitialDirectory in Windows 7

I'm using Real Studio 2011 Release 2, BTW.

Author:  pbesong [ Sat Nov 19, 2011 10:32 pm ]
Post subject:  Re: Problem with InitialDirectory in Windows 7

I found my problem. I was testing the app from the Desktop instead of its installed location. When I launch it from Program Files (x86) it opens the target folder properly.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/