When you fail to format a drive or memory card with an error – “Invalid media or Track 0 bad – disk unusable”, you can refer to this post to learn 6 effective measures. They will help you get rid of this trouble in quick time.

In many cases, you need to format your storage media, such as hard disk or USB flash drive or SD card, etc. However, sometimes, Windows may fail to format your media and prompt you of the error message – “Invalid media or Track 0 bad – disk unusable”. In this situation, you can read on to learn 6 effective solutions to this error.

"Invalid media or Track 0 bad - disk unusable" Error in Windows

1. Disable Write-protection

At times, this error stems from write-protection. For instance, the USB flash drive has a small switch on the side. If the switch is turned on, the USB drive is write–protected. In this case, you will fail to write to it, not to mention formatting it. So, at this time, you need to disable write-protection, namely just turn off the switch.

2. Try Other Formatting Tools

This error appears when you use “format” command line in Command Prompt in Windows system. Now that formatting fails in Command Prompt, why don’t you try the other formatting tools? Windows provides several such utilities, such as “Quick Format” in the drive’s “Properties” or “Format” in “Disk Management”.

3. Run CHKDSK to Repair Bad Sector

As the error message suggests, track 0 is bad, which refers to bad sector. As we all know, CHKDSK is an effective utility to check and repair bad sectors in Windows. Thus, you can attempt to fix this error via CHKDSK. You can either run “CHKDSK” in command prompt or use “Check Now” in drive’s “Properties”.

4. Apply Third Party Tool

Of course, CHKDSK is not 100% capable of fixing this error. Hence, provided that it doesn’t work and if affordable, you can resort to a third party fix tool. There are a plenty of such tools available in today’s market. You can select and download an experienced and reliable one.

5. Contact Vendors or Repair Specialists

Assuming that no software can help you get rid of this error and you keep failing in formatting the media, you can either ask assistance from the vendors or repair professionals. They can provide you some useful and concrete suggestions.

6. Replace the Old Media

The worst situation is that your media is indeed corrupted beyond repair. At that point, you had better replace it with a new one as soon as possible. After getting a new media, you can recover your data to it from backups, similar to PST recovery from Outlook file backups.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including corrupt mdf and outlook repair software products. For more information visit www.datanumen.com

Be the first to comment
             

If you need to count the inbox emails by sender domain, it is too stupid to figure out the domain of each email and then count one by one. It is highly suggested to utilize the 2 methods introduced in this article.

Perhaps you have received a great number of emails in Inbox. Thereby, now, you want to count them. Maybe not only do you want to get a total count, but also you would like to count the inbox emails by sender domain. Here we will introduce 2 methods to quickly get the counts by sender domain.

Method 1: Get Count after Grouping Emails by Sender Domain

  1. For a start, trigger VBA editor according to “How to Run VBA Code in Your Outlook“.
  2. Then, put the VBA code below into a module.
Sub GetSenderDomain()
    Dim objInboxItems As Outlook.Items
    Dim i As Long
    Dim objMail As Outlook.MailItem
    Dim objDomainProperty As Outlook.UserProperty
    Dim strSenderAddress, strSenderDomain As String
 
    Set objInboxItems = Outlook.Application.Session.GetDefaultFolder(olFolderInbox).Items
 
    For i = objInboxItems.Count To 1 Step -1
        If TypeOf objInboxItems(i) Is MailItem Then
           Set objMail = objInboxItems(i)
 
           Set objDomainProperty = objMail.UserProperties.Find("Domain", True)
           If objDomainProperty Is Nothing Then
              Set objDomainProperty = objMail.UserProperties.Add("Domain", olText, True)
           End If
 
           strSenderAddress = objMail.SenderEmailAddress
           strSenderDomain = Right(strSenderAddress, Len(strSenderAddress) - InStr(strSenderAddress, "@"))
 
           objDomainProperty.Value = strSenderDomain
           objMail.Save
        End If
    Next
End Sub

VBA Code - Get Sender Domain

  1. Next, open Inbox and go to “View” tab and click “View Settings”.
  2. In popup dialog, click “Group By”.
  3. Then, in the subsequent dialog box, uncheck “Automatically group according to arrangement”.
  4. After that, choose “User-defined fields in Inbox” from the dropdown list of “Select available fields from”.
  5. Later, select “Domain” in “Group items by”.Group Inbox Emails by Sender Domain
  6. Lastly, click a series of “OK” to save the changed view settings.
  7. Now, in Inbox, when hovering cursor above a group header, you can see the email count of the specific sender domain, like the following figure.Get Count in Email Group Header

Method 2: Count by Sender Domain Directly via VBA

  1. To begin with, in Outlook VBA editor, copy the following code into a module.
Sub CountInboxEmailsbySenderDomain()
    Dim objDictionary As Object
    Dim objInbox As Outlook.Folder
    Dim i As Long
    Dim objMail As Outlook.MailItem
    Dim strSenderAddress As String
    Dim strSenderDomain As String
    Dim varSenderDomains As Variant
    Dim varItemCounts As Variant
    Dim strMsg As String
 
    Set objDictionary = CreateObject("Scripting.Dictionary")
    Set objInbox = Outlook.Application.Session.GetDefaultFolder(olFolderInbox)
 
    For i = objInbox.Items.Count To 1 Step -1
        If objInbox.Items(i).Class = olMail Then
           Set objMail = objInbox.Items(i)
 
           strSenderAddress = objMail.SenderEmailAddress
           strSenderDomain = Right(strSenderAddress, Len(strSenderAddress) - InStr(strSenderAddress, "@"))
 
           If objDictionary.Exists(strSenderDomain) Then
              objDictionary(strSenderDomain) = objDictionary(strSenderDomain) + 1
           Else
              objDictionary.Add strSenderDomain, 1
           End If
        End If
    Next
 
    varSenderDomains = objDictionary.Keys
    varItemCounts = objDictionary.Items
 
    For i = LBound(varSenderDomains) To UBound(varSenderDomains)
        strMsg = varSenderDomains(i) & vbTab & varItemCounts(i) & vbCrLf & strMsg
    Next
 
    MsgBox "Inbox Email Count by Sender Domain: " & vbCrLf & vbCrLf & strMsg, vbInformation + vbOKOnly
End Sub

VBA Code - Count Inbox Emails by Sender Domain

  1. Eventually, press “F5” key button.
  2. At once, you’ll receive the message prompting of the email counts by sender domain, as shown in the screenshot below.Message Prompting Email Counts

Escape from PST Data Loss

Since Outlook PST file contains all the items in your Outlook, you definitely don’t want to lose it. Hence, you have to firstly back up the file at regular intervals. Also, you should know how to find and launch Scanpst to repair Outlook file. Of course, since the inbuilt tool is unable to make effects in many cases, you had better get hold of a powerful external tool, such as DataNumen Outlook Repair.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including mdf recovery and outlook repair software products. For more information visit www.datanumen.com

Be the first to comment
             

This post will teach you a method to quickly find all rules which configure Outlook to auto forward emails to a specific person.

If you’ve created a great amount of rules in Outlook and now need to make some modifications on specific rules, such as the rules that auto forward emails to a specific person, since Outlook doesn’t provide features to search rules, you have to manually find the specific rules. It can be considerably troublesome in face of multiple rules. Therefore, here we’ll teach  a quick means to find all the rules that auto forward emails to a specific person.

Quickly Find All Rules that Auto Forward Emails to a Specific Person

  1. At the outset, launch Outlook application.
  2. Then, get access to VBA editor according to “How to Run VBA Code in Your Outlook“.
  3. Next, put the following code into an unused module.
Sub FindAllRules_AutoForwardEmailsToSpecificPerson()
    Dim strFind As String
    Dim objRules As Outlook.Rules
    Dim i As Long
    Dim objRule As Outlook.Rule
    Dim objRuleAction As Outlook.RuleAction
    Dim objForwardAction As Outlook.SendRuleAction
    Dim objFWActionRecipients As Outlook.Recipients
    Dim objFWActionRecipient As Outlook.Recipient
    Dim strFWRecipients As String
 
    'Enter the email address of the specific person
    strFind = InputBox("Specify the email address:", "Find", "johnsmith@datanumen.com")
 
    If strFind <> "" Then
       Set objRules = Outlook.Application.Session.DefaultStore.GetRules
 
       For i = objRules.Count To 1 Step -1
           Set objRule = objRules(i)
 
           strFWRecipients = ""
           For Each objRuleAction In objRule.Actions
               If (objRuleAction.ActionType = olRuleActionForward) Or (objRuleAction.ActionType = olRuleActionForwardAsAttachment) Then
 
                  Set objForwardAction = objRuleAction
                  Set objFWActionRecipients = objForwardAction.Recipients
 
                  For Each objFWActionRecipient In objFWActionRecipients
                      strFWRecipients = objFWActionRecipient.Name & " - " & objFWActionRecipient.Address & " ; " & strFWRecipients
                  Next
               End If
           Next
 
           If InStr(strFWRecipients, strFind) > 0 Then
              objRule.Enabled = True
              objRules.Save
           ElseIf strFWRecipients = "" Then
              objRule.Enabled = False
              objRules.Save
           End If
       Next
    End If
End Sub

VBA Code - Quickly Find All Rules that Auto Forward Emails to a Specific Person

  1. After that, run this macro via either pressing “F5” key or clicking the “Run” in toolbar.
  2. Then, you need enter the specific person’s email address in the small dialog box.Specify Person
  3. Finally, after the macro finishes, you can go to “File” menu and click “Manage Rules & Alerts” button.
  4. In the new “Rules and Alerts” window, as you can see, only the rules, which auto forward mails to the specific person, are enabled with a tick. And the other rules are disabled, like the following screenshot.Only Specific Rules Are Enabled

When Outlook Data Is Virus-infected

Similar to other ordinary files, Outlook PST file can be attacked by viruses and malware easily. It is because that email borne viruses are considerably common. For instance, once you download any malicious email attachments, your Outlook file can be corrupted. At that point, you have no choice but to take aid of a potent PST repair tool, such as DataNumen Outlook Repair.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair mdf and outlook repair software products. For more information visit www.datanumen.com

Be the first to comment