4
Reply

Simple string question

yokzu

yokzu

Sep 14 2011 7:28 AM
1.9k
Hello,
I just want to insert today's date into backup files name. Codes are below;
-------------
string today = DateTime.Today.ToShortDateString().ToString();
            string parametre1 = "/C mysqldump -u root -pcsi csfdb  force_db_ci > backup_'"+today+"'_1.sql"; // now closing cmd window
            Process islem = new Process();
            islem.StartInfo.FileName = "C:\\Windows\\System32\\cmd.exe";
            ...
------------
How can I insert today's string into backup file's name?

Answers (4)