How to get chrome version using command prompt in windows

As of today user4851’s is still working. I took a look at his linked bug report and the proposed work around did not work for me anymore. Anways a new hkey is present in my directory which allows you to query the chrome version without being aware of the actual installation location: reg query “HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon” … Read more

How to copy files from folder tree dropping all the folders with Robocopy?

Why use robocopy? It’s a good tool for a specific task but this is not the one. You can simply use what cmd already gives you: for /r %f in (*) do @copy “%f” target This will essentially “flatten” your directory hierarchy. for /r will walk a directory tree recursively, looking for file names matching … Read more

Batch file to split .csv file

Try this out: @echo off setLocal EnableDelayedExpansion set limit=20000 set file=export.csv set lineCounter=1 set filenameCounter=1 set name= set extension= for %%a in (%file%) do ( set “name=%%~na” set “extension=%%~xa” ) for /f “tokens=*” %%a in (%file%) do ( set splitFile=!name!-part!filenameCounter!!extension! if !lineCounter! gtr !limit! ( set /a filenameCounter=!filenameCounter! + 1 set lineCounter=1 echo Created !splitFile!. … Read more

Visual Studio Command Prompt vs. a regular command prompt?

It basically just sets several of the Visual Studio binary locations into the PATH environment variable for that command window instance. This means you can use all the various commands and tools without having to include the full paths. There’s a partial list of some of the tools available on MSDN in .NET Framework Tools … Read more

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