The ASPNET user account that ASP.NET uses by default does not have network
file permissions. Either give the account such network permissions (likely
with the help of your network administrator) or use impersonation to have it
run under a different user account that does have such permissions.
For testing purposes you can have it run under your personal user account.
Here's more info:
http://msdn.microsoft.com/library/de...ersonation.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Carmen de Lara" <Ca**********@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
Hi all, I want to run a bat form an aspx page. The bat have to move text
files to another location, as show:
@echo off
move /Y c:\prueba\*.txt \\servidor5\conta\buzon\cirreportes\
in the aspx page I have the following code to call the bat. But it doesn't
work, the error is "File not found" Any Ideas?
sTemplate = Server.MapPath(Request.ApplicationPath) & "\Bat\RunMe.bat"
A = Shell(sTemplate, 1)