2

You want to put many commands in a row and call it from a batch file? Not only will your method not work because you can't put that many characters in one command in a batch file, but its also not possible to chain them that easily. The obvious solution here is to either only use PowerShell or put all the commands in a .ps1 file and change your powershell ...


2

This question has already been answered on stackoverflow here. A shameless copy/paste in case that link should ever die: Open a command prompt and use these commands to first rename and then delete the NUL file: C:\> rename \\.\C:\..\NUL. deletefile.txt C:\> del deletefile.txt Using the \\.\ prefix tells the high-level file I/O functions to pass the ...


2

You can create a file path and filename before calling the DownloadFile() method easily using Join-Path. Something like powershell.exe -command "& {$fileOut = Join-Path -Path 'C:\location' -ChildPath ('APIcall_{0:yyyy-MM-dd HH_mm_ss}.xml' -f (Get-Date)) $client = new-object System.Net.WebClient ...


1

Preliminary notes This answer is for NBSPs encoded as \302\240 (in octal representation). \302\240 is for Unicode. In iso8859-1 it's sole \240 (\xa0, see this answer). Adjust solutions if needed. My solutions affect interactive usage that involves Readline. They don't fix unwanted NBSPs in scripts. If you need to fix a script, use sed or whatever to ...


1

The end of a tar archive is marked by two consecutive zero-filled 512-byte records. When reading from stdin, tar should stop after reading the two zero-filled records, so data that follows (if any) can be read by the next tool. If the data that follows is another tar archive and the next tool is another tar then the tool will work. To extract N concatenated ...


1

Guss & EvgeniySharapov really is the easiest approach. Download fonts Unzip files Open Powershell and navigate to the target directory Execute code in target directory to recursively install fonts $fonts = (New-Object -ComObject Shell.Application).Namespace(0x14) Get-ChildItem -Recurse -include *.ttf | % { $fonts.CopyHere($_.fullname) }


Only top voted, non community-wiki answers of a minimum length are eligible