hankjrfan Posted October 20, 2005 Share Posted October 20, 2005 I am writing a script to back up files on my server. Does anyone know of away to drop all network connections so that I can be sure no one is useing any of the files before i back them up. Even a command line program should be fine. I have tried useing "net sessions /delete" but it requires you to hit y and then enter and "echo y|net sessions /delete" does not work. Any ideas/suggestions would be appreciated. Link to comment Share on other sites More sharing options...
w0uter Posted October 20, 2005 Share Posted October 20, 2005 ipconfig /release ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
hankjrfan Posted October 20, 2005 Author Share Posted October 20, 2005 ipconfig /release ?Nice idea, but this machine has a static ip not dhcp.Thanks anyway Link to comment Share on other sites More sharing options...
Skruge Posted October 20, 2005 Share Posted October 20, 2005 Net Stop Server ... Net Start Server [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
hankjrfan Posted October 20, 2005 Author Share Posted October 20, 2005 Net Stop Server...Net Start ServerThanks that seems to accomplice what I want. Any idea on how to send a "Y{ENTER}" to the command window. I have never tried it but I have always heard that autoit has a hard time reading a command window. Link to comment Share on other sites More sharing options...
w0uter Posted October 20, 2005 Share Posted October 20, 2005 maby the STD I/O functions from the beta can be off assistance ? My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
hankjrfan Posted October 21, 2005 Author Share Posted October 21, 2005 maby the STD I/O functions from the beta can be off assistance ?I will check it out. Right now I am not useing the beta.Thanks Link to comment Share on other sites More sharing options...
random667 Posted October 21, 2005 Share Posted October 21, 2005 something like this? Send("#r") WinWaitActive("Run") Send("cmd{Enter}") WinWaitActive("C:\WINDOWS\system32\cmd.exe") Send("y {Enter}") Exit It is really sad to see a family torn apart by something as simple as a pack of wolves. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now