Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sfriday
  • Content: Threads
  • Order by date
  1. sfriday

    NetJoinDomain V Manual join Domain

    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...
  2. sfriday

    Project server database

    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
  3. sfriday

    Sharing violation

    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
  4. sfriday

    COM+ Construction strings

    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...
  5. sfriday

    Disk drive letter assignment

    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...
  6. sfriday

    InternetExplorer.Application

    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
  7. sfriday

    ADSI query

    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&quot...
  8. sfriday

    Automatically entering an Excel Addin

    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
  9. sfriday

    Automatically populate IE window

    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...
  10. sfriday

    WMI + ExecutionState

    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")...
  11. sfriday

    Registry permissions

    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
  12. sfriday

    OpenTextFile

    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
  13. sfriday

    ReGExp for string compare

    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...
  14. sfriday

    Sendkey to DOS window

    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
  15. sfriday

    REG_WRITE writes to wrong key

    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...
  16. sfriday

    REG_BINARY method

    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 =...
  17. sfriday

    RegEXP match

    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...
  18. sfriday

    Compare two strings

    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...
  19. sfriday

    RegRead gives VBscript error

    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...
  20. sfriday

    Permission denied creating a file

    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

Part and Inventory Search

Back
Top