Added display of Windows version details to the output of SHOW VERSION

This commit is contained in:
Mark Pizzolato 2013-03-20 08:13:51 -07:00
parent ba2070f1f6
commit 9cbacc32cf

5
scp.c
View file

@ -2778,7 +2778,10 @@ if (flag) {
#if defined(__VMS) #if defined(__VMS)
fprintf (st, "\n\t\tOS: VMS"); fprintf (st, "\n\t\tOS: VMS");
#elif defined(_WIN32) #elif defined(_WIN32)
fprintf (st, "\n\t\tOS: Windows"); fprintf (st, "\n\t\tOS: Windows: ");
fflush (st);
system ("ver");
system ("echo \t\t%PROCESSOR_IDENTIFIER% - %PROCESSOR_ARCHITECTURE%-%PROCESSOR_ARCHITEW6432%");
#else #else
fprintf (st, "\n\t\tOS: "); fprintf (st, "\n\t\tOS: ");
fflush (st); fflush (st);