This is a long away around, but it seems to work -
1) Create a Backup.bat file in the C:\WINDOWS\System32 folder -
===========================
@echo off&setlocal enableextensions
:: retrieving name of current directory
for %%* in (.) do set MyDir=%%~n*
:: adding safety factor for no directory, i.e a drive
if not defined MyDir set MyDir=%CD:\=%
:: telling you what it is
echo/ the current directory is %MyDir%
C:\WINDOWS\system32\xcopy.exe /e /s /h /k /y /i %1 E:\Test\%MyDir%
::pause
endlocal
===============
Notes:
a) remove the two full colons preceding pause and the command prompt window will stay open to observe the process
E:\Test is the destination folder for the copied files/folders - change for your local destination drive/folder
c) I think that piping could be added to create a log file of the xcopy command -
=====================
Echo. >>log.txt
echo.---------------------------------- >>log.txt
echo %date% %time% >>log.txt
echo.---------------------------------- >>log.txt
Echo. >>log.txt
C:\WINDOWS\system32\xcopy.exe /e /s /h /k /y /i %1 E:\Test\%MyDir% >> log.txt
===========================
I got the current directory retrieval idea from this link
http://www.msfn.org/board/topic/56320-retrieve-current-directory-name-in-batch/
2) Then create a Tools|Folder option|File type "Folder"|Advanced|New
Action: Backup
Application used to perform this action: C:\WINDOWS\system32\Backup.bat
Like I said, a long way around, but it greatly simplifies using Xcopy to make backups of selected files & folders