Guest User

Untitled

a guest
May 20th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.49 KB | None | 0 0
  1. These strings build the argument attribute for a System.Diagnostics.Process call an executable.
  2.  
  3. This one fails (and by fails, I mean it calls the executable, but the executable appears to have no arguments at run-time:
  4.  
  5. String.Format("-u{0} -p{1} {2} < ""{3}""", argUserName, argPassword, argDatabaseName, argDumpPath)
  6.  
  7. This works (calls the executable with the proper arguments):
  8.  
  9. String.Format("-u{0} -p{1} -e ""source {2}"" {3}", argUserName, argPassword, argDumpPath, argDatabaseName)
Add Comment
Please, Sign In to add comment