help with batch file in windows 7
I have created a batch file(.bat file). I am not sure, due to some reasons its not running when i double click on it. i would like to use a vb script instead of batch file. here is the batch file i am using.
REM RECEIVES FILE FROM HP-UX
REM SEND TODAY'S FILE
echo open 192.168.0.10 >> temp.tmp
echo cd /var/summit/spectrum/LIVE/FI/DATA >> temp.tmp
echo get DACHORIG C:\Ach_recv\DACHORIG >> temp.tmp
psftp -b temp.tmp
any help would be greatly appreciated.
Community Chosen Answer
The easiest way to troubleshoot Batch files on Windows 7 is to call them while running Command Prompt as Administrator. Also, placing pauses in between lines to verify your lines are being called properly and not erroring.
VB Script has many methods you could try to achieve this.