Search found 4014 matches

by Squashman
11 Mar 2020 15:07
Forum: DOS Batch Forum
Topic: Run ALL .reg, .ps1, and .bat files in a folder.
Replies: 5
Views: 1657

Re: Run ALL .reg, .ps1, and .bat files in a folder.

Yes. Running a batch file from a batch file, releases control to the batch file being executed and does not return to the primary process. If you are trying to execute multiple batch files then you need to use the CALL command to execute them.
by Squashman
11 Mar 2020 15:05
Forum: DOS Batch Forum
Topic: WRITING IN CMD
Replies: 2
Views: 1445

Re: WRITING IN CMD

Your question lacks detail and clarity. Could you please explain in better detail what you are trying to accomplish.
by Squashman
29 Feb 2020 19:09
Forum: DOS Batch Forum
Topic: wsx.bat: REPL, one line program processor supporting some NodeJS features
Replies: 12
Views: 4404

Re: wsx.bat: REPL, one line program processor supporting some NodeJS features

I kind of felt the same way as aGerman. I think it would be better to have a switch for the input and output file names.
by Squashman
21 Feb 2020 11:21
Forum: DOS Batch Forum
Topic: [HELP] How to read a variable with a for
Replies: 6
Views: 4097

Re: [HELP] How to read a variable with a for

If you are having a difficult time getting help in English, may I suggest you post your question on a technical forum that speaks your language.

Stack Overflow en español
by Squashman
21 Feb 2020 11:15
Forum: DOS Batch Forum
Topic: [HELP] How to read a variable with a for
Replies: 6
Views: 4097

Re: [HELP] How to read a variable with a for

.:Xx4NG3LxX:. wrote:
21 Feb 2020 11:08
Could you translate that please? Thanks!
I don't speak your language but feel free to use Google Translate yourself.
by Squashman
21 Feb 2020 10:56
Forum: DOS Batch Forum
Topic: [HELP] How to read a variable with a for
Replies: 6
Views: 4097

Re: [HELP] How to read a variable with a for

I saw your reply before you decided to delete it. I am not going to provide an answer to your question now since you may have decided on changing the scope of your question.
by Squashman
21 Feb 2020 10:36
Forum: DOS Batch Forum
Topic: [HELP] How to read a variable with a for
Replies: 6
Views: 4097

Re: [HELP] How to read a variable with a for

You really have not defined the scope of what you are trying to accomplish. In the simplest form, to access the contents of a variable you reference the variable with percent symbols. Set "abc=abcdefghijklmnopqrstuvwxyz" echo %abc% If you want to read that variable with the FOR command, again just r...
by Squashman
21 Feb 2020 10:28
Forum: DOS Batch Forum
Topic: File List script adding filelist
Replies: 2
Views: 3416

Re: File List script adding filelist

You got several options but will require more code. 1) Write the output file to a temp folder and then move it back to the folder you want. 2) Write the output file to a temp file name and then rename it back to the file you want. 3) Capture the output of the DIR command piped to the FIND command wi...
by Squashman
11 Feb 2020 08:33
Forum: DOS Batch Forum
Topic: delete the last caracter for each line of the generated file
Replies: 2
Views: 3911

Re: delete the last caracter for each line of the generated file

Hello all :) , I have a DOS Batch that export data from an application, After this export I get a ".csv" that end by a semicolon, I want to delete this semicolon for each line, Thanks in advance, Please show us the code you are already using so we are not guessing at any possible solutions to your ...
by Squashman
07 Feb 2020 18:26
Forum: DOS Batch Forum
Topic: Copy name
Replies: 27
Views: 8817

Re: Copy name

I don't want to copy their filenames, I'd like to have a Windows Explorer selection of these files, so I can copy, cut or delete them How was anybody on this planet supposed to ascertain that from your original post. Hi, Greetings to all users of this forum I need help to modify this command cmd /c...
by Squashman
05 Feb 2020 10:52
Forum: DOS Batch Forum
Topic: Copy name
Replies: 27
Views: 8817

Re: Copy name

celsius wrote:
05 Feb 2020 10:45
Yes, it works well as context menu. Again, as button, the variable is not expanded
Then you are going to have to work with the developer of Open Shell.
by Squashman
05 Feb 2020 10:13
Forum: DOS Batch Forum
Topic: Batch to wipe / default Win10
Replies: 2
Views: 3416

Re: Batch to wipe / default Win10

ShadowThief wrote:
03 Feb 2020 13:24
If you don't have time to do it correctly, you're going to waste more time by fixing the side effects of doing it incorrectly.
Agreed.

If you are in a domain environment, Microsoft has already given you all the tools to accomplish this. You just need a competent admin to set it up.
by Squashman
05 Feb 2020 10:06
Forum: DOS Batch Forum
Topic: batch script to skip file is file name contains a specific prefix
Replies: 1
Views: 2974

Re: batch script to skip file is file name contains a specific prefix

Your code is comparing 13 characters of the file name to 4 characters of your prefix string. That will never be true.