Code:
'Data moving from CSV file to TMP table
Dim startInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo(Server.MapPath("~") + "/BatchFile/BATCHUPLOAD.BAT", "Command")
startInfo.WorkingDirectory = Server.MapPath("~") + "/BatchFile"
startInfo.CreateNoWindow = True
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
startInfo.UseShellExecute = True
Dim batchExecute As System.Diagnostics.Process = New System.Diagnostics.Process
batchExecute.StartInfo = startInfo
If (batchExecute.Start()) Then
From this line it throws Access is denied error.
Code:
StackTrace " at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at seg1step.xx_import_xml_specs.btnUpload_Click(Object sender, EventArgs e) in D:\Web\mhe1stepQA\xx_import_xml_specs.aspx.vb:line 120" String
Anyone can help me.
But if i go to folder and double click on BATCHUPLOAD.BAT file.Then it is working.Also, I developed it in c#.There is working but in VB.net it is not working.
Any help.Today is my delivery.( beacuse i did it in c# but in VB.net it gives this issue).
Thanks,
Ujjwal Das
Bookmarks