Solved

Ghost API from VB.Net

Posted on 2013-01-13
9
566 Views
Last Modified: 2013-01-18
Hi Experts,

I want to call Norton Ghost 15.0 backup & restore module from my VB.Net application. Is there any API / Commands available for this purpose. Any sample code, about how to call Norton Ghost from VB.Net / .Net application?

Regards,
Soumen
0
Comment
Question by:Soumen-Roy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 38771798
you simply call the ghost command from your vbnet using Process object.

for instance, to back up the main hard drive:

Process.Start("c:\progra~1\symantec\Norton~1\ghostexp.exe", "-clone,mode=dump,src=1,dst=d:\backups\maindrv.gho")

Open in new window

0
 

Author Comment

by:Soumen-Roy
ID: 38771805
@sedgwick,

I installed "Norton Ghost 15.0" 30 days trial in my XP SP3 32 Bit PC. I found no ghostexp.exe in the installation directory "C:\Progra~1\Norton\...". I searched my entire HDD but no such exe exists. Am I doing any wrong?

Regards,
Soumen
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 38771871
ghost32.exe and ghost.exe are not included in the free trial only in the full licensed product.
so you basically have no way of running ghost commands from your .net app.

in case you are able to put your hands on either one, here's a link to the user reference ghost command-line switchws:

Ghost's command-line switches
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:Soumen-Roy
ID: 38771970
@sedgwick,

My friend has licensed "Norton Ghost 15.0" and I found ghost32.exe / ghost.exe nowhere in his PC also. Is it included in ver 15? I can not find those.

Regards,
Soumen
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 38771980
i meant the ghost solution, check the reply here:
http://www.symantec.com/connect/forums/does-ghost-15-include-ghost32exe-and-ghost64exe

download the trial here:
Symantec Ghost Solution Suite
0
 

Author Comment

by:Soumen-Roy
ID: 38772025
@sedgwick,

Thanx, understood. Let me check. Give me some time.

Regards,
Soumen
0
 

Author Comment

by:Soumen-Roy
ID: 38772066
@sedgwick,

Thank you, it worked, I got those two exes. But I surprised there are two exes. ghost32.exe and ghost.exe. There is no ghost64.exe available. So, no exe for 64 bit! But that link you provided

http://www.symantec.com/connect/forums/does-ghost-15-include-ghost32exe-and-ghost64exe

clearly says that 64 bit is available. Probably I am using 32 bit XP SP3, thats why 64bit exe not available. I am not sure.

Your code

Process.Start("c:\progra~1\symantec\Norton~1\ghostexp.exe", "-clone,mode=dump,src=1,dst=d:\backups\maindrv.gho")

indicating that you are suggesting to use ghostexp.exe instead of ghost32.exe. May I ask you why?

I want to do 3 thing,

1. back up system / windows file
2. back up data / folders from HDD
3. restore those from particular location

Can you please help me with these three parameters with Process.Start?

Regards,
Soumen
0
 

Author Comment

by:Soumen-Roy
ID: 38792042
I've requested that this question be closed as follows:

Accepted answer: 0 points for Soumen-Roy's comment #a38771805

for the following reason:

Excellent solution, as expected
0
 

Author Closing Comment

by:Soumen-Roy
ID: 38792043
I wanted to close it as I got an excellent solution from Sedgwick, but probably done some mistake at last time by my end. Sorry for that. Sedgwick solve my problem by providing me a nice solution.

Thanx
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question