hessam Posted February 25, 2009 Share Posted February 25, 2009 (edited) hi anyone help me req vbs to empty difrrent locationC:\Documents and Settings\x\Local Settings\TempC:\WINDOWS\tempC:\Documents and Settings\x\Recentand then req vbs to restart pcand then req vbs to turnoff pc in diffrent vbs filethanks Edited February 25, 2009 by hessam Link to comment Share on other sites More sharing options...
CoffeeFiend Posted February 25, 2009 Share Posted February 25, 2009 I tend to use scripting languages all the time, for many different things. But here I fail to see the point.Why not use cmd's built-in del & rd commands and shutdown.exe -- those built-in commands can easily do everything you asked for, without any scripting. It's one of the few cases left where batch files are still good enough IMO. Link to comment Share on other sites More sharing options...
hessam Posted February 25, 2009 Author Share Posted February 25, 2009 i like use vbs scriptbut i can use del & rd for empty location manullalyso if you can make vbs or batch file for restart and turn offthanks Link to comment Share on other sites More sharing options...
Yzöwl Posted February 25, 2009 Share Posted February 25, 2009 Take a look at the Win32_OperatingSystem class for your VBS.Or use the shutdown.exe, as already suggested, in a batch file. 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