Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: DriveInfo Class Help Required. Pin
Christian Graus9-Jul-09 2:17
protectorChristian Graus9-Jul-09 2:17 
GeneralRe: DriveInfo Class Help Required. Pin
Siddhartha S.9-Jul-09 2:32
Siddhartha S.9-Jul-09 2:32 
GeneralRe: DriveInfo Class Help Required. Pin
Christian Graus9-Jul-09 2:37
protectorChristian Graus9-Jul-09 2:37 
GeneralRe: DriveInfo Class Help Required. Pin
Siddhartha S.9-Jul-09 3:07
Siddhartha S.9-Jul-09 3:07 
QuestionNew to programming, lost ability to view images in VMC add-on Pin
James Alton8-Jul-09 23:58
James Alton8-Jul-09 23:58 
QuestionGetting the directory that a .lnk shortcut points to Pin
Douglas Kirk8-Jul-09 23:57
Douglas Kirk8-Jul-09 23:57 
AnswerRe: Getting the directory that a .lnk shortcut points to Pin
DaveyM699-Jul-09 0:30
professionalDaveyM699-Jul-09 0:30 
AnswerRe: Getting the directory that a .lnk shortcut points to Pin
DaveyM699-Jul-09 0:53
professionalDaveyM699-Jul-09 0:53 
Got it - you need to add a reference using the COM tab to Windows Script Host Object Model.
Add this to your usings
using IWshRuntimeLibrary;
Then you can do something like this
string shortcutLocation = @"C:\Your Shortcut.lnk";
WshShellClass wsh = new WshShellClass();
IWshShortcut shortcut = (IWshShortcut)wsh.CreateShortcut(shortcutLocation);
Console.WriteLine(shortcut.TargetPath);


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: Getting the directory that a .lnk shortcut points to Pin
Douglas Kirk9-Jul-09 21:46
Douglas Kirk9-Jul-09 21:46 
QuestionNumeric Format problem Pin
ansriharsha8-Jul-09 23:37
ansriharsha8-Jul-09 23:37 
AnswerRe: Numeric Format problem Pin
Pete O'Hanlon8-Jul-09 23:43
mvePete O'Hanlon8-Jul-09 23:43 
GeneralRe: Numeric Format problem Pin
ansriharsha9-Jul-09 1:29
ansriharsha9-Jul-09 1:29 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 1:47
professionalEddy Vluggen9-Jul-09 1:47 
GeneralRe: Numeric Format problem Pin
ansriharsha9-Jul-09 2:40
ansriharsha9-Jul-09 2:40 
QuestionRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 2:51
professionalEddy Vluggen9-Jul-09 2:51 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 3:47
ansriharsha9-Jul-09 3:47 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 3:57
professionalEddy Vluggen9-Jul-09 3:57 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 4:33
ansriharsha9-Jul-09 4:33 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 6:33
professionalEddy Vluggen9-Jul-09 6:33 
AnswerRe: Numeric Format problem Pin
ansriharsha17-Jul-09 0:50
ansriharsha17-Jul-09 0:50 
QuestionPlease Help... Pin
mjawadkhatri8-Jul-09 23:00
mjawadkhatri8-Jul-09 23:00 
AnswerRe: Please Help... Pin
Pete O'Hanlon8-Jul-09 23:16
mvePete O'Hanlon8-Jul-09 23:16 
GeneralRe: Please Help... Pin
Luc Pattyn9-Jul-09 9:42
sitebuilderLuc Pattyn9-Jul-09 9:42 
AnswerRe: Please Help... Pin
Blue_Boy8-Jul-09 23:26
Blue_Boy8-Jul-09 23:26 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 0:00
mjawadkhatri9-Jul-09 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.