Windows Cmd Tips (Jan 2020)


# Windows Cmd Tip 1: dir (with flag s), explorer
# LOOK FOR A BOOK USING 'DIR' AND OPEN THE DIRECTORY USING 'EXPLORER'

D:\Cupboard\Education\Books>dir "*grow rich*" /s
 Volume in drive D is New Volume
 Volume Serial Number is A82F-720D

 Directory of D:\Cupboard\Education\Books

15-Aug-16  07:17 PM         1,260,395 Think and Grow Rich - Napoleon Hill.pdf
               1 File(s)      1,260,395 bytes

     Total Files Listed:
               1 File(s)      1,260,395 bytes
               0 Dir(s)  85,230,800,896 bytes free

D:\Cupboard\Education\Books>explorer D:\Cupboard\Education\Books

# Windows Cmd Tip 2: Create a ".bat" file to set environment variables for the prompt. The ".bat" file can look like this:

set ROAMWARE_HOME=C:\Mobileum-CVS\RoamwareDeploy
set CATALINA_HOME=%ROAMWARE_HOME%\admin\jakarta-tomcat-8.0.35

set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
set JRE_HOME=%JAVA_HOME%\jre
set ANT_HOME=C:\Program Files\apache-ant-1.6.1

set LD_LIBRARY_PATH=%ROAMWARE_HOME%\javalib;%ORACLE_HOME%\lib;%JAVA_HOME%\lib;%LD_LIBRARY_PATH%
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%CATALINA_HOME%\bin;%PATH%

# Windows Cmd Tip 3: Change your DOS/Command prompt

1: If you're in Windows, go to the "DOS Prompt" or the "Command Prompt"
2: Type. PROMPT. followed by the format characters for your new prompt.
3: Press ENTER. Now your prompt has been changed to the argument you passed to the "prompt" command.

No comments:

Post a Comment