Search found 6 matches
- 24 Jan 2013 14:29
- Forum: DOS Batch Forum
- Topic: Command Choice In a IF
- Replies: 10
- Views: 8840
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...
- 24 Jan 2013 13:21
- Forum: DOS Batch Forum
- Topic: Command Choice In a IF
- Replies: 10
- Views: 8840
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...
- 24 Jan 2013 10:28
- Forum: DOS Batch Forum
- Topic: Command Choice In a IF
- Replies: 10
- Views: 8840
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
- 23 Jan 2013 13:38
- Forum: DOS Batch Forum
- Topic: Command Choice In a IF
- Replies: 10
- Views: 8840
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.
If I put echo on, the error comes at the loop for and crash there.
- 21 Jan 2013 15:11
- Forum: DOS Batch Forum
- Topic: Command Choice In a IF
- Replies: 10
- Views: 8840
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 "...
- 21 Jan 2013 13:23
- Forum: DOS Batch Forum
- Topic: Command Choice In a IF
- Replies: 10
- Views: 8840
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...