TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Raja Rajan
NA
18
5.9k
.bat file not running in IIS 8.5 - Windows Server 2012 R2
Nov 30 2018 10:23 AM
Hi,
We are migrating the server from Windows Server 2008 R2 to Windows Server 2012 R2. We have configured the application in IIS8.5 and provided required permissions. But the batch files (.bat) are not running in the application. We able to run the batch file manually from command prompt and it is executed.
We configured the application in Network Service identity and given permissions for the application.
We use the below Code for running the batch file.
Dim targetDir = "C:\inetpub\wwwroot\TestApp\Batch Files"
p = New Process()
p.StartInfo.WorkingDirectory = targetDir
p.StartInfo.FileName = "runme.bat"
p.StartInfo.Arguments = String.Format("AAC-Sharp Console application")
p.StartInfo.CreateNoWindow = False
p.Start()
p.WaitForExit()
It is working fine in Windows Server 2008 R2. But not in Windows Server 2012 R2.
Could anybody suggest what needs to be done if any specific. We need to complete this as soon as possible. Waiting for response. Thanks again.
Reply
Answers (
9
)
How to convert word document to pdf fromat in .net core ?
Attempting to access a 32 bit sdk through com on 64 bit