Search found 29 matches

by Simon Sheppard
2021-Sep-11, 11:38 am
Forum: Meta
Topic: SS64 / EMW3 Dark Theme Stylesheet
Replies: 1
Views: 54

Re: SS64 / EMW3 Dark Theme Stylesheet

Very nice, the 'databases' and 'convert' buttons look a little squashed for space so I would make all the buttons just a little wider. Also on EMW3/color the reason for the alternate black and white top/bottom borders is to show the generated colour against the most common background/foreground colo...
by Simon Sheppard
2021-Sep-03, 5:05 pm
Forum: Windows CMD Shell
Topic: How to create a variable with arguments starting at 2 positions ?
Replies: 4
Views: 210

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

Good point.
I can't help thinking there might be an easier way to approach this, but doing a simple search/replace of %1 within %* will fail if %1 is also contained within any other arguments.
by Simon Sheppard
2021-Aug-28, 11:31 am
Forum: Windows PowerShell
Topic: une fonction pour ss64 - Query an XML feed
Replies: 1
Views: 456

Re: une fonction pour ss64 - Query an XML feed

n.b. as written this uses the feed for the old forum https://ss64.org/extern.php?action=feed&type=atom
While that should redirect, the new forum has an XML feed at https://ss64.org/app.php/feed
by Simon Sheppard
2021-Aug-26, 9:58 am
Forum: Windows CMD Shell
Topic: For /f Quotes - Run a program with a long file name.
Replies: 5
Views: 500

Re: For /f Quotes - Run a program with a long file name.

Glad to be of help :)

[Edited the thread title to be more searchable]

Also a handy utility for testing this kind of thing is EchoArgs.exe it's part of the PowerShell Community Extensions but also works under the CMD shell.
by Simon Sheppard
2021-Aug-24, 10:16 am
Forum: Windows CMD Shell
Topic: For /f Quotes - Run a program with a long file name.
Replies: 5
Views: 500

Re: For /f Quotes - Run a program with a long file name.

The default delimiters of the FOR command are a Space, TAB, comma, Equals or Semicolon.

So you will need to add "delims=" to remove those defaults and then %%i will contain everything.
by Simon Sheppard
2021-Aug-23, 9:45 pm
Forum: Windows CMD Shell
Topic: For /f Quotes - Run a program with a long file name.
Replies: 5
Views: 500

Re: For /f Quotes - Run a program with a long file name.

Try like this

Code: Select all

for /f %%i in ('""My Program Name.exe" "this is a string""') do set OutputString=%%i
I think this is needed because the FOR command starts a new sub-shell which removes the outer set of double quotes.
by Simon Sheppard
2021-Aug-16, 4:51 pm
Forum: Meta
Topic: How to ask good questions - and get better answers.
Replies: 1
Views: 469

Re: How to ask good questions - and get better answers.

FORUM RULES: • Posts are to be made in the relevant forum, please read the forum descriptions before posting. • Do not post copyright material without the permission of the copyright owner, fair use excepted. • Do not harass, defame, threaten or impersonate other people. • Advertising third party se...