[edit]actually it's SBS 2011[/edit]
I cannot get PROCESS.START to work on a Server 2008 box - tried all kinds of credential settings - getting no where.
I recently added the un/pw stuff - if I put a bad username it gives me an error - but with a good one nothing happens - the process never starts.
Code:Dim strFile As String = "Report_" & rptid & ".bat" Dim strBatFile As String = Path.Combine(strReportFolder, strFile) Using fileWrtr = New StreamWriter(strBatFile, False) fileWrtr.WriteLine("CD /D " & strReportFolder) fileWrtr.WriteLine("set path=" & strReportFolder) 'fileWrtr.WriteLine("amc rpt/printers") fileWrtr.WriteLine(strCmd) fileWrtr.Close() End Using Dim psusername As String = "xxxxx" Dim pspassword As SecureString = ConvertToSecureString("passwordxxxx") Dim psdomain As String = "somedomain" If blnSubmit Then Try Process.Start(strBatFile, psusername, pspassword, psdomain) .StartObject() .NewObject("rptid", rptid) .Seperate() .NewObject("queued", IIf(blnSubmit, "N", "Y").ToString) .EndObject() Catch ex As Win32Exception .StartObject() .NewObject("%%dalerror%%", ex.Message) .EndObject() Catch ex As Exception .StartObject() .NewObject("%%dalerror%%", ex.Message) .EndObject() End Try End If




Reply With Quote