473,320 Members | 1,600 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,320 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 18 '05 #1
4 3298
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 18 '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 18 '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 18 '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 18 '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...
3
by: nitewriter | last post by:
Hi, Can someone help me with this scripts, it works on a different server but gives me error now, This is the error I now get Microsoft VBScript runtime error '800a01f4' Variable is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.