Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Nov 22, 2019 4:21 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problem with InitialDirectory in Windows 7
PostPosted: Wed Nov 16, 2011 8:16 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem with InitialDirectory in Windows 7
PostPosted: Wed Nov 16, 2011 8:17 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
I'm using Real Studio 2011 Release 2, BTW.


Top
 Profile  
Reply with quote  
 Post subject: Re: Problem with InitialDirectory in Windows 7
PostPosted: Sat Nov 19, 2011 10:32 pm 
Offline

Joined: Fri Dec 09, 2005 6:25 pm
Posts: 357
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group