English 中文(简体)
在目的地组合结构中加入目前的日期
原标题:Insert current date in to destination folder structure
  • 时间:2012-05-11 10:49:23
  •  标签:
  • robocopy

能否在斯堪的纳维亚格式(yyymmdd)上添加今天的时间,在使用浮游轮时,将其带至目的地。

robocopy "\myserver
ewlayout" "\myserveroldlayout 20120511" /MIR

I just need to support this while we transition our folder structures.

Cheers

我通过寻找其他答案解决了这个问题。

set "myDate=%date:~6,4%%date:~3,2%%date:~0,2%"
robocopy "\myserver
ewlayout" "\myserveroldlayout %myDate%" /MIR
最佳回答

更方便的是,你可以单行:

robocopy "\myserver
ewlayout" "\myserveroldlayout %date:~6,4%%date:~3,2%%date:~0,2%" /MIR
问题回答

暂无回答




相关问题
Robocopy to multiple destinations

is it possible and safe to copy from one source to multiple destinations with Robocopy? I mean, something like this in a bat file: ROBOCOPY source dest_1 ROBOCOPY source dest_2 Is there any side ...

How do I detect which program has returned an error code?

I m attempting to run a series of commands programmatically, read the error codes, and detect if these codes indicate success or failure so I can respond accordingly. Currently my commands are using ...

Robocopy filter not working?

Hi I m trying to use robocopy to copy a single file from my computer to another computer over the network. The file I m going to copy is named setup.exe and the directory it rests in also has a ...

Database Backup Robocopy

I have job that runs every 15 minutes that uses robocopy to copy a backup of the tranaction logs to a different server. This job is failing USER has full access rights to both home folder and the ...

Robocopy for Windows 2003 doesn t support /DST option

Does anyone know if it is possible to download the latest robocopy for Windows 2003. The latest version provides the /DST option which ignores time stamps changed due to BST (British Summer Time). ...

robocopy command

Iam using robocopy s /MIR command to copy the source files from MKS sandbox to SVN working copy and then iam committing to svn repository.this process is needed becasue we are in the process of ...

热门标签