Thx for the fast response guitarzan!
What I am needing is a bit different...the class name is a bit misleading.
The .Net Class FileVersionInfo.GetVersionInfo returns the following:
File: C:\Anyfile.exe
InternalName: ListCtrl.exe
OriginalFilename: ListCtrl.exe
FileVersion: 1.0.0.1...
I'm trying to convert a script I've created in VB.Net to VBScript. I am unable to replicate the Class FileVersionInfo.GetVersionInfo features. Anyone done something like this before?
Hello all,
I need to find a way to update the WEP Key value via VB 6. I am writing a VB app that is used for further customization of new machines that have just been imaged.
I have lloked brifly at the Wireless Provisioning Services articles, I am not sure that that is what I need.
Has...
I did manage to get this to work:
Set WshShell = CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("PROCESS")
AllUsersProfile = WshSysEnv("PROGRAMFILES")
Any better suggestions?
What is the easiest way to get the location for the "Program Files Folder"?
Typically it will be located at C:\Program Files, but not always in our environment.
Is there a functionality similar to the GetWindowsDirectory API that will give me this information?
Thanks for any help you can offer!
Thanks PHV!
I used your logic and it worked. Unfortunately, there are a few thousand users and this runs very slow as it has to iterate through the entire list of users.
Is there another method that can be used to get the inforamtion for a specific user, some sort of filtering?
Hello,
I'm trying to get the profile path for a specific user in Active Directory.
I have the following code that will return all users:
Const ADS_PROPERTY_CLEAR = 1
Set objOU = GetObject("LDAP://ou=Users,dc=Work,dc=com")
objOU.Filter = Array("user")
For Each objUser In objOU...
How can you get the currently logged on users' profile path?
I need to get something like the following:
C:\Documents and Settings\User
Thanks in advance for any help.
I need to know if it is possible to dissable a device with VB code.
There are some unique circumstances in my workplace in which this could be very usefull.
The user can only run under one account so individual settings per account are out of the picture.
Thanks in advance for any suggestions!
Hello all,
I need to display a message to the user without any available interaction.
I tried using the msgbox and .popup methods but both will display with buttons that the user can click, I nedd to display the message on a form minus buttons. I need to have the message display for 15...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.