1.

Solve : Unspecfied path?

Answer»

set "FILE=\\servernameA\C$\dferert\tretevf\erwerew\yuyur\gtytr\testing.txt"
set "answer="
if exist "%file%" (
echo found the file on server servernameA
echo found the file on server servernameA >>"file.log"
set /p "answer=Delete the file? [y/N] :"
)
if /i "%answer%"=="y" DEL "%file%"

To the above batch file, i need to change it as follows

What if the file path is unspecified i.e file COULD be anywhere on c drive or we have another drive called G. how to add this to above script. please help

please help or guide me



Discussion

No Comment Found