@echo off
for /f "delims=" %%i in ('dir C:\*.bat /B /A-D /OD /TA') do (set file=%%i )
echo %file%
pause
https://help.libreoffice.org/4.1/Common/Collaboration/ru
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
for (i=0;i<3;i++)
{
char str[10]="";
printf("first print %s\n",str);
scanf("%s",str);
printf("second print %s\n",str);
}
return 0;
}