Windows xp batch file not working in Windows 7

srikant

New member
Local time
10:27 PM
Messages
2
Hi All,

Script below used to work fine with Windows Xp

set sqlDB=%2
set sshFile=ssh_%1
ssh [email protected] "/home/deployment/bin/ssh_dump.sh %1"
scp [email protected]:/home/deployment/workspace/%sshFile%.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 My Computer

At a glance

windows 7
OS
windows 7
Have you tried running in compatibility mode?
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64 bit Steve Ballmer Signa...Intel Core 2 Quad - Q9550 - 2.83GHz stock - O...4GB DDR2 800MHz (PC6400) OCZ ReaperNvidia GE Force 8800 GTS
Computer Manufacturer/Model Number
Homebrew PC - "Alpha_Dawg"
OS
Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
CPU
Intel Core 2 Quad - Q9550 - 2.83GHz stock - OC'd to 3.6GHz
Motherboard
Gigabyte EP45-UD3P
Memory
4GB DDR2 800MHz (PC6400) OCZ Reaper
Graphics Card(s)
Nvidia GE Force 8800 GTS
Sound Card
Asus Xonar DX
Monitor(s) Displays
Samsung SyncMaster 2333HD
Screen Resolution
1920 x 1080
Hard Drives
WD Caviar Black 750GB - 7200RPM - 32MB cache
WD Caviar Green 1.5TB - 5400RPM - 64MB cache
WD Caviar Green 2.0TB - 5400RPM - 64MB cache
PSU
PC Power & Cooling Silencer 750
Case
Gigabyte 3D Aurora
Cooling
Case is Air - 5ea. 120mm fans (mix of Arctic and Xigmatec)
Keyboard
MS Natural Wireless KB
Mouse
MS Wireless Mouse
Internet Speed
50 mbps down/5 mbps up
Other Info
AVerMedia - AVerTVHD G2 Dual Tuner Card
Hi Darryl,

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

My Computer My Computer

At a glance

windows 7
OS
windows 7
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 My Computer

At a glance

Windows 7 Ultimate - 64-bit | Windows 8 Pro -...Intel® Core™ i7 Processor 3,610QM (2.30Hz, 6M...8 GBNVIDIA® GeForce® GT 650M 2GB Graphics, Optimu...
Computer Manufacturer/Model Number
Samsung NP550P5C-S02IN
OS
Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
CPU
Intel® Core™ i7 Processor 3,610QM (2.30Hz, 6MB L3 Cach
Memory
8 GB
Graphics Card(s)
NVIDIA® GeForce® GT 650M 2GB Graphics, Optimus™ techno
Sound Card
SoundAlive™ JBL 3 Speakers (With sub-Woofer)
Monitor(s) Displays
39.62cm (15.6) SuperBright 300nit HD+ LED Display
Screen Resolution
1,600 x 900, Anti-Reflective
Hard Drives
1TB S-ATA II Hard Drive (5,400RPM)
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 My Computer

At a glance

Windows 7 Enterprise (x64); Windows Server 20...16GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
You mean right click and run as admin... right?
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64 bit Steve Ballmer Signa...Intel Core 2 Quad - Q9550 - 2.83GHz stock - O...4GB DDR2 800MHz (PC6400) OCZ ReaperNvidia GE Force 8800 GTS
Computer Manufacturer/Model Number
Homebrew PC - "Alpha_Dawg"
OS
Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
CPU
Intel Core 2 Quad - Q9550 - 2.83GHz stock - OC'd to 3.6GHz
Motherboard
Gigabyte EP45-UD3P
Memory
4GB DDR2 800MHz (PC6400) OCZ Reaper
Graphics Card(s)
Nvidia GE Force 8800 GTS
Sound Card
Asus Xonar DX
Monitor(s) Displays
Samsung SyncMaster 2333HD
Screen Resolution
1920 x 1080
Hard Drives
WD Caviar Black 750GB - 7200RPM - 32MB cache
WD Caviar Green 1.5TB - 5400RPM - 64MB cache
WD Caviar Green 2.0TB - 5400RPM - 64MB cache
PSU
PC Power & Cooling Silencer 750
Case
Gigabyte 3D Aurora
Cooling
Case is Air - 5ea. 120mm fans (mix of Arctic and Xigmatec)
Keyboard
MS Natural Wireless KB
Mouse
MS Wireless Mouse
Internet Speed
50 mbps down/5 mbps up
Other Info
AVerMedia - AVerTVHD G2 Dual Tuner Card
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 My Computer

At a glance

Windows 7 Enterprise (x64); Windows Server 20...16GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
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 My Computer

At a glance

Windows 7 Enterprise (x64); Windows Server 20...16GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Back
Top