Search found 7 matches

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

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: 3
Views: 158

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: 3
Views: 158

"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: 4830

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

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-17, 12:54 pm
Forum: Windows VBScript
Topic: WshShell.Run ("cmd /c start """"..... always return code 0
Replies: 1
Views: 4556

WshShell.Run ("cmd /c start """"..... always return code 0

Hi

Code: Select all

errorcode = WshShell.Run ("cmd /c start """" /low /wait ""C:\Program Files\7-Zip\7zG.exe"" a -t7z -- """ & archivename & """ " & arguments, 1, True)
Always return code 0


Please help me
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: 3908

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