Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2003, 07:40 PM
Authorized User
 
Join Date: Aug 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default Still Fighting Exec. from ASP - Please Help

Hi:
I read the thread started by: Wayang_Mbeling

I'm trying to do almost exactly the same thing but still can't get it to work.
I've got a bat file E:\MRDBackup\NSIS\Backup.bat.
If I double click it or run it in a DOS Prompt (cmd) it works fine.
I've checked permissions and my Web IUser definitely has permission to execute the bat. It writes a file to another directory. My IUser definitely has permission to write to that directory.

It's returning 1, which is an error but I can't track WHAT error.

Here's the code in my ASP
Code:
Set WShShell = Server.CreateObject("WScript.Shell")    
RetCode = WShShell.run("E:\MRDBackup\NSIS\MRDBackup.bat", 6, true)

__________________
http://www.softlinksys.com
Professional Software Developer since 1994.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Get value with EXEC Javierera SQL Server 2005 6 November 3rd, 2008 04:28 PM
create Exec File angelboy Java Basics 4 January 23rd, 2008 03:10 AM
EXEC function ajutla Beginning PHP 0 August 19th, 2004 09:18 AM
EXEC problem. pankaj_daga SQL Server 2000 8 October 4th, 2003 05:39 PM
#exec server directive vitanza BOOK: Beginning ASP 3.0 1 July 11th, 2003 09:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.