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 Mike Lewis 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: Councilk
  • Order by date
  1. Councilk

    Copy files from list

    Im sorry your query syntax is fine, and dm$ever is correct. You don't need wmi to use file operations, just the FileSystemObject. More details are required on file format and error if any was generated
  2. Councilk

    Copy files from list

    Hi JPeca All looks fine here except what's highlighted in Red strFile = "C:\\scripts\\" & arrParts(0) Set colItems = objWMIService.ExecQuery _ ("Select * From CIM_Datafile Where Name = '" & strFile & "'") For Each objItem in colItems strNewName = "C:\\scripts2\"...
  3. Councilk

    Comparing home folders on new server

    I'm sorry, I should have updated this thread when I figured out the correct syntax. I've since gotten myself caught up in a different snag. I know this can be done logically where I'm using a for next construct to pull the home foldername. Once I pull the homefolder from server "A" I call a...
  4. Councilk

    Comparing home folders on new server

    Hello all, I hope everyone is doing well. I have a situation here where Im trying to compare the user home directory on the new Win2003 server with the home folders on the old server. I want to print the folders which are not found to a logfile This will give me an idea of the folders who...
  5. Councilk

    BSOD when installing Windows 2000 Server

    Hi BigBadBaz1 Did you check the HCL to see if this board and other components are listed among the compatible devices used with 2000? Just curious to know if this was something you may have overlooked. This in addition to the correct scsi drivers for the scsi drive and adapter you have in...
  6. Councilk

    Script to backup files from subfolders based on date

    This worked out just fine for me, sorry for the late response but it's starting to pickup around here
  7. Councilk

    Move file to new folder

    Ohhh! I think I see what you want to do, I see the file you're creating here is the automated FTP script. You also have an strFilePut "*.asc" if the asc file(s) is the one in question and you want to move this file. You may want to "Get" this file from the ftp site and pull it onto your local...
  8. Councilk

    need help with logic in code

    Hello all, I want to grab the user home folder from an AD domain and compare this user account information to the same accounts residing on the backup domain controller. The reason for the mixup is the result of a migration from NT40 to AD I have a script here that writes this account and...
  9. Councilk

    Renaming Home Directory

    I was able to work through this one
  10. Councilk

    Move file to new folder

    Hi vgwprja If this is the file you want to move "strFTPScriptFileName" Based on your code it's already created from this portion of your code "Set objMyFile = objFSO.CreateTextFile(strFTPScriptFileName, True)" So you should only need to use the "move" method from your object "objFSO" Like...
  11. Councilk

    Renaming Home Directory

    Hello all, I have a primary and old domain which users were migrated from and I want to check the home directory against the homeDirectory in the old DC I was thinking it should go something like thisd... Dim objCurrentHome, OldHome Set odsearch =("LDAP:",dc=server,ou=OU,cn="",cn="") Set...
  12. Councilk

    Using the IntReturn function

    Hello no there are no spaces in the path I can redirect the files to a local folder, and I can map the share in the script, see a portion below If UCase(strLog) = UCase("Application") Then strAppFile = "E:\Util\Logs\evntarch\" & strServerName & "-" & GetDateTime() & "-app.log" intReturn =...
  13. Councilk

    Using the IntReturn function

    Hello, I've been able to write a script to move Zip files to a local folder, but I'm trying to use the following which doesn't seem to work See line of code here intReturn = WshShell.Run("pkzip25.exe /add=update /move /temp=strDestSvr & strZipFile & " " & strAppFile,4,True) strDestSvr is a...
  14. Councilk

    Checking user home directory

    Oops! I figured this one out by pulling the value fron the environment variable
  15. Councilk

    Checking user home directory

    Hello all, I need to check a primary sever for user home share against the home shares on a backup server. It the script detects a share missing from the backup server or incorrect share for he user it will create the correct share on the backup server Im trying to figure where I should...
  16. Councilk

    Invalid procedure call or argument

    You're right because it forces me to declare variables and makes it harder to catch mispelled items like this situation did. Thanks
  17. Councilk

    Invalid procedure call or argument

    It worked after I made the change That's it, I guess I was so frustrated I didn't realize this error existed. At the same time the error kept pointing me to 56, 1. This item looks like an argument being fed to the subroutine named "GetFiles" is this correct to sat this is the argument the...
  18. Councilk

    Invalid procedure call or argument

    Hi PVH I have the sFolder = "PPress\PDF" in the top portion of the script It's the fifth statement after "Option Explicit
  19. Councilk

    This Vbscript IS NOT Working and NO ERRORS

    Hi TimITFO Could you bold line 18 or use the "["Color Red"]" Text "["/Color"]" tag to highlight line 18. For example You line 18 Text My next question is can you ping this server which looks like you're tryingto connect to a DNS host Remove the quotes from the brackets
  20. Councilk

    Invalid procedure call or argument

    Hello all I've been making great strides since using this forum with many technologies and want to again express my appreciation to responses to the questions. I was able to get this script to work where it backs up the parent and sub folders. I also need to scann the source folder for files...

Part and Inventory Search

Back
Top