Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2005
    Posts
    17

    Return String not including search term

    basically, I need to somehow get the info that this dos command would normally return
    Code:
    for /F "tokens=3 delims=\:" %%d IN (reg query HKLM\SYSTEM\MountedDevices ^| FIND "\DosDevices\" ^| FIND /V "5C") DO IF EXIST "%%d:\System Volume Information" cacls "%%d:\System Volume Information" /E /G "Default User":F "Administrator":F
    Basically, it finds all hard drives on the system, through the registry (need this method because when using a card reader, windows errors if it tries to search for a file on a disk that doesnt exist)...5C is the reg_binary code that all other "drive" devices that ARE NOT hard drives (hence the /V...that means without the string 5c). Since the drive has to be NTFS, an if exist is required to determine if its NTFS or FAT32...if its NTFS, cacls is run to allow Default User and Administrator to open the folder (since its normally locked).

    So basically Im looking for a way to put this in AMS so I dont have to run that in a batch file. I have converted almost everything else to run from within AMS, but this one has me stumped because I dont know how to make it search for a string and return everything else that does not include the string.

    Any help is greatly appreciated.

  2. #2
    Join Date
    Aug 2005
    Posts
    17
    figured this out myself...so if a mod wants to delete the thread, then its cool...or if someone actually wants to know how I did it, ask and you shall receive.

Similar Threads

  1. Add to listbox from search string
    By nirus in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 02-15-2005, 08:54 AM
  2. search doesn't work in a specific instance
    By intel352 in forum Setup Factory 6.0
    Replies: 8
    Last Post: 03-27-2003, 12:56 PM
  3. Calling DLL Functions with string return values
    By DanKerns in forum Setup Factory 6.0
    Replies: 3
    Last Post: 11-08-2002, 02:44 PM
  4. string search & replace
    By antjedi in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 10-22-2002, 11:02 AM
  5. String search and replace
    By tuhkanen in forum Setup Factory 6.0
    Replies: 0
    Last Post: 04-15-2002, 07:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts