On Thu, Jan 22, 2009 at 10:03 AM, David McSpadden <[email protected]> wrote:
> I tried this in a batchfile in the send to directory???
>
> copy %1 n:\%username%\%1 /Y
The full path to the file will be passed, not just the file name.
So "%1" will look like:
C:\Documents and Settings\JSMITH\Desktop\some\folder\or\whatever
If you want/need to grab just the filename, you'll need to parse %1.
You may be able to use the extended variable syntax (see "SET /?").
If not, BASENAME.EXE (ported from Unix) may help.
-- Ben
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~