Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a macro that FTP's a directory when created

Status
Not open for further replies.

AidanEnos

MIS
Dec 11, 2000
189
Ok, I have a server that sits on an autonomous network. When an error creates a log file and a new directory, I'd like a program to take several steps...

1. I'd like to take that directory and zip it to a self-extracting executable with the same name as the directory that was created, with time stamp military time to the second.

2. I'd like it to establish a VPN connection to a single destination, will always be the same. (launch the program from a desktop icon, use macro to add username and password and click connect)

3. I'd like it to FTP that executable to a server into a single directory. (native FTP or Procomm or whatever is good, please suggest)

4. I'd like it to end both the FTP session and the VPN connection.

5. Finally resume normal operation and listen to the original directory again for new error directories to be created so it can begin this process as needed.

Example

Listening to c:\temp\errorlogs\
error created directory
c:\temp\errorlogs\031308\ (contains 15 files)
create zip file 031308130130.exe (containing all files and the directory path)
establish the VPN connection
initiate FTP connection
upload the file
break it all down and retrun to listening to c:\temp\errorlogs\

Thanks for your help :)
 
Wow.

I might suggest posting that in a VBS or WSH forum.... it doesn't really have anything to do with XP. More with programming Windows Shell....



Just my 2¢
-Cole's Law: Shredded cabbage

--Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top