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
srikant

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
Darryl Licht

Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
 
 

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

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
Capt.Jack Sparrow

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
WindowsStar

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
Darryl Licht

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
WindowsStar

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
donach

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
WindowsStar

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
Thread Forum
Batch file help. For loop not working...
What im trying to accomplish: -I want to REG QUERY a registry entry that will output the value of a (*SpeedDuplex) string value -I then want to store that value in a variable The command im using and the output: REG QUERY...
General Discussion
Batch file not working as expected
The following batch file displays the txt but immediately erases. Why? @Echo off ECHO There have been 15 minutes or more of inactivity on this computer. Automatic LOGOFF will occur in 60 seconds.
General Discussion
batch file is not working
I created a batch file with rasdial command....if i try to run it a command prompt window opens for a fraction of second and then nothing happens...i tried to run it as admin...still no change.. what do I need to do?
Performance & Maintenance
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
Is it possible to create a windows batch file to do this?
I generally run windows aero theme across all four monitors which i am happy with. However when i run a music app called cubase 5, i hear all sorts of squeaks and glitches when i simply move my cursor around the screen. The problem resolves itself when i switch to the standard windows classic...
General Discussion
Batch File Error Windows 7 x64
Hey Guys, Tried writing a batch file to open a few programs I use together regularly, but which I don't want all the time on startup. I've tried: start “Maxivista” /d “C:\Program Files\MaxiVista Pro Server\MaxiVistaAll.exe" start “Netbeans” /d "R:\Program Files\NetBeans...
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 13:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App