Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SHGetKnownFolderPath Function ? How to ...

Featured Replies

Hi guys !

I am trying to find the location of the users Desktop folder in Windows Vista. Querying the registry like in Windows XP does not work anymore. In XP I used this:

FOR /F "TOKENS=3 DELIMS=	" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Desktop') do set DESKTOP=%%i

Now the registry value is still there but it still does not work. Also, the registry contained a value that said

"Do not use these Registry values, use SHGetKnownFolderPath or SHGetFolderPath instead."

So I tried to look up this function on MSDN but since I am no programmer I am not able to use that to my satisfaction in a cmd or vbs. Thats the link:

Function

Can anyone help me out by explaining how I could use this function from inside a cmd ?

Thanks a lot !

Alex


  • Author

Hi again,

well, I did not find out how to use that function yet but I managed to find out the reason why the mentioned code did not work. The DELIM in Windows XP was a <TAB> key, in Vista it has to be a <SPACE> Key.

Does anyone know how to change special user folders like Documents, Music, Videos etc. to another path using a cmd or vbs in the same way as doing it manually in Explorer (if you do it in explorer you are being asked if you want to move the files over to the new place, then the old folder is deleted and the new one is created)

Thanks,

Alex

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.