forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


need help with SHSetFolderPath

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Sat Apr 19, 2014 12:09 pm    Post subject: need help with SHSetFolderPath Reply with quote

I am trying to use SHSetFolderPath in VDS 6, but I am having a hard time. Can anyone help with the code? Here is a MS page on it. http://msdn.microsoft.com/en-us/library/windows/desktop/bb762247(v=vs.85).aspx

Thanks!

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Sat Apr 19, 2014 5:45 pm    Post subject: Reply with quote

Looks like I may need to use SHSetKnownFolderPath

http://msdn.microsoft.com/en-us/library/windows/desktop/bb762249.aspx

This is what I tried

Code:
%x = @lib(shell32, SHSetKnownFolderPath,CSIDL_DESKTOP,NIL,INT:,0,STR:,"C:\temp")


But it doesn't work. Can anyone help with this?

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 766
Location: Eastman, GA

PostPosted: Mon Apr 21, 2014 1:16 am    Post subject: Reply with quote

Looks like you have to use the GUID

http://msdn.microsoft.com/en-us/library/dd378457(v=vs.85).aspx
Back to top
View user's profile Send private message AIM Address
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Apr 21, 2014 12:36 pm    Post subject: Reply with quote

Tried that also, not luck. Am I formatting the call properly?
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 766
Location: Eastman, GA

PostPosted: Mon Apr 21, 2014 3:56 pm    Post subject: Reply with quote

Not sure, and it looks like most of our API experts have migrated to other things.

I have a sore time figuring out API calls.
Back to top
View user's profile Send private message AIM Address
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Apr 22, 2014 1:02 pm    Post subject: Reply with quote

well I was able to get it to work on AutoHotkey, so I'll just use that and make a command line app to call from my VDS script.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group