Search found 190 matches

by Simon Sheppard
2023-Nov-27, 10:51 pm
Forum: Windows CMD Shell
Topic: 8.3 filename short and windows 11
Replies: 1
Views: 4406

Re: 8.3 filename short and windows 11

These are the values for NtfsDisable8dot3NameCreation 0 NTFS creates short file names. This setting enables applications that cannot process long file names and computers that use differentcode pages to find the files. 1 NTFS does not create short file names. Although this setting increases file per...
by Simon Sheppard
2023-Nov-13, 1:09 am
Forum: Windows CMD Shell
Topic: the auto exec page
Replies: 7
Views: 15528

Re: the auto exec page

Thanks again Jeb I think I get it now. Every line of output echoed within the AutoRun script is treated as part of the FOR loop causing the doubled output. So I'm thinking the sensible way to use AutoRun would be to either redirect any output to a file, a variable or redirect it to &2 (the error...
by Simon Sheppard
2023-Nov-10, 6:11 pm
Forum: Windows CMD Shell
Topic: The page: echo.html
Replies: 3
Views: 4444

Re: The page: echo.html

Ah good catch, I changed that now. Thanks again.
by Simon Sheppard
2023-Nov-10, 1:04 pm
Forum: Windows CMD Shell
Topic: the auto exec page
Replies: 7
Views: 15528

Re: the auto exec page

Thanks Jeb that makes sense. A strange thing Im finding while testing this is that a command like: TYPE test.txt | FIND "Smith" does not appear to trigger the CMD autorun, even though I have always assumed this would be instantiating a new CMD.exe instance based on the handling of escape c...
by Simon Sheppard
2023-Nov-08, 6:48 pm
Forum: Windows CMD Shell
Topic: The page: echo.html
Replies: 3
Views: 4444

Re: The page: echo.html

OK have updated the ECHO page now, Thanks!
by Simon Sheppard
2023-Nov-08, 6:18 pm
Forum: Windows CMD Shell
Topic: the auto exec page
Replies: 7
Views: 15528

Re: the auto exec page

There could be some info about the behavior of the autostart registry keys. It should be noted, that these are used not only when a new cmd window opens. Also for drag&drop actions to a batch file. It will also be called in FOR /F loops, this can have negative effects to batch files parsing the...
by Simon Sheppard
2023-Nov-01, 9:09 pm
Forum: Windows PowerShell
Topic: Post request to rest API using PowerShell
Replies: 1
Views: 47164

Re: Post request to rest API using PowerShell

I don't know what's wrong with your script, but you might find it helpful to compare it with this example over on StackOverflow:
https://stackoverflow.com/questions/677 ... ested-json
by Simon Sheppard
2023-Nov-01, 8:57 pm
Forum: Windows PowerShell
Topic: wrapper function for ROBOCOPY – Get-FolderItem
Replies: 0
Views: 9644

wrapper function for ROBOCOPY – Get-FolderItem

This is a handy wrapper function for ROBOCOPY to allow reading very long filenames, written by Boe Prox. The original documentation is here however due to the demise of TechNet the original script download is dead, I found it on Archive.org [ x ] or you can use the copy below: Function Get-FolderIte...
by Simon Sheppard
2023-Oct-30, 7:55 pm
Forum: Windows PowerShell
Topic: PowerShell function to return Bank Holidays
Replies: 3
Views: 4475

Re: PowerShell function to return Bank Holidays

There are some APIs e.g. Nager.date which work for multiple countries, but I don't know how quickly they get updated compared to Govt. supplied APIs.