Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Get filename when right click

Featured Replies

I'm trying to use a CMD to do things when I right click on a file but how to get the filename of the file that I click on?

eg:

- I put a utility name base64.exe in windows\system32

- I right click on a file name 01.base64 reside in any folder and choose "Base64 Decode" (which is done through registry entry below)

HKLM, "%CLASS%\.Base64\shell\Base64Dec", , , "Base64 Decode"
HKLM, "%CLASS%\.Base64\shell\Base64Dec\command", , , "base64.cmd"

The base64.cmd contains the following code:

@echo off
:BaseDec
Mode 80,12 & Color f1
ECHO Please input the desire new output filename including the extention.
SET NewName=
SET /P NewName=Please input the desire new output filename including the extention.
base64 -d "%1" "%NewName%"
EXIT

:Base64En
base64 -e "%1" "%1.Base62"
EXIT

As you all can see, the %1 does not work here. Please help!

HKLM, "%CLASS%\.Base64\shell\Base64Dec", , , "Base64 Decode"
HKLM, "%CLASS%\.Base64\shell\Base64Dec\command", , , "base64.cmd"

I may have the syntax off slightly but perhaps you need a %1 in there:

HKLM, "%CLASS%\.Base64\shell\Base64Dec", , , "Base64 Decode"
HKLM, "%CLASS%\.Base64\shell\Base64Dec\command", , , "base64.cmd %1"

  • Author

Thanks! But how do I go to a certain LABEL in this base64.cmd file from the registry?

I'm guessing that you'll need to create more logic in your batch file for it to do what you want it to do.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.