%~dp gives the drive and the path of the specified argument (%~dp0 gives the path of the batch file).
%CD% gives the current working directory.
%RANDOM% gives a temp file name.

Advertisements