473,327 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

cluster files in c#


Hello,

Can I use tar and untar in c#? And if I can how exactly? (didn't find
any code samples)

Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 5 '08 #1
5 1649
tar and untar are executables, correct? In which case you can use the
System.Diagnostics.Process class and its Start() method to initiate a
process (either of them) with the necessary command line arguments.
--
Stanimir Stoyanov
http://stoyanoff.info

"csharpula csharp" <cs*******@yahoo.comwrote in message
news:e0**************@TK2MSFTNGP03.phx.gbl...
>
Hello,

Can I use tar and untar in c#? And if I can how exactly? (didn't find
any code samples)

Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 5 '08 #2
But how can I get the tar execuable? Which using should I do in c# for
that?

Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 5 '08 #3
Scratch that--there appears to be a better and open-source solution written
in managed code, #ZipLib which you can use for this purpose
(http://www.icsharpcode.net/OpenSource/SharpZipLib/). There is support for
various compression methods including Tar.
--
Stanimir Stoyanov
http://stoyanoff.info

"csharpula csharp" <cs*******@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
But how can I get the tar execuable? Which using should I do in c# for
that?

Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 5 '08 #4


But if I want to use only native libraries without third party - can I
do it in c# (I mean tar and gzip)?

Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 5 '08 #5
If you mean using the .NET Framework you can't but the whole #ZipLib
implementation is written in C#. This means that if you do not want to
include the library in your project output you can just include the whole
source code to your project.
--
Stanimir Stoyanov
http://stoyanoff.info

"csharpula csharp" <cs*******@yahoo.comwrote in message
news:OL**************@TK2MSFTNGP06.phx.gbl...
>

But if I want to use only native libraries without third party - can I
do it in c# (I mean tar and gzip)?

Thank you!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 5 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Leonardo C | last post by:
Hi: I'm trying to setup a MS Cluster but I don't know if it is feasible to configure it in the way I think. I have two machines with win2k server and MSSQL-2000 one of them is currently...
1
by: Steve | last post by:
I'm trying to build a new cluster with SQL Server 2K Enterprise on Windows 2003 server. When I run the install, I tell it to put the program files on the D: (local) drive and the data/log files on...
8
by: btober | last post by:
MY version 7.3 setup uses the default cluster data directory of /var/lib/pgsql/data and I'm aware that one suggested alternative is /usr/local/pgsql/data In my reading of server setup...
17
by: Peter Ericsson | last post by:
Does anyone know if Microsoft plans to implement an C# (.net) API for MS Cluster like the one in C++? Or has someone else written a C# wrapper for the C++ API?
1
by: Programmer | last post by:
Well here is my problem I have a web application running in 2 web servers and I have also a cluster system. I want using the web application to write some files in the cluster discs. So I...
4
by: skavan | last post by:
Use Case: We have music files that describe, in their filename, attributes of the music. We do not know a general pattern that applies to all filenames -- but we do know that filenames that are...
4
by: ThunderMusic | last post by:
Hi, We have many servers setup as a cluster. When one server crashes, another one take the relay... We want to know if it's possible (I suppose it is) to make a Windows service developed with .NET...
1
by: Mark D Powell | last post by:
I have a production failover cluster running SQL Server 2000 at SP3 that I want to upgrade to SP4. I do not have a test failover cluster to test with so I need the install on the primary server to...
3
by: Simon | last post by:
Hi All, I'm hoping someone will have some words of wisdom for me regarding MS Clustering on Windows 2003. I have a service that runs on a cluster. During invocation it's supposed to...
1
by: =?Utf-8?B?S2Vubnk=?= | last post by:
I have one bat file that contains a command to startup Java Program. Then, I would like to create a cluster job to call the bat file. In case of one computer is down, another computer can also call...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.