Below is the code I am using. It works fine for the first Write-Host, and the folder name prints. In the second Write-Host, for both $item.Folder and $item.File it prints System.Xml.XmlElement instead of the variable. What am I doing wrong?
if (Test-Path "D:\Desktop\integrityCheck.xml"){...
Hello, a program creates logs and calls them LogFile_102010 where the end of the file is the date. The LogFile_ part is the same on the files.
I need to search C:\Documents and Settings and subsequent directories for these files and move them.
How can this be done with Vbscript? Thanks.
I am looking for a way to change folder icons using vbscript.. any help appreciated.
I found this script to change file icons.. but how would it work for folders?
Const DESKTOP = &H10&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(DESKTOP)
Set...
Hello,
I am trying to associate all .ifc file extensions with an executable in my program files. It needs to be done with VBScript, anybody know how?
I've tried doing it manually, then going into the registry and exporting some keys for it but maybe im getting the wrong ones or there's more to...
I am trying to add the D: drive as an indexed location and it needs to be done on many computers. Is there an easy way to accomplish this using VBScript?
Thanks in advance.
I am trying to add the D: drive as an indexed location and it needs to be done on many computers. Is there an easy way to accomplish this using VBScript?
Thanks in advance.
I have a tool written in Vb.NET that installs additional languages on Vista Enterprise x64. The user chooses a language, then clicks a button and it copies the language executable down to their machine from a network server and then executes it. When the program executes, it brings up "Open File...
Hello, I am trying to create a VB.NET application and I am new at it.
I've got a combo box that will drop down and display about 30 options. There is one button and when the user clicks it, it will shoot off the .exe for the option they selected. I am wondering if it is possible to populate...
Hello, I am trying to have an email send if it can't find a file. I have the subroutine to check the file, then if it can't find it I have:
Call emailReport(filename)
(filename being the variable of the file that's missing)
Then in my email subroutine:
Sub emailReport(filename)
...code...
I am trying to write a check into a script that makes sure the file is being run from a specific location.
Let's say the script is located at //candy/gum/scripts/Patch.vbs
I want to parse the ScriptFullName using / as a delimiter and making sure "candy" (the server the script is on) is in it...
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.