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.

Shell Scripting

Featured Replies

So I've made a batch file to search the entire computer utilizing xcopy and copy these certain types of files to an external HDD.

Is there any way to force xcopy to just dump the files I want -without- building the directory structure?

I just want pictures in a pictures folder, docs in a doc folder, etc.

I don't want to have to sort through WINDOWS\System32\bla.jpg and Local Settings\App Data\Microsoft\<Whatever>\bla2.jpg to figure out what's junk and what's not. Here's the contents of my batch file so far.

@echo off

::BANNER
echo ==============================================================
echo ============== ==================
echo ============== ExtractIT v1.0 by ==================
echo ============== ==================
echo ==============================================================
echo.
echo.

::CONFIGURATION
set extractpoint="f:\EXTRACT"


::PICTURE EXTRACTION
echo Performing picture extraction...
echo.
echo.
xcopy /I /S /G /H /Q /Y /C c:\*.jpg %extractpoint%
echo.
echo.
echo JPG files extracted.
xcopy /I /S /G /H /Q /Y /C c:\*.jpeg %extractpoint%
echo.
echo.
echo JPEG files extracted.
xcopy /I /S /G /H /Q /Y /C c:\*.bmp %extractpoint%
echo.
echo.
echo BMP files extracted.
echo.
echo.
echo Picture extraction complete.
echo.
echo.
echo Performing document extraction...
xcopy /I /S /G /H /Q /Y /C c:\*.doc* %extractpoint%
echo.
echo.
echo Word document extraction complete.
xcopy /I /S /G /H /Q /Y /C c:\*.xls* %extractpoint%
echo.
echo.
echo Excel spreadsheet extraction complete.
xcopy /I /S /G /H /Q /Y /C c:\*.pdf %extractpoint%
echo.
echo.
echo Adobe PDF document extraction complete.
echo.
echo.
echo Document extraction complete.
echo.
echo.
echo Extraction complete, have a nice day! =)
echo.
echo.

::RESTORE ORIGINAL CONFIGURATION
set extractpoint=

pause


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.