Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to create a custom file management task in Server 2012 R2 to move some files (not file expiration).

Looks like the possible variables I can insert into my command arguments are pretty limited: enter image description here

Right now I'm doing this which works fine: mv [Source File Path] "C:\somefolder\$(split-path [Source File Path] -Leaf)" but I'm just surprised there isn't an out of the box variable for the file name. Are there any more variables available or is it just the ones in the pick list? Is it possible to create a custom variable that would be populated in the pick list?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.