Hi!
Thank you supputuri,
Your help is greatly appreciated.
After navigating in forums for a day, it seems that wscript and cscript are unavailable in QTP because they are "Host specific object ". I guess this would discard the Wshell solution?
For your first option, the WMI, it seems the right way to go.
I already have some wmi in my script
The thing is, I really have no clue how to code this.
May I ask for your help? Is there something I could work out of the above code to send a message?
Also, in case someone would be interested, forgot to mention I took my code here http://stackoverflow.com/questions/15555...7#16820357
Thanks,
François
Thank you supputuri,
Your help is greatly appreciated.
After navigating in forums for a day, it seems that wscript and cscript are unavailable in QTP because they are "Host specific object ". I guess this would discard the Wshell solution?
Quote:2) Create Wshell object pointing to the remote box where the file is opened and then use popup method.
For your first option, the WMI, it seems the right way to go.
Quote:1) Using WMI and send message
I already have some wmi in my script
Code:
Function GetFileOwner(strFileName)
' http://www.vbsedit.com/scripts/security/ownership/scr_1386.asp
Set objWMIService = GetObject("winmgmts:")
Set objFileSecuritySettings = _
objWMIService.Get("Win32_LogicalFileSecuritySetting='" & strFileName & "'")
intRetVal = objFileSecuritySettings.GetSecurityDescriptor(objSD)
The thing is, I really have no clue how to code this.
May I ask for your help? Is there something I could work out of the above code to send a message?
Also, in case someone would be interested, forgot to mention I took my code here http://stackoverflow.com/questions/15555...7#16820357
Thanks,
François