LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create shortcut folder in desktop

Solved!
Go to solution

Hi Guru,

 

I understand what Hu Yu wants to say.

 

But currently i have c drive only. So i cant create a shortcut at the same folder . I want to direct my .Ink file to desktop. To send to the desktop the link can't send as we did create folder in other driver such as example tht Hu Yu given.

 

Please guide me how to do link the .Ink to desktop not to other drive.

 

Please help thank you.

 

 

0 Kudos
Message 11 of 30
(2,490 Views)

So this is the true problem.

 

You can use some specified characters to locate desktop

 

the following example create a shortcut  Win.lnk on the Desktop which point to the  C:\Windows folder

 

shortcut /f:"%USERPROFILE%\Desktop\Win.lnk" /a:c /t:C:\Windows

Best Regards

Hu Yu
0 Kudos
Message 12 of 30
(2,485 Views)

If windows XP is installed in the PC then the Path of the desktop could be "C:\Documents and Settings\XXX\Desktop"

 

here "XXX" is the username.

 

you can get the information regarding the current logged in user through some user32.dll (i guess) and can create the above path.

 

Just give it a try once.

 

Also there might be chance that the LV application which creates this shortcut file on the dektop for a certain user might not have the "write" permission and you may fail. Check for these and do reply in case you are sucesful

Message Edited by Guruthilak on 02-02-2010 11:20 AM
Regards
Guru (CLA)
0 Kudos
Message 13 of 30
(2,478 Views)

Hi,

 

I have tried this but it says..shortcut is not recognized..i have attached the testing i made..please help.thank you

0 Kudos
Message 14 of 30
(2,467 Views)

You can

 

DOWNLOAD the shortcut.exe form here,

 

copy the shortcut.exe to C:\Documents and Settings\Administrator\

 

then run the command at C:\Documents and Settings\Administrator\    path

 

And Note:

 

thats Win.lnk(short for link), not ink

Message Edited by NIhuyu on 02-01-2010 10:47 PM
Message Edited by NIhuyu on 02-01-2010 10:48 PM
Best Regards

Hu Yu
0 Kudos
Message 15 of 30
(2,462 Views)

Im sorry again Hu Yu,

 

How to run the command ? so i can get C:\Documents and Settings\Administrator\    path

 

sorry im really dumb in this dos commands. Please help thank you

 

0 Kudos
Message 16 of 30
(2,454 Views)

Under CMD

 

Use C: to change to disk C

 

Use cd <folder name> to change to the specified folder

 

You may pay attention to the underlined path, that's your current working path, you just make sure the current working path is the same as you shortcut.exe's path, that should work

 

dos.PNG

 

 

Best Regards

Hu Yu
0 Kudos
Message 17 of 30
(2,449 Views)

NIhuyu wrote:

So this is the true problem.

 

You can use some specified characters to locate desktop

 

the following example create a shortcut  Win.lnk on the Desktop which point to the  C:\Windows folder

 

shortcut /f:"%USERPROFILE%\Desktop\Win.lnk" /a:c /t:C:\Windows


Is there a chance that %USERPROFILE%\Desktop is called something else in non English Windows versions????

Rolf Kalbermatter
My Blog
0 Kudos
Message 18 of 30
(2,447 Views)

I gave that a try on Windows XP Chinese version.

 

It works. But I don't know the result for other languages of Windows XP.

Best Regards

Hu Yu
0 Kudos
Message 19 of 30
(2,443 Views)

Its works..Thank you Hu Yu.

 

So if i wana do in labview 8.0, is it i need to run each command one by one till the last ?

 

 

0 Kudos
Message 20 of 30
(2,440 Views)