Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows xp batch file not working in Windows 7


26 Feb 2010   #1

windows 7
 
 
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 System SpecsSystem Spec
.

26 Feb 2010   #2

Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
 
 

Have you tried running in compatibility mode?
My System SpecsSystem Spec
27 Feb 2010   #3

windows 7
 
 

Hi Darryl,

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


27 Feb 2010   #4

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Quote   Quote: Originally Posted by srikant View Post
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 System SpecsSystem Spec
27 Feb 2010   #5

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

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 System SpecsSystem Spec
28 Feb 2010   #6

Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
 
 

You mean right click and run as admin... right?
My System SpecsSystem Spec
28 Feb 2010   #7

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote:
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 System SpecsSystem Spec
18 Mar 2010   #8

windows 7 home premium
 
 

How do you run a script from the command prompt?
My problem is @ Batch file to stop services fails
My System SpecsSystem Spec
19 Mar 2010   #9

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

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 System SpecsSystem Spec
Reply

 Windows xp batch file not working in Windows 7




Thread Tools



Similar help and support threads for2: Windows xp batch file not working in Windows 7
Thread Forum
Solved Batch file not working as expected General Discussion
batch file is not working Performance & Maintenance
Solved Batch File that grabs file names from folder to insert into batch file General Discussion
Is it possible to create a windows batch file to do this? General Discussion
Maximize Windows using batch file during startup General Discussion
Standard Windows batch script not working General Discussion
Batch File Error Windows 7 x64 General Discussion

Our Sites

Site Links

About Us

Find 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 03:22 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33