Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# literal string command line builtup
Message
 
To
30/03/2006 13:30:35
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
MS SQL Server
Miscellaneous
Thread ID:
01109283
Message ID:
01109305
Views:
28
string s = "Some text in \"quotes\"";
>All,
>
>I'm trying to create a command line Schedule task with the following code
>
>strCmdLine = "schtasks /s "+ sComputerName +" /create /U " + sDomainName + " /P " + sDomainPassword + " /SC " + sTime + " /TN " + strJobName + " /TR " + sFTPExecutable + " " + oData.ScheduleId + " /SD " + dtStartDate.ToString("MM/dd/yyyy") + " /ED " + dtEndDate.ToString("MM/dd/yyyy") + " /RU runasuser" + " /RP " + sDomainPassword;
>
>However I am can not find a way to built up my literal string is get the double quote before the executable and after the Schedule Id, I'm hoping that someone call help me out.
>
>schtasks /s \\whoisme /create /U WC\cevans /P password /SC WEEKLY /TN tes
>tjobname /TR "\"c:\executable.exe 13fd18c1-cfc0-4bf7-8b7c-a2a84e97126d" /SD 03/26/2006 /ED 03/26/2006 /RU runasuser /RP password
>
>
>Evans,
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform