jslegers Posted February 12, 2008 Share Posted February 12, 2008 Hi, 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 Drive DevID = USBSTOR\DISK&VEN_USB&PROD_FLASH_DRIVE&REV_1.12\070B000414B0B70&0 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. Link to comment Share on other sites More sharing options...
weaponx Posted February 12, 2008 Share Posted February 12, 2008 Here are the ingredients for File Search Pie: _FileReadToArray() For...Next StringInStr() StringSplit() StringTrimLeft() / StringTrimRight() Link to comment Share on other sites More sharing options...
Uten Posted February 12, 2008 Share Posted February 12, 2008 StringRegExp is my favorite.. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now