Search found 170 matches
- 2023-Nov-27, 10:51 pm
- Forum: Windows CMD Shell
- Topic: 8.3 filename short and windows 11
- Replies: 1
- Views: 1022
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...
- 2023-Nov-13, 1:09 am
- Forum: Windows CMD Shell
- Topic: the auto exec page
- Replies: 7
- Views: 10543
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...
- 2023-Nov-10, 6:11 pm
- Forum: Windows CMD Shell
- Topic: The page: echo.html
- Replies: 3
- Views: 1307
Re: The page: echo.html
Ah good catch, I changed that now. Thanks again.
- 2023-Nov-10, 1:04 pm
- Forum: Windows CMD Shell
- Topic: the auto exec page
- Replies: 7
- Views: 10543
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...
- 2023-Nov-08, 6:48 pm
- Forum: Windows CMD Shell
- Topic: The page: echo.html
- Replies: 3
- Views: 1307
Re: The page: echo.html
OK have updated the ECHO page now, Thanks!
- 2023-Nov-08, 6:18 pm
- Forum: Windows CMD Shell
- Topic: the auto exec page
- Replies: 7
- Views: 10543
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...
- 2023-Nov-01, 9:09 pm
- Forum: Windows PowerShell
- Topic: Post request to rest API using PowerShell
- Replies: 1
- Views: 43058
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
https://stackoverflow.com/questions/677 ... ested-json
- 2023-Nov-01, 8:57 pm
- Forum: Windows PowerShell
- Topic: wrapper function for ROBOCOPY – Get-FolderItem
- Replies: 0
- Views: 1487
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...
- 2023-Oct-30, 7:55 pm
- Forum: Windows PowerShell
- Topic: PowerShell function to return Bank Holidays
- Replies: 3
- Views: 1387
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.
- 2023-Oct-30, 7:39 pm
- Forum: Windows PowerShell
- Topic: PowerShell function to return Bank Holidays
- Replies: 3
- Views: 1387
Re: PowerShell function to return Bank Holidays
German bank holidays function Get-GermanHoliday { param ( [int] $Year = (Get-Date).Year, [ValidateSet("BB","BE","BW","BY","HB","HE","HH","MV","NATIONAL", "NI","NW","RP","SH&q...