G
Guest
Hi,
I have an ASP.NET application using VB.NET.I am sending a DOS command to a
machine on the network to print a file.
This is achieved using xp_cmdshell
Dim str As String = "xp_cmdshell ""type " & nwkfilepath & " > " &
pPrinterName & " """
and str is executed in the MSSQL Master database which has got permissions
to do it.
Problem Statement
******************
The same functionality could not be achieved using shell or diagnostics
namespace.The user ASP.NET has
already been given admin rights(as this is the user that executes an aspx
page)
Any help would be highly appreciated as this has snowballed into a major
production issue.
Regards
Kartik Ganesan
I have an ASP.NET application using VB.NET.I am sending a DOS command to a
machine on the network to print a file.
This is achieved using xp_cmdshell
Dim str As String = "xp_cmdshell ""type " & nwkfilepath & " > " &
pPrinterName & " """
and str is executed in the MSSQL Master database which has got permissions
to do it.
Problem Statement
******************
The same functionality could not be achieved using shell or diagnostics
namespace.The user ASP.NET has
already been given admin rights(as this is the user that executes an aspx
page)
Any help would be highly appreciated as this has snowballed into a major
production issue.
Regards
Kartik Ganesan