All,
We are using some VB api code and calling NetJoinDomain, the issue we have is that this code works in our lab environments but not in the real world, the code use to work in the Real world but now doesn't, I have asked all the normal questions like what has changed on the network.
The...
Is it possible to use SQL replication to replicat a Projectserver database.
I have two countries that want to share the same data, and my client wishes to reduce network traffic by replicating the DB to the remote location.
any help appreciated
Regards
Steve Friday
All,
How in VBscript can I determine who has a file open, I know this can be done via servermanager but I want to produce a VBscript to do it.
Thanks
Regards
Steve Friday
I am trying to add construction strings to a component, I ahve managed to get as far as locating the component, however the next step is proving a little tricky.
All examples I have seen use VB and NOT VBscript, my problem is the follwoing line of code
DIM varname AS COMAdminCatalogObject
How...
All,
Urgent problem
I am performing an unattended build, I create a 4G C drive to start with, during the build I want to allocate the rest of the space to D - however by the time it hits the section to create the D drive the CD has kicked in and nicked the d drive resulting in a failure to...
All,
Is there an option to keep the Explorer window on top
I currently have .visible = 1 but sometimes it will disappear behind something and I have to issue another .visible = 1.
Regards
Steve
I have the following code:
Const ADS_SCOPE_SUBTREE = 2
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"...
All,
I have an Excel addin .XLA that I need to get into everybodys Excel application.
How can I do this from VBscript. I do not want to open excel, can I manipulate the registry to enter it??
Steve
All,
I want to run a program and write the result to a Blank IE window, I have the following code but it always overwrites and I would rather keep adding to the window I.E.
Process Started
Stopped Process Notepad
Started Process Notepad
Process Finished
Instead all I get is the windows...
All,
I am trying to obtain the status of all processes on a win2k workstation,
I have the following code
dim state
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")...
How in VBscript can I change the permissions on a registry key.
I want to be able to give Domain users full control over a key within HKLM\Software
Thanks Steve
If I use the OpenTextFile method, how do I close it.
I am opening a file reading from it, I then want to clean up and delete it, currently fails with permission denied as the file is open
Steve
I am reading the environmental variables specifically path
I am trying to see if a path I need is already there, if not I want to write it into the registry and reboot.
However the compare fails due to the fact that a colon : exists, the path I had was c:\informix\bin, i changed it to...
All,
I am issuing a command as follows
WSH.RUN("GPUPDATE /SYNC")
This runs from a DOS window and then requires a Yes answer twice, how can I pipe a Y to respond. I tried Sendkey but does not work with DOS.
Any ideas
Steve
All,
I am running a vbscript that writes to HKEY_USERS\.DEFAULT\CONTROL PANEL\DESKTOP\WALLPAPER
I am running this from CMDLINES.TXT (Unattended Workstation build for XP), however it writes to HKCU\CONTROL PANEL\WALLPAPER.
If I run the program after the build has finished, it is ok, could this...
All,
I have seen a previous thread but no answer for this query.
I am trying to do a RegWrite to write out a binary number 24 00 00 00 30 28 .. ... . .. .
However it Fails,
Copy of code below.
dim keyname, wsh, value
keyname =...
All,
I have a text file that has 100rds of email addresses, I need to write a VBscript file that will find if any matches exist and then delete any duplicates. I copy the original file to a second file so that I can verify howmany times the address appears.
I have so far done
Set rexp = New...
I want to read two files, compare the first line of the first file with the first line of the second and then the second of the second and so on, when I hit the end of the second file I move to the second line of the first and carry on again. If at the end of the first pass the line in the first...
I am trying to read a string from the registry, I am using
Dim Wsh, Wallpaper
Set Wsh = WScript.CreateObject("WScript.Shell")
set wallpaper = wsh.RegRead("HKCU\CONTROL PANEL\DESKTOP\SCRNSAVE.EXE")
msgbox wallpaper
However when I run it I get a VBSCRIPT RUNTIME Error OBJECT...
All,
I want to check that I can create a file before I do it.
I tried
If fso.CreateTextFile(Pathfilename) = "Permission Denied" Then
however that does not work, any ideas
Thanks
Steve
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.