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..
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\"
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
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"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.