Guest Posted April 2, 2013 Share Posted April 2, 2013 If you restart using "shutdown /r /t 30" Windows will use a comment over two lines. Example... [Window Title] You are about to be logged off [Main Instruction] Windows will shut down in 2 minutes. Shutdown will start on 02 April 2013 12:01:07. [Close] Does anyone know if it's possible to use separate lines with custom comments rather than it all appearing as one block text? shutdown /r /t 120 /c "Line one goes here. Line two goes here. Line three goes here" /d p:0:0[/CODE] [Window Title] You are about to be logged off [Main Instruction] Line one goes here. Line two goes here. Line three goes here [Close] Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/ Share on other sites More sharing options...
Xahid Posted April 2, 2013 Share Posted April 2, 2013 I think, it should work %windir%\system32\shutdown.exe -s -t 04 -c "Goodbye! & have a nice day" Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595611976 Share on other sites More sharing options...
Guest Posted April 2, 2013 Share Posted April 2, 2013 That appears on one line. I want it to appear on multiple lines like this example: [Window Title]You are about to be logged off [Main Instruction] Line one goes here. Line two goes here. Line three goes here [Close] Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595611996 Share on other sites More sharing options...
+Nik Louch Subscriber² Posted April 2, 2013 Subscriber² Share Posted April 2, 2013 Would \n work? Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595612016 Share on other sites More sharing options...
Guest Posted April 2, 2013 Share Posted April 2, 2013 Good answer. Completely forgot about that. Sadly not though :( TBH I think you hit the nail on the head and since \n doesn't work I can't imagine this is possible :/ Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595612054 Share on other sites More sharing options...
firey Posted April 2, 2013 Share Posted April 2, 2013 SK[' timestamp=1364904644' post='595612054]Good answer. Completely forgot about that. Sadly not though :( TBH I think you hit the nail on the head and since \n doesn't work I can't imagine this is possible :/ or \r\n possibly? full carriage return. Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595612062 Share on other sites More sharing options...
Guest Posted April 2, 2013 Share Posted April 2, 2013 Same result as \n sadly. Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595612072 Share on other sites More sharing options...
Raa Posted April 2, 2013 Share Posted April 2, 2013 (edited) If it's in a batch file for example, can you use a carriage return ASCII command (ALT 255 ?). Not sure if that will work though. Or another shutdown program, such as PsShutdown - http://technet.micro...s/bb897541.aspx Ahh I see, well i'm fairly sure it's not a go-er, sorry mate. :/ Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595612080 Share on other sites More sharing options...
Guest Posted April 2, 2013 Share Posted April 2, 2013 ALT 255 doesn't work either. I was hoping to get away with the native shutdown utility as the sysinternals stuff isn't on all servers I use. Link to comment https://www.neowin.net/forum/topic/1144950-shutdownexe-commenting-on-seperate-lines/#findComment-595612082 Share on other sites More sharing options...
Recommended Posts