Solved

Ghost API from VB.Net

Posted on 2013-01-13
9
540 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
  • 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
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 process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

828 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