Batch script unable to make a closing bracket ) when writing to a vbs

I am trying to create a vbs through a batch file. But there is a line where I include an object. Batch file is unable to write closed bracket ) into the vbs which is causing an error while running the vbs.

The batch file code is:

echo Set oShell = CreateObject("WScript.Shell") >> zipIt.vbs


 echo Set oShell = CreateObject("WScript.Shell"
) 1>>zipIt.vbs
The process cannot access the file because it is being used by another process.

vbs zipIt.vbs

Set oShell = CreateObject("WScript.Shell"

vbs output: Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\arvind\Desktop\zip\zipIt.vbs(1, 42) Microsoft VBScript compilation er ror: Expected ')'


Try this:

echo Set oShell = CreateObject("WScript.Shell"^) >> zipIt.vbs

Need Your Help

Metaprogramming Ruby: defining inheritance in class_eval

ruby metaprogramming

I would like to expand the functionality of some class using class_eval. I would like to force the class to inherit some methods from some other class.

Stored IEnumerable dissapears on restart debug, but recreating IObjectServer and IObjectClient in one unit test is ok

c# .net db4o

I'm storing an IUser object in a Db4o database as follows (client is an IObjectClient):

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.