Process.Start acts differently with windows XP or vista

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2009
Posts: 27
Reputation: JohnPhilipps is an unknown quantity at this point 
Solved Threads: 0
JohnPhilipps JohnPhilipps is offline Offline
Light Poster

Process.Start acts differently with windows XP or vista

 
0
  #1
Jul 17th, 2009
Good morning,

I have a small VB. app in VS2008 that opens a windows folder in maximized view.
I am using the following code:
  1. Dim startInfo As New ProcessStartInfo("explorer.exe")
  2.  
  3. startInfo.WindowStyle = ProcessWindowStyle.Maximized
  4.  
  5. startInfo.Arguments = "C:\Program Files\123 Systems\ExcelFolders\TechTimeSheet"
  6.  
  7. Process.Start(startInfo)

When using my app with windows xp it works well. It opens a single folder as if going through the "my computer" to open it. Attached is a screen shot "folder" to show the desired way.
However when using hte same code with Vista it opens my folder as if I right clicked on the start menu and selected "explore", also a screen shot named "explore" is attached showing what I do NOT want.

If I may ask, what I am doing wrong? What should I change to get both vista and XP to work the same, that is openeing a single folder.

Thank you for your help,
John
Attached Thumbnails
Folder.jpg   explorer.jpg  
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 132
Reputation: babbu has a little shameless behaviour in the past 
Solved Threads: 13
babbu babbu is offline Offline
Junior Poster

Re: Process.Start acts differently with windows XP or vista

 
0
  #2
Jul 17th, 2009
seems u r new to vista
u try and double click on my computer in vista u will get the same view
vista by default has this view like u get in xp when u right click and explore.
dont worry ur program is working fine
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 27
Reputation: JohnPhilipps is an unknown quantity at this point 
Solved Threads: 0
JohnPhilipps JohnPhilipps is offline Offline
Light Poster

Re: Process.Start acts differently with windows XP or vista

 
0
  #3
Jul 17th, 2009
Thanks for the response, but I don't get the same window depending when clicking in vista environemt or an XP one. What should I do then to have the one in XP (single folder) compared to in Vista getting a whole entire explore view?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 132
Reputation: babbu has a little shameless behaviour in the past 
Solved Threads: 13
babbu babbu is offline Offline
Junior Poster

Re: Process.Start acts differently with windows XP or vista

 
0
  #4
Jul 17th, 2009
i dnt think it is possible
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC