Search found 6 matches

by triggerer
04 Jun 2019 11:07
Forum: DOS Batch Forum
Topic: Check if a batch completed successfully (and was not closed by the user.
Replies: 8
Views: 1819

Re: Check if a batch completed successfully (and was not closed by the user.

The information of the flag variable or the log could be used by a future function of the script to "decorrupt" or save any important file (or at least notify the user) if the script fails by any reason.
by triggerer
04 Jun 2019 01:07
Forum: DOS Batch Forum
Topic: Check if a batch completed successfully (and was not closed by the user.
Replies: 8
Views: 1819

Re: Check if a batch completed successfully (and was not closed by the user.

Maybe not. But It's definitely important to know how you call it. Agreed. 1) main.bat currently is started by double click 2) it gets a user input/choice (password and encryption) 3) if the script does not complete the process, the files for encryption might get corrupt (might, but that is the poss...
by triggerer
03 Jun 2019 15:32
Forum: DOS Batch Forum
Topic: Check if a batch completed successfully (and was not closed by the user.
Replies: 8
Views: 1819

Re: Check if a batch completed successfully (and was not closed by the user.

Hello Steffen, you are right about the XY problem. What I mean is that I do over-complicate things some times. ;) Now... the main.bat is an encryption sequence. I do not think that there is any need to know what main.bat is but there ya go. As you said very wisely, the primary concept is to get the ...
by triggerer
02 Jun 2019 16:24
Forum: DOS Batch Forum
Topic: Check if a batch completed successfully (and was not closed by the user.
Replies: 8
Views: 1819

Check if a batch completed successfully (and was not closed by the user.

Ultimate goal: Check if a batch completed successfully (and was not closed by the user or process error.) My idea: Lets say that I want the file "main.bat" to run successfully and close itself and not by any other source (either user or program error). My solution is to create another batch file "ch...
by triggerer
02 Jun 2019 16:21
Forum: DOS Batch Forum
Topic: En/Decryption of file with array variables.
Replies: 2
Views: 459

Re: En/Decryption of file with array variables.

Hallo Phil, Thank you for your reply. What would your approach be to, not process a single character that there is no encryption available when encrypting and also not process it while decrypting? I have changed the code by a lot (running successfully) so please tell me if you need me to post the ma...
by triggerer
03 May 2019 07:02
Forum: DOS Batch Forum
Topic: En/Decryption of file with array variables.
Replies: 2
Views: 459

En/Decryption of file with array variables.

Hello all! New to batch programming, Im fascinated how much use .bat still has. Cheers to you all! Now into the subject. With the help of some other posts, I am trying to make a .bat file to encrypt and decrypt a text file with a progress bar (ignore the progress bar). I made 2 loops. If the decrypt...