¿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.... 4 9279
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******** ********@TK2MSF TNGP12.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....
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#
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******** ******@TK2MSFTN GP11.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#
Si, además, en realidad sería posible hacerlo hoy por hoy. Utilizando cla
clase CSharpCodeProvi der, 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# This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 without having to
establish a separate database connection for each script:
isql -Ux -Py -Ss -i script1.sql
isql -Ux -Py -Ss -i script2.sql
isql -Ux -Py -Ss -i script3.sql
|
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 not seem to work.
var fileSys;
var txtFile;
|
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 VBscript editor? Would it serve as
a good one, or might I be better off with Primalscript?
|
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 migrating my site later.
TIA
|
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 campo "FECHARECIBOQSL" se me actualize a la fecha del dia.
Alguna sugerencia...
Gracias a todos
| |
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 I pass a recordset into this field?
2. How do I capture the return value?
|
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 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...
|
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 these scripts
in ASP. I know this can be done using the WScript.Shell run method but
I am having no success. Below is a test application I have thrown
together to demonstrate my problem.
If I run c:\intetpub\wwwroot\wshasp\storetime.vbs from...
|
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 possible to use HTA (http://
www.microsoft.com/technet/scriptcenter/hubs/htas.mspx) to achieve my
result, however all the documentation just describes doing this with
VBScript.
So far I've not found anything relevant in Google.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |