01-21-2015 10:34 PM
Hello all,
Can anyone tell me how to delete desktop shortcuts with LabVIEW.
I tried with delete.vi & through cmd but its deleting actual source file.
Just I want to remove corresponding shortcut from desktop (It should not delete actual source file).
Please help me if anyone have idea.
01-21-2015 11:18 PM
Show how you are doing it. Are you trying to delete the file with an extension that ends in ".lnk"?
01-21-2015 11:31 PM
Dear RavensFan,
Thanks for quick response.
Sorry, I'm deleting file with an extension that ends in ".exe" (instead of ".lnk").
Now it's working well.
01-22-2015 02:57 AM
Hello All,
As per attached snippet,
I can delete shortcuts from given input folder (if I'm running this VI alone). But when I’m making this VI as subvi, shortcuts are deleting but still its showing in the mentioned folder. When I’m refreshing that folder, its disappearing.
I don’t know why it’s happening like this. Please help me if anyone have idea.
01-22-2015 07:02 AM
@Munna232 wrote:
I can delete shortcuts from given input folder (if I'm running this VI alone). But when I’m making this VI as subvi, shortcuts are deleting but still its showing in the mentioned folder. When I’m refreshing that folder, its disappearing.
That sounds like normal Windows behavior to me.
01-22-2015 06:51 PM
Hello Crossrulz,
Is there any idea for this?
I think after delete, we need to refresh that folder dynamically.
01-23-2015 01:45 AM
Perhaps this will give you some hints on how to get the Windows Explorer to auto-refresh: