VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
25 Replies Last post: Aug 4, 2009 10:24 AM by wila   Go to original post 1 2 Previous Next
Click to view JPatten's profile Enthusiast 50 posts since
Oct 16, 2007

If you are running Windows Vista, the CHM file will not open properly until you "Unblock" it. Right click on the file and choose properties. There will be and "Unblock" button at the bottom.

Alex - Similar to what Carter did with dB's wrapper, I have managed to use your wrapper in powershell, mainly because you have the screen print feature. Using it in powershell is definately easier than just using the basic VIX in C#. Thanks again.

Click to view akoeplinger's profile Novice 18 posts since
Nov 29, 2008
JPatten schrieb:
If you are running Windows Vista, the CHM file will not open properly until you "Unblock" it.

Ah, yes, I forgot about that ;)

Glad to hear that my work is useful for you, if you have any suggestions for further improvements, please let me know!

Regards, Alex
Click to view JPatten's profile Enthusiast 50 posts since
Oct 16, 2007

Not sure why, but I now tried to connect using the IP address instead of the host name and I was able to connect. When I ping the host name, it comes back with the correct IP. Oh well.

Thanks

Click to view fixitchris's profile Expert 549 posts since
Dec 8, 2006

Very, very sleek implementations guys! Thanks!

I found that connecting to a hostname does not work either.

Private Function getLocalIP() As String
Dim localHost As String
Dim IPHEntry As IPHostEntry
Dim IPAdd() As IPAddress
localHost = Dns.GetHostName()
IPHEntry = Dns.GetHostEntry(localHost)
IPAdd = IPHEntry.AddressList
Try
For i = 0 To IPAdd.GetUpperBound(0)
If IPAdd(i).AddressFamily = Sockets.AddressFamily.InterNetwork Then
Return IPAdd(i).ToString
End If
Next

Catch ex As Exception
Return "127.0.0.1"
End Try
End Function

dblock, I have a couple questions for you:

1. How did you determine your timeouts? I see that a timeout for copying a file is 20 minutes, remove a snap is 10 minutes.

2. You mention that you still implement synchronous WAITs, and it looks like you just do a CHECK COMPLETION on each job and time out if necessary. Is there any advantage to doing callbacks instead?

3. Take a look at my question and implementation of VIX, I would appreciate any feedback: http://communities.vmware.com/thread/187966?tstart=0


Click to view fixitchris's profile Expert 549 posts since
Dec 8, 2006

Re 2.2:

As I understand your re-design, you want to block the entire thread by implementing ICallback with a timeout?

I will try to figure something out. first I have to read up on async patterns.


Click to view fixitchris's profile Expert 549 posts since
Dec 8, 2006
DBlock,

Try the attachedcode for blocking waits.

Improvements: http://www.xtremevbtalk.com/showthread.php?t=303781

Attachments:
Click to view fixitchris's profile Expert 549 posts since
Dec 8, 2006
Sweet!
Click to view wila's profile Virtuoso 3,266 posts since
Jun 27, 2006
Hi dblock

Thanks for the update of your project at my site, http://ww.vi-toolkit.com
Sorry if the wording wasn't clear enough, you are welcome to make any change on there (which is true for anyone who would like to make improvements/corrections on the site)

As it is now, the projects on the site are a collection of projects elsewhere - written by other people - with the intention of making them easier to find.
Eg. arise the awareness to more people of the availability of YOUR project(s).

Due to limitations of time available that i can spent on the site my own content is now limited to adding more command references of the VMware SDK's available.
That and adding links to interesting projects/code I "stumble" over.

thanks again,


--
Wil
_____________________________________________________
VI-Toolkit & scripts wiki at http://www.vi-toolkit.com

Developer Social Media

Communities