My Road to Digital Forensics Excellence

Archive for November, 2010

OutsideIn Part4

Posted by Paul Bobby on November 2, 2010

Just a quick addendum.

I ran the OutsideIn-PDF tool to produce PDFs (for further combination in to a PDF portfolio) and ran in to filename problems with my batch files – when those filenames have spaces in them.

Here is some VB script that can be executed from the current folder that replaces all spaces with underscores. (Shamelessly ripped from some place in Google Cache land).

dim objFileSys, file, folderName, folderObj, fileColl, objRegEx, newFile

set objFileSys = CreateObject("Scripting.FileSystemObject")
folderName = "."

set folderObj = objFileSys.GetFolder(folderName)
set fileColl = folderObj.Files
set objRegEx = new RegExp

objRegEx.Pattern = " "
objRegEx.Global = true 

for each objFile in fileColl
 newFile = objRegEx.Replace(objFile.Name, "_")
 objFileSys.MoveFile objFile, folderName & "\" & newFile



Posted in Forensics | Tagged: | 1 Comment »