Get Windows desktop folder

Get Windows desktop folder

b.graaf
Advocate Advocate
1,800 Views
3 Replies
Message 1 of 4

Get Windows desktop folder

b.graaf
Advocate
Advocate

Is there a way in iLogic to save a file to the desktop folder?

In other words: how can I get the desktop folder path with iLogic?

0 Likes
Accepted solutions (2)
1,801 Views
3 Replies
Replies (3)
Message 2 of 4

HideoYamada
Advisor
Advisor
Accepted solution

Hello,

 

This code shows your desktop path.

Dim WSH As Object
WSH = CreateObject("Wscript.Shell")
MessageBox.Show(WSH.SpecialFolders("Desktop"))	

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes
Message 3 of 4

b.graaf
Advocate
Advocate
Accepted solution

Tnx for your reply and solution!

This works.

 

In the meantime I have discovered another way:

 

Next rule also shows the desktop folder:

MessageBox.Show(System.Environment.GetFolderPath(Desktop), "Title")
Message 4 of 4

HideoYamada
Advisor
Advisor

Hi,

 


@b.graaf wrote:

Next rule also shows the desktop folder:

MessageBox.Show(System.Environment.GetFolderPath(Desktop), "Title")

This way is smart!

It's suitable for users using iLogic or .net language.

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes