There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware network networking outlook outlook 2003 outlook express partition password printer problem ram router security slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
WinBatch help need ASAP.


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
memikhail1's Avatar
Junior Member with 4 posts.
 
Join Date: Sep 2004
Experience: Advanced
30-Sep-2004, 12:45 PM #1
Exclamation WinBatch help need ASAP.
I have following code to FTP our WinBatch file to msn server.

;Run asp page to create data file
Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE", "http://our_IP/dbutils/SearchEngine/MSN/MSN_Shopping.asp")
WinWaitExist("MSN Shopping", -1)
TimeDelay(5)
WinClose("MSN Shopping")

;Start FTP process
AddExtender("WWWSK34i.DLL")
;host="our_host"
host="ftp.eshop.msn.com"
userid="CompanyName"
pswd="our_password"
acct=""
hSession=ftpOpen(host,userid,pswd,acct,1)

if !IsNumber(hSession)
Message("MSN FTP Open Error",hSession)
exit
endif


ftpChdir(hsession,"/3046/ftp")


rs=ftpPut(hSession, "\\our_IP\Web02_Intranet\dbutils\searchengine\MSN\MSN_Shopping.txt", "MSN_Shopping.txt", "A")
ftpClose(hSession)

if rs == "" then
;Change successful to true in logfile table for this process
Run("\\our_IP\Web02_Intranet\dbutils\SearchEngine\MSN\msnshopping.bat","")
WinWaitExist("finish_msnshopping.asp", -1)
TimeDelay(5)
WinClose("finish_msnshopping.asp")
else
message("ERROR --- MSN ftpPut returned",rs)
endif

It is work fine except sometime it getting frozen and doesn’t return any error, it’s just working without success. So.. I am trying to modify WinBatch file to timeout after 15 minutes and initiate and automatic retry.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:27 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.