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.

Cleanup.cmd not working

Featured Replies

Hi Everyone!

I've been sitting with my Cleanup file for a while now and I can't seem to figure out what's wrong with it. It keeps complaining that it cannot find the specified file. I've tried various syntaxes and none of them works. This is driving me nuts. Could someone please help me out here?

This is a Syntax that gets the "Cannot find the specified file" answer returned:

del %UserProfile%\Desktop\VLC media player.lnk

Cheers,

Marthax

Since your filename has spaces in it maybe you should use quotations around the path?

"%UserProfile...blabla"

try

del "%UserProfile%\Desktop\VLC media player.lnk"

It says it cannot find the file because it halts after VLC and there is no file in the desktop folder called VLC.

You may also be better off checking if it exists first too, not that the code given will not work just better practice. Also you could add the /Q (quiet) switch.

if exist "%UserProfile%\Desktop\VLC media player.lnk" del /q "%UserProfile%\Desktop\VLC media player.lnk"

You can use vbs to remove the shortcuts.

This will remove all shortcuts on the desktop.

If you want to remove a specific short cut

then change this ( AP & "\Desktop\ *.lnk")

to this ( AP & "\Desktop\ NAME-OF-THE-SHORTCUT.lnk")

Then save this as RemoveSC.vbs

ON ERROR RESUME NEXT

Dim Shell : Set Shell = WScript.CreateObject("WScript.Shell")

Dim AP : AP = Shell.ExpandEnvironmentStrings("%AllUsersProfile%")

Set fso = CreateObject("Scripting.FileSystemObject")

fso.DeleteFile( AP & "\Desktop\ *.lnk")

  • Author

that was it :). Thank you all for the replies.

Cheers,

Marthax

Try %AllUsersProfile% and yes put quotes around the whole thing.

Depending on the program sometime the shorcuts get installed under the userprofile and sometime under the allusersprofile.

:)

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.