Syekick Posted January 25, 2008 Share Posted January 25, 2008 The following runs and works fine. However, at the end, a DOS Command window stays open. How do I close that puppy?Run(@Comspec & ' /k cipher /x c:\' & @UserName & "_" &@ComputerName & '.pfx', 'c:\')WinWaitActive ("EFS certificate and key backup")Send("{Enter}")Send("{Enter}")Send("{Enter}");The window above is the one that stays open.Sleep(100) ;100 millisecondsRun('net.exe use U: "\\testsvr\keysafe"')Sleep(250) ;250 millisecondsFileCopy ("c:\*.pfx", "u:")Sleep(250) ;250 millisecondsFileDelete("c:\*.pfx")Sleep(50) ;50 millisecondsRun("net.exe use /delete U:") Link to comment Share on other sites More sharing options...
Fossil Rock Posted January 25, 2008 Share Posted January 25, 2008 The following runs and works fine. However, at the end, a DOS Command window stays open. How do I close that puppy?Run(@Comspec & ' /k cipher /x c:\' & @UserName & "_" &@ComputerName & '.pfx', 'c:\')WinWaitActive ("EFS certificate and key backup")Send("{Enter}")Send("{Enter}")Send("{Enter}");The window above is the one that stays open.Sleep(100) ;100 millisecondsRun('net.exe use U: "\\testsvr\keysafe"')Sleep(250) ;250 millisecondsFileCopy ("c:\*.pfx", "u:")Sleep(250) ;250 millisecondsFileDelete("c:\*.pfx")Sleep(50) ;50 millisecondsRun("net.exe use /delete U:")Change /k to /c behdadsoft 1 Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Syekick Posted January 25, 2008 Author Share Posted January 25, 2008 So after a @Comspec the /C closes a dos window and the /K keeps it open (for troubleshooting and such) Gee, I learned somthing today. Thank you! 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