Re: Command to run on server with vb.net

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I think I found what my problem is, I was using Impersonation, and even though it was an admin account it doesn't execute.

"noone" <noone@xxxxxxxxxxx> wrote in message news:uk9Np1kWGHA.4132@xxxxxxxxxxxxxxxxxxxxxxx
I'm trying execute a command from vb.net and when I run this I don't get errors just nothing happens
I tried process.start, wsscript object, they both do the same thing.. nothing.
Is there a trick to get this to run on a 2003 server. Is there a setting that I'm missing?
Thanks




Go.bat
dir > files.txt
-------------------------------
<%@ Page aspcompat=true %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.IO" %>
< %@Import Namespace="System.Diagnostics" %>

<%
System.Diagnostics.Process.Start("f:\inetpub\webtools\fiscicp\go.bat")
'shell("f:\inetpub\webtools\fiscicp\go.bat")
DIM strACLCommand
Dim myexec
Dim oScript
'oScript = Server.CreateObject("WSCRIPT.SHELL")
'strACLCommand = "f:\inetpub\webtools\fiscicp\go.bat"
'Call oScript.Run(strACLCommand)

%>

GIF image



Relevant Pages

  • RE: How Do I Extract Data from my Form to load new table records?
    ... Steve: I have adapted your code as follows, but am ... Dim strSQL As String ... Open a "template table with a number of predefined "standard" rows ... file has 10 records in it, then every time I execute this, I would be adding ...
    (microsoft.public.access.formscoding)
  • Re: Execute Method for Find Object
    ... During each iteration of the While loop, if .Execute returns ... Dim strSearch As String, strTerm As String ... Dim intIndex As Integer, intCounter As Integer, intLast As Integer ...
    (microsoft.public.word.vba.beginners)
  • Re: Database Extract Automation
    ... > database to execute JET SQL statements to move the data across. ... > Dim dbWSec 'As DAO.Workspace ... > 'Add code here to make sure UnsecuredDB doesn't ...
    (microsoft.public.access.externaldata)
  • Re: Select several words
    ... .Execute findText:=oldPart, _ ... Word MVP web site http://word.mvps.org ... Dim ChangeDoc As Document, RefDoc As Document ...
    (microsoft.public.word.docmanagement)
  • Re: Looping!
    ... Well, McKirahan, this too takes about 30-35 seconds to execute! ... Now for the drop-downs - the no. ... the strSQL2 queries to populate the drop-downs. ... Dim strSQL1,strSQL2 ...
    (microsoft.public.inetserver.asp.db)