Link to home
Start Free TrialLog in
Avatar of Nick Collins
Nick Collins

asked on

Adding today's date into a folder structure line

Good Afternoon,

I have a basic bat file with the following code below..

@echo off
D:
CD \
net use T: \\Server\Server1 password /user:user
move /Y "D:\Folder\*.pdf" "T:\Folder1\XXX Inbox XXX\"
net use t: /del

Open in new window



On the line - move /Y "D:\Folder\*.pdf" "T:\Folder1\XXX Inbox XXX\"

I want to be able to put today's date in the format of YYYYMMDD in the first part of the folder structure after folder - see below as an example

move /Y "D:\Folder\YYYYMMDD\*.pdf" "T:\Folder1\XXX Inbox XXX\"
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial