zoltan foldi

zoltan foldi

  • NA
  • 37
  • 69

why not run my batch file in C# as service?

Jan 29 2025 10:12 PM

the batch esential is the folowing line

sqlcmd -S DESKTOP-4TQK0H9\SQLEXPRESS -U %Username% -P %Password% -d %Database% -Q "BACKUP DATABASE %Database% TO  DISK = '%BaseFolderPath%\%Database%.bak' WITH NOFORMAT, INIT, SKIP, NOREWIND, NOUNLOAD,  S

in another normal winform batch file is running withoout problem.


Answers (2)