Search found 9 matches

by Jan Antonin
25 May 2018 16:46
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 17743

Re: Get arguments without temporary file

@JanAntonin I'm missing the part where the arguments are transfered to a variable. I am not sure whether I can understand the question. I cannot see any trap in doing this. I am not able now to write a method not depending on the path and name (but I would appriciate it). Problems are with deleted ...
by Jan Antonin
24 May 2018 19:46
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 17743

Re: Get arguments without temporary file

here is a final version of my script i really think it is bulletproof I wont even have a look here at least a couple of weeks, I need not seeing cmd prompt for a while @jeb, @Aacini, @dbenham: thanks, it brought to my mind happy memories from my university years. Lambda calculus, algoritm theory, go...
by Jan Antonin
23 May 2018 19:02
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 17743

Re: Get arguments without temporary file

Why not run your script this way ? @echo off cmd /S /D /C ^" "tst.cmd" /arg: "ampersand EQU /S behavior" /optionalArg ^" cmd /D /C ^" "tst.cmd" /arg: "&&&&&&&&& EQU /S behavior" /optionalArg ^" pause exit Because (as I said) a name of your script may be t&st.cmd or other toxic symbol and in a path ...
by Jan Antonin
23 May 2018 10:49
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 17743

Re: Get arguments without temporary file

Here my three ideas which I didnt follow yet and which may or may not be usefull. 1) if I need to run again my script this way cmd /S /D /c""%~f0" "argument inside" it is a problem because cmd deletes the first and th last double-quotation mark and that is a problem because of argument and also beca...
by Jan Antonin
23 May 2018 04:38
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 17743

Re: Get arguments without temporary file

It is only a couple of lines, I would rather never say the time it has taken. Because of that I am delayed with all my personal an profesional tasks, it was kind of an obssesion or what. I may react with a long delays for your posts, if ever, sorry. Good luck guys dealing with all this "not the best...
by Jan Antonin
23 May 2018 04:24
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 17743

Re: Get arguments without temporary file

It is a short verion without a "selfpiping" e.g. the result will be only displayed. It is for the first argument %1. I am not sure whether using %* instead of %1 does or does not bring other problems. @setlocal ENABLEEXTENSIONS @setlocal DISABLEDELAYEDEXPANSION @prompt -$G$S @rem I just like this pr...
by Jan Antonin
23 May 2018 03:32
Forum: DOS Batch Forum
Topic: Get arguments without temporary file
Replies: 24
Views: 17743

Re: Get arguments without temporary file

I have to admitt that I strongly underestimated a complexity of this task hidden in details. It has already taken me too much time so a moment to public even a torso comes. I still have a strong feeling I could be able to fill all remainig holes but instead of that I will use a beautiful fuzzy and f...
by Jan Antonin
22 May 2018 03:42
Forum: DOS Batch Forum
Topic: Length of a string - my first contribution
Replies: 4
Views: 3944

Re: Length of a string - my first contribution

yeah, sure, I always used it only for pure ASCII, it means 00100000 to 01111110 (BTW I always wonder what the hell the purpose for 01111111 was ...) I am definitely not a developer, I am only interested. about arguments: Maybe I am totally dumb (it has already happened to me that I couldnt see somet...
by Jan Antonin
20 May 2018 16:10
Forum: DOS Batch Forum
Topic: Length of a string - my first contribution
Replies: 4
Views: 3944

Length of a string - my first contribution

Hi guys! First I would like to say big Thank You! Thank you dbenham, jeb, Aacini, aGerman and others. Although I dont use your amazing results at my work nor for making any profit I really appreciate them. It is not only about your results but it is rather about your attitude. It may sound a little ...