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