Windows xp batch file not working in Windows 7


  1. Posts : 2
    windows 7
       #1

    Windows xp batch file not working in Windows 7


    Hi All,

    Script below used to work fine with Windows Xp

    set sqlDB=%2
    set sshFile=ssh_%1
    ssh dep@stdetails.com "/home/deployment/bin/ssh_dump.sh %1"
    scp dep@stdetails.com:/home/deployment/w...shFile%.sql.gz .
    7z x %sshFile%.sql.gz

    After i upgraded to windows 7 first 3 steps r getting executed but 'scp' is not working.

    Can anyone please help me with this

    Thanks in advance

    Regards
    Srikant
      My Computer


  2. Posts : 1,939
    Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
       #2

    Have you tried running in compatibility mode?
      My Computer


  3. Posts : 2
    windows 7
    Thread Starter
       #3

    Hi Darryl,

    I tried that, Still its not working. I think OpenSSH is not working properly on Windows 7.
      My Computer


  4. Posts : 4,772
    Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
       #4

    srikant said:
    Hi Darryl,

    I tried that, Still its not working. I think OpenSSH is not working properly on Windows 7.
    OpenSSH i guess it works on Multiple Platforms so it should work in Windows 7 as well. Does it requires Telnet to be enabled looks to me like it uses that not sure i have never used this application ??

    - Captain
      My Computer


  5. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #5

    Are you running the script with elevated permissions?

    One of the very first problems I encountered with Windows Vista, as well with Windows 7, was my scripts not working. Once I ran them with elevated permissions 90% of my problems went away.
      My Computer


  6. Posts : 1,939
    Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
       #6

    You mean right click and run as admin... right?
      My Computer


  7. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #7

    You mean right click and run as admin... right?
    Yes that is correct. However sometimes you don't have that option. So you will need to open elevated command prompt and then run the script.
      My Computer


  8. Posts : 3
    windows 7 home premium
       #8

    How do you run a script from the command prompt?
    My problem is @ Batch file to stop services fails
      My Computer


  9. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #9

    Click the ORB, then All Programs, Accessories, Right Mouse Click on “Command Prompt” and then “Run As Administrator”. Then you can run your script.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:51.
Find Us