Batch file running on Vista problem
Posted
by maqsood
on Stack Overflow
See other posts from Stack Overflow
or by maqsood
Published on 2010-04-19T08:35:57Z
Indexed on
2010/04/19
8:43 UTC
Read the original article
Hit count: 424
Dear All , I have to generate keys from cWrsync, I have Command:
"ssh-keygen -t rsa -q -N '' -f %ALLUSERSPROFILE%\.ssh\id_rsa"
I placed that command into a batch file, that is pointing to cwRsync\bin
directory, where ssh-keygen exe file is located, That batch file working fine Windows, But in Vista it is throwing unexpected result... the output of batch on Vista is:
C:\Program Files\cwRsync\bin>ssh-keygen -t rsa -q -N '' -f C:\ProgramData\.ssh\i
d_rsa
open C:\\ProgramData\\.ssh\\id_rsa failed: Bad address.
Saving the key failed: C:\ProgramData\.ssh\id_rsa.
The intersting thing is that if i manually run this command in commandline , it again run successfully,
© Stack Overflow or respective owner