Solved

Ghost API from VB.Net

Posted on 2013-01-13
9
513 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
 

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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now