Running Bat (batch) Files On Windows Server 2003 With Asp
im trying to run a bat file on windows server 2003 and am running into nothing but problems.
i have IIS on my XP workstation that accesses the 2003 server. what im about to explain below works properly on the XP IIs.
i have two files: somefile.asp and somefile.bat. the asp file creates a wscript.shell and then tries to execute the run method for somefile.bat.
however, it isnt working. after an unexaggerated 7 hours of searching google/etc, i have found nothing but frustration and deep, seething anger regarding this problem. Code:
View Replies
ADVERTISEMENT
We have a WEB-based application (developed in Visual Studio 2005) running on
handheld devices in Internet Explorer on Windows Mobile 2003. The application
needs to print tickets on a Bluetooth printer, which is accomplished by
preparing a RTF-file on the server and then downloading this file to the
handheld device. We use a third-party application (PrintPocketCE from
FieldSoftware) for the actual printing of the downloaded file. However, when
the file is about to be downloaded we first get a question saying "Download
<filename> to the My Documents folder in Main Memory?" with Yes, Change and
Cancel buttons.
Is there a way to avoid this question and download the file
directly? We need the checkbox "Open file after download" to be checked (as
it is by default when the question is displayed) to get the file processed by
PrintPocketCE after download.
To avoid adding file by file to the handheld device we always use the same
filename for the downloaded file. This leads to another question on each
download, asking whether to overwrite the previously downloaded file. Since
the file has no interest after being printed this question is always answered
with Yes. Is there a way to avoid this question too, for example by setting
some Registry value?
View Replies
View Related
Our inter/intranet server has just been upgraded to Windows Serve
2003, IIS6, running Sharepoint.
I cannot now run even a "Hello World" ASP (not aspx/.net) script
although static html displays fine.
We have enabled ASP in IIS/Web Service Extensions but still nothing.
There is no error msg, scripts just do not run. Are there furthe
switches in Sharepoint or IIS that I need to know about ??
View Replies
View Related
I made some of the web pages using ASP on windows 2000 server, now i wanto to upgrade my Operating system from windows 2000 server to Windows 2003 Server , Are my web pages will work fine if i do this upgradation or there are any configurations on IIS i have to make to work fine ....
View Replies
View Related
I've had a new server installed for me. with Windows 2003 and II6 with ASP.NET. but I want to run a small (but important) application written in ASP(all .ASP files)
as it stands the server will not 'understand' .ASP files (only .ASPx)To avoid having to modify the whole application ( :-} ) can I get the server to execute. ASP files?(is it as simple as copying over an existing II4 ASP.DLL and installing that?
View Replies
View Related
We have several extensive sites and all use a lot of include files. We have the coded as include file and virtual include using ../ since it is a shared server etc. The sites were moved by the hosting company to a new windows 2003 server and now we get invalid path error part of the time, others it works fine.
The host says it is our programmers did not follow asp procedures and used ../ I always thought this was ok, it was never an issue before the move...is this new to windows 2003.
View Replies
View Related
I just set up an acct. with godaddy for a shared virtual dedicated server using Windows 2003 and IIS 6. None of my ASP scripts work to send emails using CDONTS. Research took me to how to install the cdonts.dll file and after doing so I don't get the error about not being able to create an ojbect but rather that of permissions on the line that has the .send. Other research led to me believe that windows 2003 does not support cdonts at all? I'd prefer to use CDO but I was told by Godaddy that the script below is not supported on a shared server - Code:
View Replies
View Related
It works properly in my former webserver until it was upgraded to Win2003. Please do the amendments below.
My code:
View Replies
View Related
Some one has posted this question on 10th August, as CDONTS is not working
on windows 2003 serever. I have the same problem and I copied CDONTS.DLL
from Windows 2000 Server and registered on Win 2003 server but it giving the
error on line when I calling method send of the object.
Error is
Microsoft VBScript runtime error '800a0046'
Permission denied
I tried to register CDONTS as COM+ with Admin user right to execute but it
still giving same error.
View Replies
View Related
At the early testing stages of writing some simple ASP scripts hosted by my Windows 2003 Server but I have hit upon a problem.
When I open an asp page, IE just returns the script rather than expected web page. What have I or am I doing wrong?
View Replies
View Related
In Windows 2003 Server, when I include a file in upper directory, it will
occur error.
Active Server Pages Error 'ASP 0131'
cannot include file '../filename.inc' with '..' from upper directory
However, it doesn't have any problem in windows 2000 server
could anybody help me?
View Replies
View Related
if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server and if so, how can I send emails from ASP page.
View Replies
View Related
I have a site thats been up for 2-3 years on an NT4 server using IIS & Ms Access, and I used MAcromedia Ultradev to build it with MX 2004 to maintain it.
The hosting company decided to upgrade the server to Windows Server 2003 and now none of the Dtabase connections or include files can be found. Does anyone know what I need to do to re-code this site.
View Replies
View Related
I am recieving a weird error when I try to run asp scripts on my local
machine, I can use pages that access a database, but when I try to write to
the file system ie upload a file I get the error message below.
any ideas?
View Replies
View Related
Hi people, I currently have a website and the asp pages include the following line:
"Set Tools = Server.CreateObject("MSWC.Tools")"
My site is hosted on Windows 2000 server.
The hosting company has offered me a new deal but on Windows 2003 servers, I took them up on this but found that my asp pages did not function as these servers do not have the Internet Information Server (IIS) Resource Kit installed on them. I found this out by
looking at http://support.microsoft.com/kb/q249290/.
As I am not the original creator of the asp pages and have no knowledge of asp, can anyone help me fix this problem where my asp pages will function correctly on the Windows 2003 server?
View Replies
View Related
I have installed MSDE on my local computer - Windows 2000 Professional. I have created a function which runs me a link whose path is placed in the input field. This function looks like this: Code:
View Replies
View Related
Was wondering if anyone had any suggestions on how to execute a local batch file by simply pressing a button on an ASP page?
View Replies
View Related
how to run a local Batch file from an asp page by simply pressing a button on the page?
View Replies
View Related
i used following code:
<%
set wshell = server.createobject("WScript.shell")
wshell.run "E:aaa.bat"
set wshell = nothing
response.write("worked")
%>
It does not show any error message and gives the output "worked"
I have installed .dll files for wsscript
Is there any other way to call batch file from aan asp page .
View Replies
View Related
My prod box consists of the following:
- Windows 2003 Server
- Exchange 2003
If I use cdoConfig to send emails from my .asp application do I need to include the following typelib on my .asp page if I'm running Exchange 2003:
<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library" -->
Is this the correct typelib if I'm running Exchange 2003?Or, is there a "CDO for Windows 2003 Library" that I should be using instead?
View Replies
View Related
How do I statically change my ip address to specific IP via a DOS batch file and back to DHCP via another DOS batch file?
View Replies
View Related
How do I statically change my ip address to specific IP via a DOS batch file and back to DHCP via another DOS batch file?
View Replies
View Related
Is html based form for upload files. ASP script are get and save files on web server. Works fine on Windows 2000 Server.
Under Windows 2003, if try to upload files more than 100Kb got error:
Error number: -2147467259
Error source:
Error description: Operation not Allowed
in next line:
Binary = Request.BinaryRead (Length)
Any idea why it happen?
View Replies
View Related
How do I add additional IP's manually in Windows 2003 Web Edition? I was told to add them to subnet mask? I am not sure about this as I am new to it. Also, in remote desktop connection perhaps? Where after I login?
View Replies
View Related
some of my sites which is working perfectly on Windows 2000 But when i tried the same thing from Windows 2003, it gives me error..
I am using IIS 6.0 By the way i am getting an error 80005000 login error.
View Replies
View Related
I recently upgraded my servers to 2003. Since then the error-information shown in the browser has changed.For example, if under Windows 2000 I executed an SQL statement from within an ASP, and the SQL statement was syntactically incorrect, the error thrown
by ADO would finally show up in the client browser.
If I do the same with an Windows 2003 Server, only a "HTTP 500, internal server error" is sent to to client browser. The IIS LogFiles still show the actual error, but looking there is not that comfortable.Is this some configuration that can be done on the Windows 2003 server?
View Replies
View Related
Is there a workaround to allow .log files to be accessed
Like: http://127.0.0.1/Test.log
The access is just so it can be downloaded.
I get 404 errors for Windows 2003 but not for Windows 2000 for this.
View Replies
View Related
I used to have the following ASP code (below) that runs on windows 2000 and authenticates users against the Active Directory. The code is working fine. However, after upgrading from Win2000 to Win2003 (IIS 6), authentication is failing, although the code is still working if run on win2000.
I tried to capture packets during the authentication phase from both win2000 and win2003 and I found out that there is a slight difference between the two although I believe that this is an OS bit not ASP thing. Code:
View Replies
View Related
I have a very rare error with one of our Windows 2003 server. We have some componentes COM wich ones use the CDONTS in order to send mails. Well, one of our server get the follow error when we try to send the mail.
error '80004005'
Method '~' of object '~' failed
I know it's possible to have CDONTS over Windows 2003, and this article confirms it:
http://www.microsoft.com/resources/documentation/WindowsServ/2003/all/deployguide/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/all/deployguide/en-us/iisdg_dep_tnoc.asp
I have registered the cdonts.dll as the article dictates but I really don't know what can be happening with that server.. and I really appreciate any kind of help because that is one of our QA servers.
View Replies
View Related
I'm using windows 2003 with asp. However, I'm having problems sending email using the cdosys object.
My code is below and I don't believe its the code but on the send command.
<%
dim sch
dim cdoConfig
dim cdoMessage
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = "127.0.0.1"
cdoConfig.fields.update
Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "test@gmail.com"
cdoMessage.To = "test@gmail.com"
cdoMessage.Subject = "Sample CDONTS NewMail"
cdoMessage.TextBody = "This is a test for CDONTS message"
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
error '8004020f'
/tad/testing.asp, line 30
I'm not sure what's wrong. When I go to my SMTP Virtual Server
settings in IIS --> Properties --> Delivery --> Advanced .
The FQDN is localhost and the smarthost is blank.
View Replies
View Related
My company has recently started testing Win 2k3 servers to replace our current 2k versions. The problem I have is that our IT group sent out an email to all web developers stating that HTML forms would no longer be supported in 2k3 and all forms would have to be converted to asp pages.Since the form tag is in the html specs, I find this rather hard to believe.
View Replies
View Related
I have and ASP form that sends out an email on Windows 2003. I get the following error: ActiveX component can't create object. What should I do to fix this? Code:
View Replies
View Related
I have a ASP 3.0 web application that uses IIS 5.0 with W2K (with parent
paths enabled). In my research about migration to IIS6 with W2003 it says
that you need to change every INCLUDE FILE= to INCLUDE VIRTUAL=.
I call an ASP page at the root of the website and that ASP file has an
include that also is at the root, and the include is like this:
<!-- INCLUDE FILE="copyrightstuff.htm" -->
So what I've read say that this has to be changed to VIRTUAL like this:
<!-- INCLUDE VIRTUAL="/websitename/copyrightstuff.htm" -->
I could do this for one website that has one name listed in IIS. However, my
website code was designed to work on many different websites, each with
different domain names. It seems like a LOT of work to have to change ALL
the includes to accommodate the name given to the site in IIS. Code:
View Replies
View Related