Search found 50 matches

by Simon Sheppard
2021-Dec-08, 1:39 am
Forum: Windows CMD Shell
Topic: Seeking one-line output: filename plus hash
Replies: 1
Views: 15

Re: Seeking one-line output: filename plus hash

PowerShell should be capable of doing this without any other utilities, see these two cmdlets:

https://ss64.com/ps/get-filehash.html
https://ss64.com/ps/export-csv.html

If you can write batch files, PowerShell is much easier to pick up - the only hard part is remembering all the different cmdlets.
by Simon Sheppard
2021-Nov-26, 4:17 pm
Forum: Windows PowerShell
Topic: PowerShell script to open Settings (control panel)
Replies: 0
Views: 60

PowerShell script to open Settings (control panel)

This simple script displays a text menu and then opens your selection of Settings (control panel) https://ss64.com/ps/syntax-settings.html The script works but I feel like there may be a less verbose way of writing it, perhaps with a hash table. Also it would be good if the first menu option could a...
by Simon Sheppard
2021-Nov-21, 10:54 am
Forum: Meta: Site Feedback / Forum Q&A
Topic: The new forum and the old forum
Replies: 5
Views: 2781

Re: The new forum and the old forum

I have tweaked some of the theme colours so there is less red in the forum alerts and notifications, you may need to do a hard refresh in your web browser to see the changes. New posts will appear with a green icon instead of red.
by Simon Sheppard
2021-Nov-13, 8:46 pm
Forum: Windows CMD Shell
Topic: Echo ESC char to serial port
Replies: 7
Views: 1839

Re: Echo ESC char to serial port

I think you will need to use a terminal emulator such as PuTTy to be able to do that.

The latest Windows Terminal, might also be capable but I haven't tried it.
by Simon Sheppard
2021-Nov-11, 8:52 pm
Forum: Windows PowerShell
Topic: Solved: Send request to localhost/app/page (IIS) -- SSL/TLS error
Replies: 4
Views: 1406

Re: Send request to localhost/app/page (IIS)

so try something like this: $r=invoke-webrequest https://localhost/application/ -UseBasicParsing $r.Links |?{$_.href -match ".txt"} If that works, then you just need to parse out the most recent file and build a second invoke-webrequest with the right number. https://stackoverflow.com/a/27...
by Simon Sheppard
2021-Nov-11, 9:02 am
Forum: Windows VBScript
Topic: Getting started. Help using vbscript for a simple task.
Replies: 5
Views: 1513

Re: Getting started. Help using vbscript for a simple task.

I did a little research and it seems to me that the script needs to run under HTML. If that is correct, won't I need a website to host the HTML? Years ago people used VBScript embedded within web pages, but no-one does that any more, on the web it has been replaced with JavaScript. It is still bein...
by Simon Sheppard
2021-Nov-11, 12:31 am
Forum: Windows PowerShell
Topic: Solved: Send request to localhost/app/page (IIS) -- SSL/TLS error
Replies: 4
Views: 1406

Re: Send request to localhost/app/page (IIS)

If you try to retrieve https://localhost/application/
does that give you a default directory browsing list of the files?
https://docs.microsoft.com/en-us/iis/co ... torybrowse

If not, you may need to iterate through all the likely numbers, which may be very slow.
by Simon Sheppard
2021-Nov-11, 12:26 am
Forum: Windows CMD Shell
Topic: Is it possible to use variables in a substring operation?
Replies: 1
Views: 873

Re: Is it possible to use variables in a substring operation?

Thats a very interesting usage, you are using DelayedExpansion against a string expression rather than a variable I didn't realise that was possible, but it works!
by Simon Sheppard
2021-Nov-11, 12:17 am
Forum: Windows VBScript
Topic: Getting started. Help using vbscript for a simple task.
Replies: 5
Views: 1513

Re: Getting started. Help using vbscript for a simple task.

Hi SweetTasha

VBScript does not need to be compiled, just write the script in a text editor, save it and run it, see this page:
https://ss64.com/vb/syntax-run.html

The other How-To pages should get you started.
https://ss64.com/vb/syntax.html
by Simon Sheppard
2021-Nov-10, 5:46 pm
Forum: Windows CMD Shell
Topic: START Program.exe works, START path\Program.exe fails
Replies: 3
Views: 953

Re: START Program.exe works, START path\Program.exe fails

Always include a TITLE this can be a simple string like "My Script" or just a pair of empty quotes ""
According to the Microsoft documentation, the title is optional, but depending on the other options chosen you can have problems if it is omitted.
https://ss64.com/nt/start.html