Simulating script execution?

Discuss and share scripts and script files...

Simulating script execution?

Postby Marco » 20 Nov 2011 20:10

Is it even possible?
I'd like to get the path resulting from command #561 (Favorites / Special System Folders / Documents (All Users)) execution, without actually browsing to that folder.
Marco
 
Posts: 1460
Joined: 27 Jun 2011 14:20

Re: Simulating script execution?

Postby serendipity » 20 Nov 2011 20:28

Marco wrote:Is it even possible?
I'd like to get the path resulting from command #561 (Favorites / Special System Folders / Documents (All Users)) execution, without actually browsing to that folder.

Yes, paste this in addressbar:
::text get("SpecialFolder", 5);

5 is the CSIDL for my documents, you'll find others on the web.
serendipity
 
Posts: 3314
Joined: 07 May 2007 17:14
Location: NJ/NY

Re: Simulating script execution?

Postby admin » 20 Nov 2011 21:10

Favorites / Special System Folders / Documents (All Users) is CSIDL_COMMON_DOCUMENTS (46):
Code: Select all
::text get("SpecialFolder", 46);
admin
Site Admin
 
Posts: 31092
Joined: 22 May 2004 15:48
Location: Cologne

Re: Simulating script execution?

Postby serendipity » 20 Nov 2011 21:13

admin wrote:Favorites / Special System Folders / Documents (All Users) is CSIDL_COMMON_DOCUMENTS (46):
Code: Select all
::text get("SpecialFolder", 46);

:oops: sorry, missed the "all users" part.
serendipity
 
Posts: 3314
Joined: 07 May 2007 17:14
Location: NJ/NY

Re: Simulating script execution?

Postby Marco » 20 Nov 2011 21:22

Wow, thank you thank you guys, this was driving me crazy!
Marco
 
Posts: 1460
Joined: 27 Jun 2011 14:20


Return to Script Exchange



Who is online

Users browsing this forum: No registered users and 1 guest