I could do IF EXIST but I thought I would first check to see if someone
knows how to get the actual default location.
Thanks,
Bob
If you reply to me please remove ATHOME from my address
This requires REG.EXE (from the Windows 2000 Support Tools or Windows
NT4 Resource Kit):
:: Set DocFolder variable to the common document folder
Set RootKey=HKLM
Set SubKey=SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Set ValueName=Common Documents
For /F "Tokens=2* Delims= " %%A in (
'Reg Query "%RootKey%\%SubKey%" /v "%ValueName%" ^| Find /I "%ValueName%"'
) Do (Set DocFolder=%%B)
--
Frank-Peter Schultze <fpsch...@my-deja.com>, http://www.fpschultze.de