Search found 17 matches

by PiotrMP006
2022-Aug-19, 7:58 am
Forum: Windows CMD Shell
Topic: How do I check the length of a filename in batch script?
Replies: 1
Views: 8856

How do I check the length of a filename in batch script?

Hi

How do I check the length of a filename in batch script?
by PiotrMP006
2022-Aug-03, 11:58 am
Forum: Windows CMD Shell
Topic: How to replace all characters in a variable with another character?
Replies: 2
Views: 3038

How to replace all characters in a variable with another character?

Hi

How to replace all characters in a variable with another character?

ex
abcd -> ****
by PiotrMP006
2022-Jul-18, 6:54 am
Forum: Windows CMD Shell
Topic: "call exit" - Exit batch file from call subroutine
Replies: 7
Views: 6733

Re: "call exit" - Exit batch file from call subroutine

Both options are described here: https://ss64.com/nt/call.html
The "call exit" solution is not described here "https://ss64.com/nt/call.html" !!!
by PiotrMP006
2022-Jul-17, 10:19 am
Forum: Windows CMD Shell
Topic: "call exit" - Exit batch file from call subroutine
Replies: 7
Views: 6733

"call exit" - Exit batch file from call subroutine

Code: Select all

call exit
Is this the only effective way to exit batch file from call subroutine?
by PiotrMP006
2021-Oct-24, 2:04 pm
Forum: Windows CMD Shell
Topic: start "" changes the window title !!!!
Replies: 1
Views: 6553

start "" changes the window title !!!!

Hi

start "" changes the window title

ex

Code: Select all

start "" /b /low dir "D:\" /s

Image

Please help
by PiotrMP006
2021-Oct-04, 11:25 am
Forum: Windows CMD Shell
Topic: How to read a file in UTF-8 and remove a BOM in batch script?
Replies: 1
Views: 8755

How to read a file in UTF-8 and remove a BOM in batch script?

Hi

How to read a file in UTF-8 and remove a BOM in batch script?
by PiotrMP006
2021-Sep-01, 10:58 am
Forum: Windows CMD Shell
Topic: How to create a variable with arguments starting at 2 positions ?
Replies: 4
Views: 6938

How to create a variable with arguments starting at 2 positions ?

Hi

How to create a variable with arguments starting at 2 positions ?

set arguments==%*

"D:Test\" "Folder1" "Folder2" "Folder3"


I need to create a variable from the 2nd argument

"Folder1" "Folder2" "Folder3"


Please help me