Search found 4002 matches

by Squashman
31 Mar 2020 08:13
Forum: DOS Batch Forum
Topic: % in file list causing issues with call :command
Replies: 4
Views: 80

Re: % in file list causing issues with call :command

stevehero wrote:
30 Mar 2020 15:35
Maximum setlocal recursion level reached.
That was caused by the fact that the SETLOCAL was within the FOR command but the ENDLOCAL was outside of the FOR command.
by Squashman
29 Mar 2020 13:46
Forum: DOS Batch Forum
Topic: How to delete subfolders and files from parent folders found in the variable of a bat script?
Replies: 1
Views: 42

Re: How to delete subfolders and files from parent folders found in the variable of a bat script?

Open up a command prompt and type: help . I bet you will find a command or two that will help you. Probably easier to Google search for deleting a file or folder using a batch file. You do not need to assign the FOR variable to an environmental variable, which also means you will not need delayed ex...
by Squashman
29 Mar 2020 13:36
Forum: DOS Batch Forum
Topic: How can I stop this batch from working with subfolders.
Replies: 1
Views: 42

Re: How can I stop this batch from working with subfolders.

Did you perhaps try to solve the issue yourself by first understanding what the commands you are using actually do? I bet if you read the help for the commands you are using, you will be able to solve this yourself.
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: 401

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: 319

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: 1761

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: 1916

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: 1916

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: 1916

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: 1916

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: 1665

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: 2307

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: 4740

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...