How do I (recursively) search ALL file contents in Windows 7?

“user3245549” is right: All of the above answers with “for loops” and nested bat files are mumbo jumbo. All you need is to just use “findstr” – example: C:\temp> findstr /S /C:”/work” * | more <– this will find the string “/work” in any file or C:\temp> findstr /S /C:”/work” “*.*” | more or C:\temp> … Read more

Windows 7 batch files: How to check if parameter has been passed to batch file

if %1.==. dir will break if the parameter includes various symbols like “, <, etc if “%1″==”” will break if the parameter includes a quote (“). Use if “%~1″==”” instead: if “%~1″==”” ( echo No parameters have been provided. ) else ( echo Parameters: %* ) This should work on all versions of Windows and … Read more

Windows Batch: How to add Host-Entries?

I would do it this way, so you won’t end up with duplicate entries if the script is run multiple times. @echo off SET NEWLINE=^& echo. FIND /C /I “ns1.intranet.de” %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^62.116.159.4 ns1.intranet.de>>%WINDIR%\System32\drivers\etc\hosts FIND /C /I “ns2.intranet.de” %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^217.160.113.37 ns2.intranet.de>>%WINDIR%\System32\drivers\etc\hosts FIND /C /I “ns3.intranet.de” %WINDIR%\system32\drivers\etc\hosts … Read more

custom combobox in wpf Application

I also liked the format and decided to reproduce it. Please find the XAML below. Hope it helps someone… <Window x:Class=”ComboStyle.MainWindow” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Title=”MainWindow” Height=”350″ Width=”525″> <Window.Resources> <ControlTemplate x:Key=”ComboBoxToggleButton” TargetType=”{x:Type ToggleButton}”> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition Width=”20″ /> </Grid.ColumnDefinitions> <Border x:Name=”Border” Grid.ColumnSpan=”2″ CornerRadius=”0″ Background=”#FF3F3F3F” BorderBrush=”#FF97A0A5″ BorderThickness=”1″ /> <Border Grid.Column=”0″ CornerRadius=”0″ Margin=”1″ Background=”#FF3F3F3F” BorderBrush=”#FF97A0A5″ BorderThickness=”0,0,1,0″ /> … Read more

Windows MongoDB – Installed Compass but can’t find Compass within system

For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut ‘MongoDB Compass’ here: C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MongoDB Inc and then in the properties of it the actual location seems to be C:\Users\<username>\AppData\Local\MongoDBCompass\MongoDBCompass.exe

How can i see the assembly version of a .NET assembly in Windows Vista and newer (WIndows 7, 2008)?

No. Not from explorer. It is an intentional move by Microsoft (although I dislike it). You can from powershell though: [Reflection.AssemblyName]::GetAssemblyName(‘full-path-to\xxxx.dll’).Version Also if file version is not explicitly set it will default to assembly version. Here is some info: http://all-things-pure.blogspot.com/2009/09/assembly-version-file-version-product.html

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)