Re: VBscript Search and Replace conundrum
From: Roland Hall (nobody_at_nowhere)
Date: 03/15/05
- Previous message: RobG3381: "Re: Add to Public Folder Favorites?"
- In reply to: O.G.: "Re: VBscript Search and Replace conundrum"
- Next in thread: O.G.: "Re: VBscript Search and Replace conundrum"
- Reply: O.G.: "Re: VBscript Search and Replace conundrum"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Mar 2005 15:50:00 -0600
"O.G." <aogilmore@sbcglobal.net> wrote in message
news:1110914749.781720.134250@l41g2000cwc.googlegroups.com...
Sure, here is what the INI files look like:
[Digital_Save]
; mode=MCI (default)
; mode=ActiveMovie
mode=MCI
drive=C:\United\VWCMI\DATA
Is this the C: being replaced?
>> Why do you have this in your for...loop?
>> If UCase(Right(WScript.FullName, Len(WScript.FullName) -
>> InStrRev(WScript.FullName,"\"))) <> "CSCRIPT.EXE" Then
>> Set wshShell = WScript.CreateObject("WScript.Shell")
>> wshShell.Run
To tell the truth, I cribbed this from somebody else's search/replace
program, and then cobbled together some WMI stuff to determine logical
drive. There probably is a better way of doing it, as you indicate...
Ok, if this is a timing issue, verifying the script is being called with
cscript instead of wscript, and making a call to run it in a shell, would
definitely be a timing issue. Unless you check the shell for a return, the
script will continue regardless of what is happening in the shell. If you
want to keep this, I would put it near the top outside of the For...Next
loop.
-- Roland Hall /* This information is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. */ Technet Script Center - http://www.microsoft.com/technet/scriptcenter/ WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library - http://msdn.microsoft.com/library/default.asp
- Previous message: RobG3381: "Re: Add to Public Folder Favorites?"
- In reply to: O.G.: "Re: VBscript Search and Replace conundrum"
- Next in thread: O.G.: "Re: VBscript Search and Replace conundrum"
- Reply: O.G.: "Re: VBscript Search and Replace conundrum"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|