Thanks Tsuji and especially PHV! Both responses were a great help. I have been trying for a while to execute files that had spaces in the path and the Chr(34) pre & post-pends worked! Thanks again PHV! Definitely worth a star. :)
Try this:
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("<insert path>\Mine\*.lnk")
objFSO.DeleteFile("<insert path>\Mine\*.url")
Set objFSO = Nothing
WScript.Quit
**If the file is Read Only then you will have to do this...
Oops! Forget the msiexec.exe part. I was trying to start the EXE file which points to an MSI. I am still getting an error when I try to execute the EXE file though:
Set oExec = WshShell.Run(UpdPath)
I am trying to use VBScript to execute and MSI (based on some conditions). The problem I am having is that the path to the MSI has spaces in it, so I tried using Chr(32) but I still get an error stating that I am using incorrect command line parameters. How can I pass the full string to the...
Do you have a Linksys network card? I saw a page where someone else had the same error as you:
http://www.asitis.org/archives/000019.html
Computer diagnosis is a process of elimination in most cases. Try starting with a bare bones config (i.e. just the video card, CPU, minimal RAM and HD)...
I was able to solve this via another post in another forum.
The key for me was this snipet of code:
For Each fld In .RootFolder.SubFolders
If Not fld Is Nothing Then
Using the drive object, and specifying the drive letter I wanted, I was able to use this code to search my network share...
Hello,
I am trying to create a collection from a network share so I can search each folder in the network share for certain files. I have the searching part down if I specify a specific folder name but there are hundreds of folders. I cannot figure out how to use VBScript to create a...
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.