Monday, April 22, 2024

New Command Line Exe : Unclip - Copy Unicode text to/from Windows clipboard

I built this utility for a project, if you want it free copy for personal use email me at . It's an upgrade to existing clip command. 

Happy Earth Day, do some good. OceanHero - The search that saves the oceans


UNICLIP v1.0.0422.259 Help

DESCRIPTION
Copies Unicode text result of any command to/from the Windows clipboard.

LIMITATIONS
There is still VERY limited support for Unicode in the CMD shell, piping, redirection and most commands are still ANSI only!
Run cmd.exe /U Causes the output of internal commands to a pipe or file to be in Unicode.

REQUIREMENTS
32-bit app which requires .NET Framework 4 Client Profile, so this can run on Win 7+.

SYNTAX
UNICLIP Dump contents
UNICLIP /h or /? Help
UNICLIP /notepad Open in Notepad
UNICLIP /fit Reflow contents to fit current console window width

command | UNICLIP Copies contents of command to Windows clipboard via uniclip.
command < UNICLIP Copies contents of Windows clipboard into command via uniclip.

USAGE
uniclip

Writes the current Unicode text contents of the Windows clipboard to the console.

NOTE:
Default CMD.exe may not be set to display Unicode characters.
To to display Unicode, change console code page using 'chcp 1200' Unicode for Win10+. Try
'chcp 65001' UTF-8 for Win 7+.
See
https://learn.microsoft.com/en-us/dotnet/api/system.text.encodinginfo.getencoding?view=netframe
work-4.0

Also, you can run cmd.exe /U Causes the output of internal commands to a pipe or file to be
Unicode.


ARGUMENTS
No arguments recognized. All argument results in Help.

FLAGS
/h|/help Help
/notepad Opens Notepad with current clipboard contents
/fit Formats output to fit current console width

EXAMPLES

DIR | UNICLIP

Sends a Unicode directory listing to the clipboard.

UNICLIP < file.txt

Sends Unicode text file.txt onto the clipboard.

UNICLIP /fit

Writes the current Unicode text contents of the Windows clipboard to the console formatted to
current width of executing console.

UNICLIP /notepad

Sends current clipboard (Unicode text) into a new instance of Notepad.

BONUS
No file used; CTRL-V message sent to Notepad instance directly. Title change in Notepad to reflect paste success.



COPYRIGHT © 2024 Mark Pahulje (https://github.com/markpahulje/unclip) Win 7+, launch into Notepad,
reflow
Copyright © 2019 Aaron Meyers (https://github.com/bluemarsh/utf8clip) non-Win 7 compliant, not
working properly

LICENSE
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the 'Software'), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



Friday, April 19, 2024

Windows CMD Line - Directory listing and opening in notepad in one line working commands

DOS Command Line - Directory Listing and open in notepad in one line

Here are common examples on Stack OverFlow to opening a directory listing into notepad, but they don't work. 

dir > notepad 
dir | notepad 

Here's a fully working way to open directory listing into Notepad. You have to create a file. 

dir > dir.txt && notepad dir.txt

Or create file in temp directory (C:\Users\{Username}\AppData\Local\Temp)

dir > %temp%\dir.txt && notepad %temp%\dir.txt


Hacking

Here's a way to create a file and delete it, but it locks the cmd shell, until notepad executable is closed. In other words, you cannot issue command in the cmd shell, because handle is being used by Notepad. Once closed the > (command prompt) will return. Then deletes file %1. Does not appear in Recycle bin, but can be recovered by unerase programs.

dir > %1 | notepad %1 && del %1




You automatically close the calling cmd shell using the exit command. 
 
dir > %1 | notepad %1 && del %1 && exit

Wednesday, April 3, 2024

Amazon Scam Warning : One of the better proactive corporate communications

Information on the latest scams: learn how to identify and avoid them

Over two-thirds of all Amazon impersonation scams reported by our customers globally in 2023 claimed to be related to order or account issues.

At Amazon, we constantly leverage the feedback we receive through customer reports and our own proactive efforts to innovate and take down scammers as fast as possible. In 2023, we initiated takedown of more than 40,000 phishing websites and 10,000 phone numbers impersonating Amazon. However, the fight against scammers is never over. Below you’ll find information on the latest trends and information on how to identify and avoid these scams.

Fake order issue scams
    These are unexpected calls, texts, and emails that often refer to an unauthorized order and ask you to act urgently to confirm or cancel the purchase by providing personal or payment information.

    For any question related to an order, always check your order history on Amazon.ca or via the “Amazon Shopping” app. Only legitimate purchases will appear in your order history. Customer Service is available 24/7 to help with any questions you may have.

Fake account issue scams
    Scammers pose as Amazon and send calls, texts, and emails indicating there is unauthorized activity on your account and that your account will be suspended or locked. They try to lure you to provide personal or payment information or sign-in credentials.

    Do not click on any links or provide your information without authenticating the email or verifying the link. Visit the Message Centre which displays a log of authentic communications sent from Amazon.


Here are some important tips to identify scams and keep your account and information safe:

1. Trust Amazon-owned channels.
    Amazon will never ask you to download any software in order to receive assistance. Always go through the Amazon mobile app or website when seeking customer service, tech support, or when looking to make changes to your account.

2. Be wary of false urgency or secrecy.
    Scammers might try to create a sense of urgency to persuade you to do what they're asking. Be wary any time someone tries to convince you that you must act now or cannot discuss with trusted individuals.

3. Never pay over the phone.
    Amazon will never ask you to provide payment information, including gift cards for products or services over the phone. Check your financial institution records for unknown or suspicious account activity and seek the advice of your financial institution directly.

4. Verify links first.
    Review the link for misspellings or repeated characters. Legitimate Amazon websites contain "amazon.ca" or "amazon.ca/support." Go directly to our website when seeking help with Amazon devices/services, orders or to make changes to your account.

5. Verify email senders.
    Legitimate Amazon emails contain “@amazon.ca”. In your web browser, hover over the display name under “From” to see full sender address. Look for misspellings or added or substituted characters. Visit the Message Centre to view authentic messages from Amazon.

For more information on how to stay safe online, visit Security & Privacy on the Amazon Customer Service page.

If you receive communication — a call, text, or email — that you think may not be from Amazon, please report it to us at amazon.ca/reportascam.

To review or respond to emails from Amazon, visit the Message Centre on our website.

Amazon Message Centre