Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Ghost API from VB.Net

Posted on 2013-01-13
9
Medium Priority
?
593 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:
Meir Rivkin earned 2000 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:Meir Rivkin
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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:Meir Rivkin
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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…
Suggested Courses

885 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