Sub GetPrintfile()
Dim Preferences As AcadPreferences
Set Preferences = ThisDrawing.Application.Preferences
Dim sPrintfile As String
sPrintfile = Preferences.files.PrintFile
'If the string is a dot you will need to work out the full path
' sPrintfile = "C:\Documents and Settings\yadayada\Application Data\Autodesk\AutoCAD Mechanical 2008\R17.1\enu\Plotters"
Dim Fs, folder, file
'
http://www.tutorialized.com/view/tutorial/Extract-the-target-file-from-a-shortcut-file-.lnk/18349 Dim wshShell As Object, oShellLink As Object
Dim Shortcut As String, sTarget As String
Set wshShell = CreateObject("WScript.Shell")
Set Fs = CreateObject("Scripting.FileSystemObject")
Set folder = Fs.GetFolder(sPrintfile)
For Each file In folder.files
If file.Type = "Shortcut" Then
Shortcut = file.Path
Set oShellLink = wshShell.CreateShortcut(Shortcut)
sTarget = oShellLink.TargetPath
Debug.Print sTarget
End If
Next
End Sub