HELP-Add route + Kill File 
Author Message
 HELP-Add route + Kill File

Hi,

version=VB5.0, SP3

I am using inet control to ftp one file to a server. When
a dial-up conn is launched, my route to the remote host
needs to be added again. I have been doing this with
a shell script (I mean batch file). Does anybody know
an API or other method that would be the equivalent of:

route add (local ip) (gateway) ?

I simply need to add that one route (out my ethernet card).
Launching a batch file from shell is a gross way to do it.

Also, killing a file after sending is a problem while error
trapping is enabled. Why is this? The documentation
says just perform a "goto 0" first, but that doesn't work.
Kill works fine if error trapping isn't invoked (which isn't
an option). I simply need to:

kill "test.log"

This causes an error like "argument expected, not variable".
I have been performing the delete with a batch file. That's
pretty gross huh? How can I blow away a file called test.log
without shelling a batch file?  Kill doesn't work with error
trapping invoked.

Thanks in advance, (reply by e-mail hopefully),




Thu, 19 Apr 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. HELP-Add route + Kill File

2. HELP-Add route + Kill File

3. HELP-Add route + Kill File

4. Help->add route and kill

5. Help->add route and kill

6. Help->add route and kill

7. Programatically change IP routing info (route add)

8. help-Add route (programatic)?

9. Adding a Static Route to W2K Server via ASP

10. Add a tcp/ip route

11. how to add routes with a VB app

12. Adding a route using API

 

 
Powered by phpBB® Forum Software