1.

Solve : store the file path into a variable?

Answer»

@ECHO off
setlocal
set /p FILE="What is the file name (include extension)?"
for %%D in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
if exist "%%D:\" DIR %%D:\"%FILE%" /b /s
)

the above mentioned is the code for getting full path of a file which is searched by the user.smbdy please tell me how to STORE the file path into a variable after the dispaly/i am very new to this scripting.please help meThere may be more than one RESULT.



Discussion

No Comment Found