You would want to keep the other version around in case you might want to
find one of these other "Special Folders":
{ A List of CSIDL Constant values to use in
the SHGetSpecialFolderPath function}
-- <desktop>
SET VAR desktop Integer = 0
-- Internet Explorer (icon on desktop)
SET VAR internet Integer = 1
-- Start Menu\Programs
SET VAR programs Integer = 2
-- My Computer\Control Panel
SET VAR controls Integer = 3
-- My Computer\Printers
SET VAR PRINTERS Integer = 4
-- My Documents
SET VAR personal Integer = 5
-- <user name>\Favorites
SET VAR favorites Integer = 6
-- Start Menu\Programs\Startup
SET VAR start_up Integer = 7
-- <user name>\Recent
SET VAR recent Integer = 8
-- <user name>\SendTo
SET VAR sendto Integer = 9
-- <desktop>\Recycle Bin
SET VAR bitbucket Integer = 10
-- <user name>\Start Menu
SET VAR startmenu Integer = 11
-- logical "My Documents" desktop icon
SET VAR mydocuments Integer = 12
-- "My Music" folder
SET VAR mymusic Integer = 13
-- "My Videos" folder
SET VAR myvideo Integer = 14
-- <user name>\Desktop
SET VAR desktop_dir Integer = 16
-- My Computer
SET VAR DRIVES Integer = 17
-- Network Neighborhood (My Network Places)
SET VAR network Integer = 18
-- <user name>\nethood
SET VAR nethood Integer = 19
-- windows\fonts
SET VAR FONTS Integer = 20
-- templates
SET VAR templates Integer = 21
-- All Users\Start Menu
SET VAR common_startmenu Integer = 22
-- All Users\Start Menu\Programs
SET VAR common_prgs Integer = 23
-- All Users\Startup
SET VAR common_startup Integer = 24
-- All Users\Desktop
SET VAR common_desktopdir Integer = 25
-- <user name>\Application Data
SET VAR appdata Integer = 26
-- <user name>\PrintHood
SET VAR printhood Integer = 27
-- <user name>\Local Settings\Application Data (non roaming)
SET VAR local_appdata Integer = 28
-- non localized startup
SET VAR alt_startup Integer = 29
-- non localized common startup
SET VAR common_altstartup Integer = 30
SET VAR common_favorites Integer = 31
SET VAR internet_cache Integer = 32
SET VAR cookies Integer = 33
SET VAR history Integer = 34
-- All Users\Application Data
SET VAR common_appdata Integer = 35
-- GetWindowsDirectory()
SET VAR windows Integer = 36
-- GetSystemDirectory()
SET VAR system_dir Integer = 37
-- C:\Program Files
SET VAR prg_files Integer = 38
-- C:\Program Files\My Pictures
SET VAR mypictures Integer = 39
-- USERPROFILE
SET VAR profile Integer = 40
-- x86 system directory on RISC
SET VAR system86 Integer = 41
-- x86 C:\Program Files on RISC
SET VAR prg_files86 Integer = 42
-- C:\Program Files\Common
SET VAR prg_files_common Integer = 43
-- x86 Program Files\Common on RISC
SET VAR prg_files_common86 Integer = 44
-- All Users\Templates
SET VAR common_templates Integer = 45
-- All Users\Documents
SET VAR common_documents Integer = 46
-- All Users\Start Menu\Programs\Administrative Tools
SET VAR common_admintools Integer = 47
-- <user name>\Start Menu\Programs\Administrative Tools
SET VAR admintools Integer = 48
-- Network and Dial-up Connections
SET VAR connections Integer = 49
-- All Users\My Music
SET VAR common_music Integer = 53
-- All Users\My Pictures
SET VAR common_pictures Integer = 54
-- All Users\My Video
SET VAR common_video Integer = 55
-- Resource Directory
SET VAR resources Integer = 56
-- Localized Resource Directory
SET VAR resources_loclized Integer = 57
-- Links to All Users OEM specific apps
SET VAR common_oem_links Integer = 58
-- USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning
SET VAR cdburn_area Integer = 59
-- unused Integer = &H3C
-- Computers Near Me (computered from Workgroup membership)
SET VAR computers_near_me Integer = 61
-- combine with value to force folder creation in SHGetFolderPath()
SET VAR flag_create Integer = 32768
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Doug
> Hamilton
> Sent: Friday, July 25, 2014 3:51 PM
> To: RBASE-L Mailing List
> Subject: [RBASE-L] - Re: Path of User's Desktop
>
> Yeah, that seems to work fine. Thanks Dan Better late than never. :)
>
> On 7/25/2014 2:22 PM, Dan Goldberg wrote:
>
> I might be late to this or someone might have posted this.
> This is what I use to get a users path in xp/win 7/win 8.
> SET VAR vpath =(ENVVAL('userprofile') + '\Desktop\') Dan Goldberg
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus
> protection is active.
> http://www.avast.com