Originally Posted By: apronk
didn't try on vista yet but wouln't %userprofile% and %appdata% provide the corrent paths in all OS's ?



No they do not(for what i need), case in point

Server 03
S:\>echo %appdata%
C:\Documents and Settings\username\Application Data

S:\>echo %userprofile%
C:\Documents and Settings\username


Vista
S:\scripting\newlogscript>echo %userprofile%
C:\Users\username

S:\scripting\newlogscript>echo %appdata%
C:\Users\username\AppData\Roaming


03/XP dont use appdata for location of users start menu


Edited by duo (2008-02-18 09:17 PM)