Click here to Skip to main content
15,861,367 members
Home / Discussions / Linux Programming
   

Linux Programming

 
AnswerRe: bluetooth hci function fails to execute hci_read_class_of_dev Pin
Richard MacCutchan3-Dec-19 23:25
mveRichard MacCutchan3-Dec-19 23:25 
QuestionGit pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w8-Nov-19 5:26
arnold_w8-Nov-19 5:26 
AnswerRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
Afzaal Ahmad Zeeshan8-Nov-19 12:24
professionalAfzaal Ahmad Zeeshan8-Nov-19 12:24 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w8-Nov-19 21:56
arnold_w8-Nov-19 21:56 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w9-Nov-19 3:23
arnold_w9-Nov-19 3:23 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
Richard MacCutchan9-Nov-19 3:38
mveRichard MacCutchan9-Nov-19 3:38 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w9-Nov-19 4:13
arnold_w9-Nov-19 4:13 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
Richard MacCutchan9-Nov-19 4:33
mveRichard MacCutchan9-Nov-19 4:33 
Not sure if this is what you problem is, but:

Windows still supports .bat files; more commonly .cmd these days. And passing parameters is just the same as in running an executable in a console window. Try the following:
@echo off
:repeat
if "%1" == ""  goto :eof
echo next parameter is %1
shift
goto :repeat

Save as zzz.cmd and then run it by calling "zzz one two three". That shows how to pass a variable number of parameters to a batch file. Alternatively the parameters can be addressed by their actual position (but only the first 9).

However, converting a shell script to a Windows cmd file is no easy matter unless you are reasonably proficient in bash or similar, and Windows batch commands. And unless they are small (less than 15-20 lines) it is going to be a considerable task.
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w9-Nov-19 5:06
arnold_w9-Nov-19 5:06 
QuestionBest languages for Linux Admins to learn? Pin
StampedePress24-Oct-19 6:12
StampedePress24-Oct-19 6:12 
AnswerRe: Best languages for Linux Admins to learn? Pin
k505424-Oct-19 7:45
mvek505424-Oct-19 7:45 
GeneralRe: Best languages for Linux Admins to learn? Pin
StampedePress24-Oct-19 9:29
StampedePress24-Oct-19 9:29 
Generalwho is on first ? - programming GUI in Linux Pin
Vaclav_27-Sep-19 4:14
Vaclav_27-Sep-19 4:14 
GeneralRe: who is on first ? - programming GUI in Linux Pin
k505427-Sep-19 5:48
mvek505427-Sep-19 5:48 
QuestionHow to find all assignments the values to variables,by '=' or by func or as ref value Pin
mamali1289-Aug-19 7:18
mamali1289-Aug-19 7:18 
GeneralRe: How to find all assignments the values to variables,by '=' or by func or as ref value Pin
Richard MacCutchan9-Aug-19 21:44
mveRichard MacCutchan9-Aug-19 21:44 
GeneralText Based Game in Bash - Help Wanted Pin
Lucas Whitaker7-Aug-19 6:08
Lucas Whitaker7-Aug-19 6:08 
GeneralRe: Text Based Game in Bash - Help Wanted Pin
Richard MacCutchan9-Aug-19 21:46
mveRichard MacCutchan9-Aug-19 21:46 
Questionhcitool.c which source to take seriously? Pin
Vaclav_12-Jul-19 4:34
Vaclav_12-Jul-19 4:34 
AnswerRe: hcitool.c which source to take seriously? Pin
Richard MacCutchan12-Jul-19 5:53
mveRichard MacCutchan12-Jul-19 5:53 
AnswerRe: hcitool.c which source to take seriously? Pin
Gerry Schmitz12-Jul-19 8:26
mveGerry Schmitz12-Jul-19 8:26 
GeneralRe: hcitool.c which source to take seriously? Pin
Vaclav_12-Jul-19 9:39
Vaclav_12-Jul-19 9:39 
QuestionHide Taksbar Completely Pin
Member 145095557-Jul-19 22:13
Member 145095557-Jul-19 22:13 
QuestionRe: Hide Taksbar Completely Pin
Richard MacCutchan8-Jul-19 7:49
mveRichard MacCutchan8-Jul-19 7:49 
QuestionHide Taksbar Completely Pin
Member 145095557-Jul-19 22:03
Member 145095557-Jul-19 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.