Search found 34 matches

by xiro
12 Jan 2023 01:00
Forum: DOS Batch Forum
Topic: COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER
Replies: 5
Views: 9566

Re: COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER

you can do it this way! @echo off for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i set year=%fulldate:~2,4% set month=%fulldate:~4,2% set day=%fulldate:~6,2% set foldername=LOG-%month%-%day%-%year% md %foldername% xcopy *.log %foldername% check xcopy ...
by xiro
11 Jan 2023 01:19
Forum: DOS Batch Forum
Topic: COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER
Replies: 5
Views: 9566

COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER

Hello I copy a batch file that can create a folder then name the folder with the current system date and time Sample @echo off for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i set year=%fulldate:~2,4% set month=%fulldate:~4,2% set day=%fulldate:~6,2% s...
by xiro
28 May 2014 21:56
Forum: DOS Batch Forum
Topic: display command batch
Replies: 4
Views: 4586

Re: display command batch

I'm typing copy /bpi/char/.... in cmd how to make a batch that would display the command then just press anykey to execute that command but the command to display is the command insde my batch....
by xiro
21 May 2014 00:49
Forum: DOS Batch Forum
Topic: display command batch
Replies: 4
Views: 4586

display command batch

Anyone please help me how to make a batch that display the code it would execute like copy \folder\folder\previous date....... in cmd :P