What wsh object is required for vbscript file i/o
Files present under the soure directory. When you are building string use a msgboc to display the string so you can check it. This also demonsrates one of teh ways to get the current folder and environment values that will actually work under all circumstances. I think you are building the command line incorrectly. The response file is the file of commands you send to teh installer. The installer is NOT necessarily where the script is but is in the Oracle folder. There is an environment that should point to the installer home.
You need to study up on string handling. Get the WSH help file and look up the commands. I just noticed one other odd thing. Why are you using teh environment to get teh Windows temp folder. In your copy of teh environment the TEMP variable points to the temp folder in your profile. Why would the Orqacle installer response file be in teh WIndows Temp folder? This one may have been updated by the installer and should have the correct commands in it.
Look at the installer documentation closely or you will likely be going in circles for quite some time. Again - you could find this in teh previously mentioned help file along with numerous helpful examples.
What was misleading about Richard's or Tom's advice? That's a powerful accusation without points to back it up. The OP wanted to know why teh errors. Ther ewere many. You all kept thrashing back and forth do I posted a fix for everything.
It was really meant to be a bit funny as I don't really think you all are being misleading nut I do think that understanding the issue was somehow lost early on. I suspect that the OP was not really all that helpful either. I sw the real problem was not using any construct correctly and the OP not having a clue as to how VBScript works.
I suspect that it would haev gotten fixed one line at a time. Sorry if I mislead anybody by my wild use of 'misleading'. Office Office Exchange Server.
Not an IT pro? Internet Explorer TechCenter. Sign in. United States English. Ask a question. Quick access. Search related threads. Remove From My Forums. VB Error "object required" Ask Question. Asked 11 years, 6 months ago. Active 6 years ago. Viewed 79k times.
Quit End If 'Loop through list of computers and perform tasks on each. Do Until objTextStream. ReadLine WScript. CreateObject "WScript. Shell" WshShell. Run "cmdString" Loop objTextStream. Shell" WScript. ChuckO ChuckO 2, 6 6 gold badges 33 33 silver badges 41 41 bronze badges. Do you know about where the error is being raised? Could you use WScript. Echo or MsgBox with some text just so that you can narrow down the area in the code where the error is happening. Add a comment. Active Oldest Votes.
Wai Ha Lee 8, 63 63 gold badges 57 57 silver badges 86 86 bronze badges. John Alexiou John Alexiou There are a few problems, I think. Run importcmd Or WshShell. Fionnuala Fionnuala Sign up or log in Sign up using Google. Sign up using Facebook.
0コメント