Click here to Skip to main content
16,021,621 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to update all document number listed in datagridview using VB.net Pin
Fbanz121-Jan-18 14:48
Fbanz121-Jan-18 14:48 
SuggestionRe: How to update all document number listed in datagridview using VB.net Pin
Richard MacCutchan1-Jan-18 23:04
mveRichard MacCutchan1-Jan-18 23:04 
GeneralRe: How to update all document number listed in datagridview using VB.net Pin
Fbanz122-Jan-18 14:25
Fbanz122-Jan-18 14:25 
GeneralRe: How to update all document number listed in datagridview using VB.net Pin
Richard MacCutchan2-Jan-18 23:29
mveRichard MacCutchan2-Jan-18 23:29 
AnswerRe: How to update all document number listed in datagridview using VB.net Pin
Dave Kreskowiak2-Jan-18 3:05
mveDave Kreskowiak2-Jan-18 3:05 
QuestionLanguage independent shell32.GetDetailsOf (extended file system attributes) Pin
kalberts27-Dec-17 1:31
kalberts27-Dec-17 1:31 
AnswerRe: Language independent shell32.GetDetailsOf (extended file system attributes) Pin
Richard MacCutchan27-Dec-17 3:01
mveRichard MacCutchan27-Dec-17 3:01 
GeneralRe: Language independent shell32.GetDetailsOf (extended file system attributes) Pin
kalberts27-Dec-17 3:57
kalberts27-Dec-17 3:57 
Are you sure that any Windows version is equipped to switch to any culture? Or am I doing it wrong? I try:
CultureInfo culture = CultureInfo.CreateSpecificCulture("fr-FR");
CultureInfo.DefaultThreadCurrentCulture = culture;
Thread.CurrentThread.CurrentCulture = culture;
attrnames = new string[400];
Folder rFolder = GetShell32NameSpaceFolder(_sysRoot);
for (int attrNo = 1; attrNo < 400; attrNo++) {
  string attrName = rFolder.GetDetailsOf(0, attrNo).Trim();
  attrnames[attrNo] = attrName.Empty() ? null : attrName;
}
- as you can see, I both set DetfaultThreadCurrentCulture and CurrentThread.CurrentCulture. The table is still filled with English attribute names, rather than French. I sort of doubt that any Windows installation can take on any culture from any place in the world - it may be possible to install it, but it is not necessarily install it.

My immediate need right now is when I have detected that a file is a symlink / junction, to know programmatically what the link refers to. If in Windows Explorer display the Properties of the file, it comes up as "Target:" in the "Shortcut" tab. In my current Win10 version, I can obtain the target path by

GetDetailsOf(196, );

- I find "Link target" in element 196 of the above table. In other Windows versions, the index is different, so I initialize the table at startup and search for the string "Link target" when I need to look up that attribute number.

I have not found any alternative way to get hold of the link target. (I could use a command shell, giving a dir command and parse the output - but what are the commands, and what shoult I look for, in a Polish language command shell?)

Later, I will make use of more of the attributes not available through the basic attributes, such as the media description attributes (e.g. Duration, Frame width, Frame rate, ...) or author info. If there is another (language/version independent) way of obtaining the target of a symbolic link, I would be helped in the short term, but in the long term, I would need programmatic access to a whole lot of these attributes, preferably all those that can be displayed as an Explorer column.

This information is saved in the file system. I would be extremely surprised if each attribute value is tagged with a language specific attribute name. I would also be surprised if they are tagged with the index I see and use through GetDetailsOf - then, any Windows update would require a re-tagging of every file on every disk, and I couldn't take that disk over to an older version OS without loosing the attributes. Which identification mechanism is used in the NTFS metadata to recognize, say, the link target, or the video frame rate? Is there any way I can ask by the same ID that is used internally within the NTFS file system?
GeneralRe: Language independent shell32.GetDetailsOf (extended file system attributes) Pin
Richard MacCutchan27-Dec-17 4:07
mveRichard MacCutchan27-Dec-17 4:07 
GeneralRe: Language independent shell32.GetDetailsOf (extended file system attributes) Pin
kalberts27-Dec-17 4:46
kalberts27-Dec-17 4:46 
AnswerRe: Language independent shell32.GetDetailsOf (extended file system attributes) Pin
Gerry Schmitz28-Dec-17 7:28
mveGerry Schmitz28-Dec-17 7:28 
QuestionHow Good is Doing Programming Inverview Practice Online? Pin
CodeFights12-Dec-17 20:27
professionalCodeFights12-Dec-17 20:27 
AnswerRe: How Good is Doing Programming Inverview Practice Online? Pin
Richard MacCutchan12-Dec-17 22:07
mveRichard MacCutchan12-Dec-17 22:07 
GeneralRe: How Good is Doing Programming Inverview Practice Online? Pin
Anup Singh10-Jan-18 2:29
Anup Singh10-Jan-18 2:29 
AnswerRe: How Good is Doing Programming Inverview Practice Online? Pin
jschell14-Dec-17 8:38
jschell14-Dec-17 8:38 
Questionneed tutor online for .net core and sql server with msbi and azure deployment Pin
vinothsrivi12-Dec-17 15:51
vinothsrivi12-Dec-17 15:51 
AnswerRe: need tutor online for .net core and sql server with msbi and azure deployment Pin
Richard MacCutchan12-Dec-17 22:06
mveRichard MacCutchan12-Dec-17 22:06 
AnswerRe: need tutor online for .net core and sql server with msbi and azure deployment Pin
Pete O'Hanlon12-Dec-17 23:13
mvePete O'Hanlon12-Dec-17 23:13 
GeneralRe: need tutor online for .net core and sql server with msbi and azure deployment Pin
vinothsrivi12-Dec-17 23:55
vinothsrivi12-Dec-17 23:55 
GeneralRe: need tutor online for .net core and sql server with msbi and azure deployment Pin
Dave Kreskowiak13-Dec-17 2:12
mveDave Kreskowiak13-Dec-17 2:12 
AnswerRe: need tutor online for .net core and sql server with msbi and azure deployment Pin
Dave Kreskowiak13-Dec-17 2:14
mveDave Kreskowiak13-Dec-17 2:14 
Questionreverse a function Pin
cootechgy11-Dec-17 11:24
cootechgy11-Dec-17 11:24 
AnswerRe: reverse a function Pin
Eddy Vluggen11-Dec-17 11:56
professionalEddy Vluggen11-Dec-17 11:56 
AnswerRe: reverse a function Pin
Dave Kreskowiak11-Dec-17 15:27
mveDave Kreskowiak11-Dec-17 15:27 
QuestionAre there any limitations to Microsoft Word Doc conversion to HTML? Pin
Eagle329-Dec-17 3:36
Eagle329-Dec-17 3:36 

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.