Search found 6 matches

by Dabless
24 Jan 2013 14:29
Forum: DOS Batch Forum
Topic: Command Choice In a IF
Replies: 10
Views: 8821

Re: Command Choice In a IF

GOOD NEWS ! IT WORKED !:D I mixed all your tips together and the result is HORRIBLE, but it works : @echo off rem Script nommer ''Spagatti'' fais par charles goudrea rem but : supression sécuritaire if exist c:\corbeille.dir del c:\corbeille.dir if NOT EXIST c:\corbeille\ mkdir c:\corbeille REM Ceci...
by Dabless
24 Jan 2013 13:21
Forum: DOS Batch Forum
Topic: Command Choice In a IF
Replies: 10
Views: 8821

Re: Command Choice In a IF

The choice routine only runs when these two things are true: if EXIST "%~1" ( if EXIST "%corbeille%\%~nx1" ( Yes thats the point, but when I lauch the script, at the "For" line there is a message error "Syntax command is incorect (My traduction is probablly not ex...
by Dabless
24 Jan 2013 10:28
Forum: DOS Batch Forum
Topic: Command Choice In a IF
Replies: 10
Views: 8821

Re: Command Choice In a IF

foxidrive wrote:change this

echo IL A DIT OUI
:end
) ELSE (


to this, and try it.

echo IL A DIT OUI
:end
REM
) ELSE (



This works. But it does not pass every command, I mean the choice command will only show once, even if it needed twice
by Dabless
23 Jan 2013 13:38
Forum: DOS Batch Forum
Topic: Command Choice In a IF
Replies: 10
Views: 8821

Re: Command Choice In a IF

The problem is still there. I don't know what to do.

If I put echo on, the error comes at the loop for and crash there.
by Dabless
21 Jan 2013 15:11
Forum: DOS Batch Forum
Topic: Command Choice In a IF
Replies: 10
Views: 8821

Re: Command Choice In a IF

The script is supose to be a "Secure delete" "Corbeille" is the delete dir. I got the message "La syntaxe de la commande est incorect" if i translate it my self its some thing like "the syntax command is incorect". The choice here is to ask if he want to "...
by Dabless
21 Jan 2013 13:23
Forum: DOS Batch Forum
Topic: Command Choice In a IF
Replies: 10
Views: 8821

Command Choice In a IF

Hi ! Sorry for my bad english, but I am a french canadian, This is why there is some part of my code in french! I am trying to make a script for the school, Its in windows server 2008. Everything works fine alone. I mean that my command choice works, if I don't put it in the if, and my if work, if I...