What does symbol ^ mean in Batch script?

The caret ‘^’ character serves two purposes in Windows batch files:

1. line continuations:

~~~

@echo off

dir ^
/ad ^
c:\temp

~~~~

results in dir /ad c:\temp, which lists only the directories in C:\temp.

2. Escaping reserved shell characters & | ( < > ^.

Use a preceding caret to escape and print the character:

echo this pipe will print ^| but this one won't |
echo and this will print one caret ^^

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)