Most Important and Useful Windows Scripts Used by Professionals
Most Important and Useful Windows Scripts Used by Professionals
Most Important and Useful Windows Scripts Used by Professionals
HOME SERVICES SUBMIT YOUR QUERY! ADVERTISE CONTACT US ABOUT PRIVACY POLICY
Used By Professionals
Search
Powered by AWeber
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 1/9
1/30/2015 Most Important and Useful Windows Scripts Used By Professionals
Macintosh computers.ASP, JSP, and PHP scripts are used to design and generate
Web Pages. In this post I am going to give you some sample scripts prepared using
simple DOS commands and VB for advanced users that automate few tasks in PowerShell ASP
windows with less user intervention. Please note that you need to have a very
powershellserver.com
good grip over DOS commands to understand few commands that I used in
Build Dynamic Web Content with PowerShell
scripts. You can copy the below commands to a notepad and save the file with the with ASP-Style Scripting
relevant name and save the file name as example.bat (batch Script) Example.cmd
(command Script).
QTP Visual Testing
MISRA C: 2012
Vidos et Tutoriels
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 2/9
1/30/2015 Most Important and Useful Windows Scripts Used By Professionals
SET /P M=Type 1, 2, 3, 4, 5, 6 or 7 then press ENTER:
IF %M%==1 GOTO DELETE COOKIES
IF %M%==2 GOTO RECENT DOCUMENTS LIST
IF %M%==3 GOTO MY TEMP
IF %M%==4 GOTO MY TEMP INTERNET FILES
IF %M%==5 GOTO SYSTEM TEMP
IF %M%==6 GOTO RECYCLE BIN
IF %M%==7 GOTO EXIT
: DELETE COOKIES (no space between : and D)
del /F /S /Q C:\docume~1\%USERNAME%\cookies\*.*
GOTO MENU
:RECENT DOCUMENTS LIST
del /F /S /Q C:\docume~1\%USERNAME%\recent\*.*
GOTO MENU
:MY TEMP
del /F /S /Q C:\docume~1\%USERNAME%\locals~1\temp\*.*
GOTO MENU
:MY TEMP INTERNET FILES
del /F /S /Q C:\docume~1\%USERNAME%\locals~1\tempor~1\*.*
GOTO MENU
:SYSTEM TEMP
del /F /S /Q %SystemRoot%\temp\*.*
GOTO MENU
:RECYCLE BIN
REM del /F /S /Q C:\recycler\*.*
GOTO MENU
Please note to change the Path with your own path for your profile if you are
using windows 7.
This one is optimized for windows xp. If any doubts, you can always ping me.
This can be placed in the login tab according to my previous post for cleaning
the junk in the disk soon after you login to your PC. Please note to change the Path
with your own path for your profile if you are using windows 7. This one is
optimized for windows xp.
Example:
Internet Explorer setup9.exe z m
Or
Internet Explorer setup9.msi z m
Above commands are applicable only if you are going to install a update or setup
file similar to IE5,6,7,8,9 setups. This wont popup any window but just installs
them in the background.
strComputer = .
Set objWMIService = GetObject(winmgmts: _
& {impersonationLevel=impersonate}!\\ & strComputer & \root\cimv2)
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 4/9
1/30/2015 Most Important and Useful Windows Scripts Used By Professionals
Wscript.Echo Version: & objOS.Version Version & build
Wscript.Echo Build Number: & objOS.BuildNumber Build
Wscript.Echo Build Type: & objOS.BuildType
Wscript.Echo OS Type: & objOS.OSType
Wscript.Echo Other Type Description: & objOS.OtherTypeDescription
WScript.Echo Service Pack: & objOS.ServicePackMajorVersion & . & _
objOS.ServicePackMinorVersion
Next
I can go on like this with many useful scriptsAny of the reader interested in any
script to automate your task.
Comments
Satish says:
June 6, 2011 at 7:37 PM
Reply
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 5/9
1/30/2015 Most Important and Useful Windows Scripts Used By Professionals
parbat says:
June 6, 2011 at 8:25 PM
Reply
Yea really cool scripts and here one think i am not clear is with the FOR conditional
loop in the script.. Can u please ex plain it..!
Reply
subbuaxel says:
June 7, 2011 at 7:37 AM
In which script? and as i told you unless u are familiar with the dos commands you
wont be understanding the command parameters even if i tell you abt the for
loop!
Reply
Reply
subbuaxel says:
June 7, 2011 at 8:52 AM
You cant call it a for loop but,Im just defining that for SCR1(consider as
source1) parent profiles folder im just asking it to delete the SCR2 folder
contents.
Syntax : FOR /D %variable IN (set) DO command [command-parameters]
If set contains wildcards, then specifies to match against directory
names instead of file names.
Above syntax check for the profile directory and deletes the folder or its
contents forthe set defined in the parameters.
Reply
subbuaxel says:
June 7, 2011 at 8:53 AM
For more details you can just check the command prompt..all i have
used is simple commands that are confusing you
check for FOR /? in the command prompt..u wud understand it
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 6/9
1/30/2015 Most Important and Useful Windows Scripts Used By Professionals
VJ says:
June 7, 2011 at 11:28 AM
Reply
Subhash says:
June 7, 2011 at 12:51 PM
W hat if you need a shortcut on desktop with all the options.?Think in that
aspect!!!
Reply
subbuaxel says:
June 7, 2011 at 9:36 PM
whats new in that? we all are in here to know new things right?
There are few circumstances where you need another way.Also my script gives
you a popup to shutdown,restart,logoff etcjust place a shortcut on the desktop
and as per you its more than 100% faster
Reply
shenoyjoseph says:
June 7, 2011 at 4:01 PM
easy way to clean all temporary files to speed up system booting in windows.:)
Reply
Y8 says:
June 14, 2011 at 7:20 PM
Their are lots of software that can automate all this task right now and sometimes
some anti-virus right now incorporated this features to their products and softwares.
Reply
sushil says:
August 2, 2011 at 9:05 PM
i saw your website today and found very useful articles related to batch file.
i have 2 problems related to batch programming.i thought you solve my
problem so i post to you.
1.i want to change home page of all my browser with a single click.i know
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 7/9
1/30/2015 Most Important and Useful Windows Scripts Used By Professionals
it can be done with batch file but i dont know how to do it.plz solve this problem.
2.i have idea net setter e1550 when i connect to internet using this then
it open ideacellular.com
Reply
krunal says:
July 17, 2012 at 1:54 AM
Im using Tikona internet. Im daily getting an error while speed test or while
uploading the files The upload test returned an error while trying to read the upload
file what kind of error is this, pls help me.
Reply
Email *
Website
Post Comment
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 8/9
1/30/2015 Most Important and Useful Windows Scripts Used By Professionals
http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/ 9/9