Windows XP what is wrong with this script?

Joined
Aug 8, 2006
Messages
58
Reaction score
0
What is worng with this batch file ??? lets say i save that as comp.bat. after typing comp i have
Enter folder to compress: <- and i don't know what to type here :(:(:(
when i type C:\test - folder was not found
i'm sure that there is something missing or something wrong. can anyone help me? thanks for any suggestions :)





rem %1 name of attribute
echo %1
@echo off

set /P %my_folder%="Enter folder to compress: "

if exist %my_folder% goto %rar_file%
goto error

cd %my_folder%

rar.exe a %my_folder% -s

goto done

:error
echo folder was not found

:done
 
Back
Top