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.

[CMD] Move all non-links

Featured Replies

I've got another small batch file job that I'm hoping people can help me out with.

I'm trying to create a batch file that will take all the non-links from the desktop and move them to a folder, including directories.

This is what I've got so far...

@echo off&setlocal enableextensions

set src=C:\Documents and Settings\Administrator\Desktop
set dest=C:\Documents and Settings\Administrator\My Documents\Desktop

pushd %src%

for /f "tokens=*" %%a in ('dir/b/a') do (
   IF /I %%~xa NEQ .lnk (
robocopy %%a %dest% /S /MOVE>nul
   )
)
popd&endlocal&goto :eof

When I run this... nothing happens...

Any ideas/suggestions would be appreciated. :)


You can just use the exclude option in robocopy, for example:

@echo off

set src=C:\Documents and Settings\Administrator\Desktop
set dest=C:\Documents and Settings\Administrator\My Documents\Desktop

robocopy "%src%" "%dest%" /copyall /mov /xf *.lnk /r:30 /w:10>nul

goto :eof

<Edit>

Replaced my test dirs with your %src% and %dest%

</Edit>

Edited by Yzöwl

  • Author

That would probably work... :)

I'll test it out tomorrow. Thanks!

  • Author

Yup... it's included by default in XP, but not in 2K.

what's included in XP? :}

'robocopy' is not recognized as an internal or external command,

operable program or batch file.

  • Author
what's included in XP? :}
'robocopy' is not recognized as an internal or external command,

operable program or batch file.

Wierd... I've got it on my laptop and I haven't installed any extra packs... :wacko:

Maybe it's XP Pro? :unsure:

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.