473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

¿Se puede ejecutar scripts con C# al igual que podía con VBScript?

¿Se puede ejecutar scripts con C# al igual que podía con VBScript?
Con VBScript escribo codigo en un archivo .vbs o .vbe y lo ejecuto, ¿como
puedo hacer esto con C#, pues hago un .cs pero no se como ejecutarlo?

Otra consulta: con Sqlserver 2000, puedo ejecutar trabajos con ActiveX, con
VBScript y Javascript, ¿puedo hacer lo mismo con C#, es decir ejecutar
scripts hechos en C#, con trabajos de Sqlserver 2000?

Quiero automatizar ciertos procesos entre bases de Sqlserver 2000 usando
scripts en C# y no se como hacerlo..

gracias, saludos....
Nov 16 '05 #1
4 9268
Hola Liber...

Quizas esto sea lo que necesitas:
http://www.odetocode.com/Code/80.aspx
--------------------------------------------------------------------------------
Guillermo González Arroyave [Guille!.Net] :: MCP ASP.Net C# :: DCE4
Miembro Activo de AlianzaDev [www.alianzadev.net]
"Liber" <li***********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
¿Se puede ejecutar scripts con C# al igual que podía con VBScript?
Con VBScript escribo codigo en un archivo .vbs o .vbe y lo ejecuto, ¿como
puedo hacer esto con C#, pues hago un .cs pero no se como ejecutarlo?

Otra consulta: con Sqlserver 2000, puedo ejecutar trabajos con ActiveX, con
VBScript y Javascript, ¿puedo hacer lo mismo con C#, es decir ejecutar
scripts hechos en C#, con trabajos de Sqlserver 2000?

Quiero automatizar ciertos procesos entre bases de Sqlserver 2000 usando
scripts en C# y no se como hacerlo..

gracias, saludos....
Nov 16 '05 #2
No, csharp no es un lenguaje de script, es un lenguaje compilado.

Me parece que la pregunta va, por que muchos confunden vbscript con vb. No
hay prácticamente ningún parecido entre ambos lenguajes, excepto el nombre.
VBscript es un lenguaje de script basado en Basic, de la misma forma que
javascript es un lenguaje de escript con sintaxis ligeramente parecida a la
de Java, es decir a la de C. Igualmente no hay ningún parecido entre
javascript y java, excepto el nombre.

Podría decirse que vbscript es el lenguaje de script más parecido a vb.net,
y que javascript es el lenguaje de script más parecido a C#. El uno utiliza
sintaxis Basic y el otro sintaxis C.

--
Juan Carlos Badiola
MVP - C#
Nov 16 '05 #3
En Longhorn se podrá hacer... con el Windows Script Console (o algó así),
que será el futuro cmd.exe

"Tristan" <jc*************@hotmail.com> escribió en el mensaje
news:eD**************@TK2MSFTNGP11.phx.gbl...
No, csharp no es un lenguaje de script, es un lenguaje compilado.

Me parece que la pregunta va, por que muchos confunden vbscript con vb. No
hay prácticamente ningún parecido entre ambos lenguajes, excepto el
nombre.
VBscript es un lenguaje de script basado en Basic, de la misma forma que
javascript es un lenguaje de escript con sintaxis ligeramente parecida a
la
de Java, es decir a la de C. Igualmente no hay ningún parecido entre
javascript y java, excepto el nombre.

Podría decirse que vbscript es el lenguaje de script más parecido a
vb.net,
y que javascript es el lenguaje de script más parecido a C#. El uno
utiliza
sintaxis Basic y el otro sintaxis C.

--
Juan Carlos Badiola
MVP - C#

Nov 16 '05 #4
Si, además, en realidad sería posible hacerlo hoy por hoy. Utilizando cla
clase CSharpCodeProvider, se puede compilar y ejecutar código C# de forma
interactiva. Sería muy sencillo crear una utilidad como esa.

De todas formas me parece una magnífica noticia que se integre esa capacidad
en el propio OS.

--
Juan Carlos Badiola
MVP - C#
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Alex Vilner | last post by:
Hello! We have a set of individual .SQL scripts which we would like to execute against a MS SQL Server 2000. Is there any way to have ISQL utility (or any other means) to execute all of them...
5
by: Bill Sneddon | last post by:
Sorry if this is an easy question. Does Javascript work "out of the box with IIS" as an Active server page? ie. does it have the ability to open files ect.? I tried this command and it does...
6
by: DKJ | last post by:
Sapien's Primalscript costs about $150, I believe. If I purchase Visual Studio.NET, I know I can do a lot more than just create VBscript scripts, but can the VB portion of VS.NET be used as a...
6
by: Mauricio Freitas [MVP] | last post by:
Hello Does anyone know of a (good) asp script to browse/post nntp (usenet/newsgroups)? I know there are some ASP .Net ones, but I rather have this on ASP for now since I'm still working on...
2
by: Jorge Gallardo | last post by:
Hola a todos. Me gustaria saber si se puede utilizar lo del asunto desde una accion de macro... Si no es asi, como podria convertirlo a modulo para llamarlo desde la macro. Necesito que el...
46
by: Adam Turner via AccessMonster.com | last post by:
If I had a field called "Name" in an Access table "Contact Info", and the field contained VBScript... Function Main(rstFields) Main = rstFields.Item("FirstName").Value End Function 1. How do...
4
by: Liber | last post by:
¿Se puede ejecutar scripts con C# al igual que podía con VBScript? Con VBScript escribo codigo en un archivo .vbs o .vbe y lo ejecuto, ¿como puedo hacer esto con C#, pues hago un .cs pero no se...
3
by: Bob | last post by:
I have created some WSH scripts on my Webserver that are executed by the Windows Task Scheduler. I want to be able to execute some of these scripts using a web interface and don't want to duplicate...
8
by: C. (http://symcbean.blogspot.com/) | last post by:
Hi all, I am looking for a way to run PHP scripts without using a webserver (from a MS Windows machine). While there are shareware solutions for doing this, it strikse me that it might be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.