Jump to content

Recommended Posts

Posted (edited)

hi anyone help me

req vbs to empty difrrent location

C:\Documents and Settings\x\Local Settings\Temp

C:\WINDOWS\temp

C:\Documents and Settings\x\Recent

and then req vbs to restart pc

and then req vbs to turnoff pc

in diffrent vbs file

thanks

Edited by hessam

Posted

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.

Posted

i like use vbs script

but i can use del & rd for empty location manullaly

so if you can make vbs or batch file for restart and turn off

thanks

Posted

Take a look at the Win32_OperatingSystem class for your VBS.

Or use the shutdown.exe, as already suggested, in a batch file.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...