detecting windows SMB feature + 1 more

Windows specific questions.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: detecting windows SMB feature + 1 more

Post by MrSwiss »

Hi Pierre,

looks good, I'll save it away, one never knows when it's needed ...
The only thing I don't quite understand is: at the beginning:

Code: Select all

#Define JumpCompiler "<D:\Free\64\fbc.exe>"
#Define JumpCompilerCmd "<-s gui >"
What's exactly the use, of the two defines? Are you using an Editor/IDE that needs them?
Pierre Bellisle
Posts: 56
Joined: Dec 11, 2016 17:22

Re: detecting windows SMB feature + 1 more

Post by Pierre Bellisle »

Hi MrSwiss,

Yes, I use UltraEdit and those two lines are for my own pre-compiler tool.
I find it more logic to have the compiler selection and options embedded in the source code.
So when I got ten or fifteen files in the editor, there is no need to change any options in the editor.
I just hit "Compile", "Compile and run", or "Run".

Plus, if I post code on the forum, it tell others how the code was compiled. :-)

Pierre
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: detecting windows SMB feature + 1 more

Post by MrSwiss »

Pierre Bellisle wrote:Hi MrSwiss, Yes, I use UltraEdit and those two lines are for my own pre-compiler tool. ... Pierre
Thanks, for the answer.
Josep Roca
Posts: 564
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

Re: detecting windows SMB feature + 1 more

Post by Josep Roca »

Starting with Windows 8, the SMB version can be retrieved using the WMI MSFT_SmbConnection class. The Dialect property returns the SMB version.

See: https://msdn.microsoft.com/en-us/librar ... s.85).aspx
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: detecting windows SMB feature + 1 more

Post by MrSwiss »

Hi Josep,

thanks for your tips. Just to let you know, the posted links don't work, as expected.
Josep Roca
Posts: 564
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

Re: detecting windows SMB feature + 1 more

Post by Josep Roca »

It seems to be a problem ot this forum software. I just have copied and pasted the address of the MSDN page.

Let's try it disabling automatic URL parsing:

https://msdn.microsoft.com/en-us/library/hh830461(v=vs.85).aspx
St_W
Posts: 1618
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: detecting windows SMB feature + 1 more

Post by St_W »

[offtopic]
The version specifier of the MSDN URLs can usually be removed (except if you rely on a specific version, of course), so as a workaround for MSDN links one can just remove that "(v=vs.85)" part, like this:
https://msdn.microsoft.com/en-us/library/hh830461.aspx
Alternatively, for other URLs or if you need that version part the parantheses can be URL-encoded, like this:
https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
[/offtopic]
Post Reply