Jump to content

Recommended Posts

Posted

Hey guys.

I am trying to find a way to copy all Windows Live Messenger logs onto a USB-drive, but I've run into some problems:

The default directory for saving logs are:

%USERPROFILE%\Recieved Files\[Name of email + random numbers]\History

So i was wondering whether I could check all folders in %USERPROFILE%\Recieved Files for a subfolder named "History", and then copy that folder?

My problem is, that I'm not quite sure what the name of the email and these random numbers are, but I know for certain, that there will be a "History"-folder inside the unknown folder.

//ödipush

Posted

Allright, I've been digging further.

It seems like I can use the "DIR /S"-command to dump a list of all directories and their subfolders.

Right know I got this:

dir /S "%USERDATA%\Documents\Recieved Files">"%~d0\Backup\LogList.txt"

Now I need a way to automatically look trough "LogList.txt" and find a way to navigate to the folder that contains a folder named "History"

In Linux it would be possible to use "|grep" but it seems like that option doesn't exist in Windows?

Semirelated: Would it be possible to use wildcards in a .bat-file, and find the folder that way?

  • 1 month later...
Posted (edited)
Allright, I've been digging further.

It seems like I can use the "DIR /S"-command to dump a list of all directories and their subfolders.

Right know I got this:

dir /S "%USERDATA%\Documents\Recieved Files">"%~d0\Backup\LogList.txt"

Now I need a way to automatically look trough "LogList.txt" and find a way to navigate to the folder that contains a folder named "History"

In Linux it would be possible to use "|grep" but it seems like that option doesn't exist in Windows?

Semirelated: Would it be possible to use wildcards in a .bat-file, and find the folder that way?

Hi ödipush,

Try using the following command to search through a single file.

type <filename> | find "keywords"

Edited by Infiltrator

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...