Page 1 of 1

Error: The handle is invalid when running in powershell

Posted: Wed 16 Feb 2011 20:37
by davidguthu
The same command line works just fine from a regular dos window. Powershell commands:

$ScriptBlock = { C:\"Program Files"\Devart\"dbForge Data Compare for MySQL"\datacompare.com /datacompare /source host:localhost database:test1 user:root password:hidden /target host:localhost database:test2 user:root password:hidden }

Invoke-Command $ScriptBlock

I can't seem to find any reference to this error anywhere on the site.

Posted: Thu 17 Feb 2011 08:47
by Alexz
Unfortunately, we cannot reproduce this problem with the latest version of dbForge Data Compare for MySQL v3.0.5 on Windows 7.
By the way, if everything works fine in a standard command line, it must work in PowerShell.
Be sure that you're using the latest version of PowerShell and it's compatible with your Windows version.