I want my script to:
- Accept a variable
- Create a path using that variable as input
- Display the path
- Display the contents of the directory
What is wrong with the following code? The ECHO
statement just prints Your directory is set to
; the DIR
statement works as expected.
@ECHO OFF
SET custompath = "C:\Users\%1"
ECHO Your directory is set to %custompath%
DIR %custompath%