in reply to Re: windows app-data path
in thread windows app-data path

momo33, Im not sure if this will help you but I use my perl scripts in XP and win7, and here are the things I use to find the correct paths.. good luck :)

$user = getlogin(); # get username if(-e(-d("C:/users"))){$users = "users";} #check if exists elsif(-e(-d("C:/Documents and Settings"))){ $users = "Documents and Settings"; } $OS = $^O;

Replies are listed 'Best First'.
Re^3: windows app-data path
by Corion (Patriarch) on Nov 19, 2011 at 14:21 UTC

    This approach will fail for example on non-English Windows XP. For example German Windows XP has Dokumente und Einstellungen as the directory name.