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
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\"...
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...
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...
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...
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...
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...
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...
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...
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 =...
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...
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...
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.