View Single Post
Old 06-06-2014, 00:42   #8
knox00
Junior Member
 
Iscritto dal: May 2014
Messaggi: 4
fatto sta che ho trovato il menù che cercavo

Codice:
@ECHO OFF
REM.-- Prepare the Command Processor
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION

:menuLOOP
echo.
echo.= Menu =================================================
echo.
for /f "tokens=1,2,* delims=_ " %%A in ('"findstr /b /c:":menu_" "%~f0""') do echo.  %%B  %%C
set choice=
echo.&set /p choice=Make a choice or hit ENTER to quit: ||GOTO:EOF
echo.&call:menu_%choice%
GOTO:menuLOOP

::-----------------------------------------------------------
:: menu functions follow below here
::-----------------------------------------------------------

:menu_1   Crea la cartella

SET cartella=custom

cd C:\Users\Alessandro\Desktop

md %cartella%

md %cartella%\Alta_Qualita
md %cartella%\Bozza
md %cartella%\IMG_Utili
md %cartella%\Progetto

GOTO:EOF

:menu_2   copia lavoro nel server
echo.Get a water and then add some code right here
GOTO:EOF

:menu_

:menu_T   Tip
echo.It's easy to add a line separator using one or more fake labels
GOTO:EOF

:menu_C   Clear Screen
cls
GOTO:EOF
solo che oltre a creare vorrei anche copiare quella cartella nel server, premendo 2. E possibile targhettare con una variabile il percorso della
cartella?
__________________
I5 4570S - 16 Gb RAM DDR3 - GTX 670 - 1 Tb
knox00 è offline   Rispondi citando il messaggio o parte di esso