Jump to content
Sign in to follow this  

Searching in text file...

Recommended Posts



I'm making a file usbdrives.txt with a script : The file looks like this :

ListUsbDrives V1.7.2

Lists attached USB drives and their USB port names for USBDLM

Freeware by Uwe Sieber - www.uwe-sieber.de

Current User = JSL

Member of groups = Debugger Users, Gebruikers foutopsporing, Administrators

MountPoint = U:\

Volume Label = ---

Volume Size = 130 MB (FAT32)

Volume Name = \\?\Volume{47ec7e40-d2e0-11db-9000-00170845b81d}\

MultiCardReader = no

NoMediaNoLetter = yes

Drive Type = removable drive

Bus Type = USB

Device Types = HotPlug


Ctrl DevID = USB\VID_1005&PID_B113\070B000414B0B70

Volume DosDevName = \Device\Harddisk1\DP(1)0-0+e

Disk DosDevName = \Device\000000ca

Device Number = 1

Removal Policy = surprise removal

Partition Number = 1 of 1

Friendly Name = USB Flash Drive

USB Version = 2.0 (high speed)

USB Friendl. Name = USB Flash Drive

USB Serial = 070B000414B0B70

USB Port Name = 5-5

Is it possible to search in this file. For example Mountpoint or Friendly Name. I'm making a script for safe removal of USB drives.

Share this post

Link to post
Share on other sites

Here are the ingredients for File Search Pie:





StringTrimLeft() / StringTrimRight()

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.