Monday, March 9, 2020

echo off and on

In Windows (and DOS) the “echo off” command suppresses showing the prompt and commands entered. Only the actual output of the commands being run is displayed. This works for commands as you type them and in batch files.
Some commands such as “set” and “cd” that are run in a batch file stay in effect after the batch is done, but “echo off” doesn't.

Example : 

When we observe after typing the echo off.. we did not find any line like (E:\Softwares\apache-tomcat-8.0.36) but when i enter dir then i am able to get the directories of that folder.

E:\Softwares\apache-tomcat-8.0.36>echo off
dir
 Volume in drive E is Software
 Volume Serial Number is 9C79-CBA4

 Directory of E:\Softwares\apache-tomcat-8.0.36

09/21/2018  11:18 AM    <DIR>          .
09/21/2018  11:18 AM    <DIR>          ..
09/21/2018  11:19 AM    <DIR>          apache-tomcat-8.0.36
               0 File(s)              0 bytes
               3 Dir(s)  249,605,476,352 bytes free
echo off
echo on

E:\Softwares\apache-tomcat-8.0.36>
When we on the echo then we are able to see the E:\Softwares\apache-tomcat-8.0.36.


No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...