473,419 Members | 4,195 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,419 software developers and data experts.

Finding out the active Unix shell

Hi,

It's seems that csh and tcsh acts a bit different when handling
special characters in quotes.
i.e: if i'll supply my program with the following arguments: -winpath
"c:\\temp\\"
tcsh will take it as -winpath "c:\temp\"
and csh will take it literally (with the double-slashes).

Is there a way for me to know what shell is currently running my
program, so I could fit a different code for each shell ?

Jun 7 '07 #1
21 2970
On 7 Jun, 08:22, Tom Gur <gur....@gmail.comwrote:
Hi,

It's seems that csh and tcsh acts a bit different when handling
special characters in quotes.
i.e: if i'll supply my program with the following arguments: -winpath
"c:\\temp\\"
tcsh will take it as -winpath "c:\temp\"
and csh will take it literally (with the double-slashes).

Is there a way for me to know what shell is currently running my
program, so I could fit a different code for each shell ?
Not in the C language per se.

I suggest you ask the question in comp.unix.programmer.

Jun 7 '07 #2
"Tom Gur" <gu*****@gmail.comschrieb im Newsbeitrag
news:11**********************@o5g2000hsb.googlegro ups.com...
Hi,

It's seems that csh and tcsh acts a bit different when handling
special characters in quotes.
i.e: if i'll supply my program with the following arguments: -winpath
"c:\\temp\\"
tcsh will take it as -winpath "c:\temp\"
and csh will take it literally (with the double-slashes).

Is there a way for me to know what shell is currently running my
program, so I could fit a different code for each shell ?
What has this got to do with C and why do you post this question in
comp.lang.c?

the environment variable $SHELL might help. But you may also check in
comp.unix.programmer

Bye, Jojo
Jun 7 '07 #3
Tom Gur <gu*****@gmail.comwrites:
It's seems that csh and tcsh acts a bit different when handling
special characters in quotes.
[snip]

Ask in comp.unix.shell.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 7 '07 #4
Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.

Thanks

Jun 7 '07 #5
On 7 Jun, 10:07, Tom Gur <gur....@gmail.comwrote:
Maybe I wasn't clear.
Or maybe you weren't listening.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.
In the C language as such there won't be any such thing.

In the Unix APIs there may be an appropriate function but that's not
in the remit of this group.

You'll get better answers in a group relating to Unix - most likely
comp.unix.programmer.

<OffTopic>
Unix has getenv() but the $SHELL variable does not seem to be altered
if a new shell is launched.

And as to why anyone would use C shells, I despair...
</OffTopic>

Jun 7 '07 #6
In article <11*********************@q75g2000hsh.googlegroups. com>,
Tom Gur <gu*****@gmail.comwrote:
>Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
You're still not very clear. How are you running the program?
>I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.
You can use the C function getenv(), but since you talk about "the
agent's machine" and "the account that runs the agent" it sounds
as if testing an environment variable in the server isn't going to
do much good. Perhaps you could have the server run a small program
on the other machine that does 'getenv("SHELL")'.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Jun 7 '07 #7
ma**********@pobox.com wrote:
On 7 Jun, 10:07, Tom Gur <gur....@gmail.comwrote:
I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.

In the C language as such there won't be any such thing.
Yesno.
In the Unix APIs there may be an appropriate function but that's not
in the remit of this group.

You'll get better answers in a group relating to Unix - most likely
comp.unix.programmer.

<OffTopic>
Not yet.
Unix has getenv()
Actually, that's an ISO C function, but...
but the $SHELL variable does not seem to be altered if a new shell is launched.
....C makes no guarantees about which variables are available, let alone
what they mean.

So the OP could easily use a C function, but _how_ he should use this
function does depend on the OS he uses (and frustratingly, could even
depend on the shell he uses... so to find out which shell he has, he
first has to find out which shell he has. Nice.)

Richard
Jun 7 '07 #8
ma**********@pobox.com wrote, On 07/06/07 10:20:
On 7 Jun, 10:07, Tom Gur <gur....@gmail.comwrote:
>Maybe I wasn't clear.

Or maybe you weren't listening.
>I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
>I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.

In the C language as such there won't be any such thing.

In the Unix APIs there may be an appropriate function but that's not
in the remit of this group.

You'll get better answers in a group relating to Unix - most likely
comp.unix.programmer.

<OffTopic>
Unix has getenv() but the $SHELL variable does not seem to be altered
if a new shell is launched.
getenv is actually part of the C standard, so the ability to use it to
access environment variable is topical here. However, what environment
variables are available and what they do is not topical, so you are
correct that comp.unix.programmer is a better place for the OP to ask.
And as to why anyone would use C shells, I despair...
</OffTopic>
Possibly because they like them :-)
--
Flash Gordon
Jun 7 '07 #9
On Thu, 07 Jun 2007 09:07:54 -0000, in comp.lang.c , Tom Gur
<gu*****@gmail.comwrote:
>Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
The answer is unfortunatly still the same. You need to ask the
specialists in your os and /or compiler, since C itself has no
facilities for doing this. Most probably there's a function called
getenv() or something similar provided by your platform.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jun 7 '07 #10
On Thu, 07 Jun 2007 13:42:50 +0100, in comp.lang.c , Mark McIntyre
<ma**********@spamcop.netwrote:
>On Thu, 07 Jun 2007 09:07:54 -0000, in comp.lang.c , Tom Gur
<gu*****@gmail.comwrote:
>>Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.

The answer is unfortunatly still the same. You need to ask the
specialists in your os and /or compiler, since C itself has no
facilities for doing this. Most probably there's a function called
getenv() or something similar provided by your platform.
er... getenv() is of course Standard, though whether it will return
anything useful on your platform is what you'd need to ask the
specialists in your flavour of unix.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jun 7 '07 #11
Tom Gur wrote:
>
Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.
That is not a language problem. It is a system program. Go where
your system is known.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 7 '07 #12
Richard Bos wrote:
ma**********@pobox.com wrote:
On 7 Jun, 10:07, Tom Gur <gur....@gmail.comwrote:
>>I was wondering whether you know any kind of function that can
get environment variables - so I'll be able to check the value
of $SHELL in the agent's machine.

In the C language as such there won't be any such thing.

Yesno.
>In the Unix APIs there may be an appropriate function but that's
not in the remit of this group.

You'll get better answers in a group relating to Unix - most
likely comp.unix.programmer.

<OffTopic>

Not yet.
>Unix has getenv()

Actually, that's an ISO C function, but...
>but the $SHELL variable does not seem to be altered if a new
shell is launched.

...C makes no guarantees about which variables are available, let
alone what they mean.

So the OP could easily use a C function, but _how_ he should use
this function does depend on the OS he uses (and frustratingly,
could even depend on the shell he uses... so to find out which
shell he has, he first has to find out which shell he has. Nice.)
Who says ANY shell even exists? Not the C standard.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com

Jun 7 '07 #13
In article <11*********************@q75g2000hsh.googlegroups. com>,
Tom Gur <gu*****@gmail.comwrote:
>Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
Are the agent and server even running on the same system? If so then
[OT]
you may be able to find out the client's username and use system-
specific functions to request information about the login shell
registered for the user in the user's password control entry;
unfortunately, the shell the user logs in to is not necessarily
the shell the user is running at the time they invoke the agent
[/OT]

But what does the server care what shell the agent is running under?
If the *server* executes system(), that is going to be in the context
of the *server's* process. In order to get the agent to execute system()
you would have to send something information back to the agent
that the agent knows to interpret to invoke the appropriate system
call. But you've already said that the agent is running Java, no C,
and if you want to find out about the Java equivilent of system(),
you will need to look in Java documentation or in a Java newsgroup.

>I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.
[OT]
There is no TCP/IP mechanism that would allow a server to
inquire about the environment variables of the process at the far
end of a network socket, so if this is a client-server architecture,
the only thing you can do is have the server send a message to the
client (agent) that the agent knows to turn in to a request to send
back the environment information; but you've said the agent is
running in Java, not C, so if you are programming the agent you would
need to find out what the Java equivilent of getenv() is.

If this is not TCP/IP client/server (e.g., if this is running through
pipes or unix domain sockets) with both server and agent on the same
machine, your options are system-dependant. I don't know what can
be done in Windows. In the System V Unix family, there is no (or at least
traditionally was no) mechanism to find out about the environment
of another process; I don't know about the historical BSD family of
Unices. In -some- Unix or Unix-like operating systems (SGI IRIX,
Linux I think, possibly others), a process which starts another
process has (clumsy) mechanisms available to get at the memory
and environment of the child process; these mechanisms may also
be available to processes running under high levels of authorization
(e.g., 'root') with respect to arbitrary other processes on the same
system. But if you are thinking about anything even close to
this, then you are solving completely the wrong problem!
[/OT]
Why not solve the problem a completely different way?

1) use tmpname() to generate a temporary file name (this is ANSI C).

2) strcat() that filename onto the end of the string "echo \\\\ "
(this is ANSI C).

3) Use system(NULL) to find out whether there is a shell there at all.
(this is ANSI C).

4) If there is a shell, system() the string generated in step (2).
ANSI C promises you can submit the string; it doesn't make any promises
about how the shell will interpret the string. check the return value of
the system() command; if it didn't work, then this mechanism cannot be
used so break out of this sequence.

5) try to open and read the filename generated in (1). If you are able
to open it and able to read it, then check to see how many \ it contained.
If it contains a single \ then you know that whatever shell is being
used is translating \\ into \ ; if the file contains two \ then you
know that the shell is treating each \ literally.
Close and remove the temporary file afterwards.

This arrangement won't work on -every- machine, especially as not
every machine will have an 'echo' shell command, but it will work on
a wide variety of machines and will directly answer the question of
whether the shell is preserving all \ or not, instead of trying to
answer the round-about question of which shell it is and having an
internal (necessarily incomplete) table of shell names and expected
behaviours, together with the risk that a user might have configured
the shell to act differently than you expect.
--
Programming is what happens while you're busy making other plans.
Jun 7 '07 #14
In article <f4*********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.cawrote:
>In article <11*********************@q75g2000hsh.googlegroups. com>,
Tom Gur <gu*****@gmail.comwrote:
>>Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.

Are the agent and server even running on the same system? If so then
[OT]
You guys need to work on your reading comprehension skills.

I believe the issue is that different shells parse user input
differently. I.e., for a given sequence of keystrokes (that the user
types in order to invoke the program), the results (i.e., what the
application sees in argv[]) can differ. The OP wants to eliminate this
problem - i.e., make it so that when the user types a certain sequence of
keystrokes to invoke his program, his program does the right thing,
regardless of which shell lies between him and the user. Effectively,
he wants to kludge around shell differences via application-level coding.

Whether this is a noble or a foolish envdeavor is up to you to decide.

Jun 7 '07 #15
Tom Gur <gu*****@gmail.comwrites:
Maybe I wasn't clear.
I'm writing a C program (a server) that runs a Java program (an agent)
with some arguments.
The agent's shell is unknown, so I need to check, within my C code
what kind of shell runs on the account that runs the agent.
I was wondering whether you know any kind of function that can get
environment variables - so I'll be able to check the value of $SHELL
in the agent's machine.
This was in response to a followup in which I advised you to ask in
comp.unix.shell. Please provide context when you post a followup; see
<http://cfaj.freeshell.org/google/>.

So you should ask in comp.unix.programmer rather than comp.unix.shell.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 7 '07 #16
CBFalconer <cb********@yahoo.comwrote:
Richard Bos wrote:
ma**********@pobox.com wrote:
On 7 Jun, 10:07, Tom Gur <gur....@gmail.comwrote:

I was wondering whether you know any kind of function that can
get environment variables - so I'll be able to check the value
of $SHELL in the agent's machine.

In the C language as such there won't be any such thing.
Yesno.
In the Unix APIs there may be an appropriate function but that's
not in the remit of this group.

You'll get better answers in a group relating to Unix - most
likely comp.unix.programmer.

<OffTopic>
Not yet.
Unix has getenv()
Actually, that's an ISO C function, but...
but the $SHELL variable does not seem to be altered if a new
shell is launched.
...C makes no guarantees about which variables are available, let
alone what they mean.

So the OP could easily use a C function, but _how_ he should use
this function does depend on the OS he uses (and frustratingly,
could even depend on the shell he uses... so to find out which
shell he has, he first has to find out which shell he has. Nice.)

Who says ANY shell even exists? Not the C standard.
getenv() exists. That's what the C Standard says. _If_ you happen to
know about an environment variable that contains the active shell,
getenv() can get it for you. As you indicate, you may have to cater for
the possibility of an empty return value.

Richard
Jun 8 '07 #17
Richard Bos wrote, On 08/06/07 07:25:
CBFalconer <cb********@yahoo.comwrote:
>Richard Bos wrote:
>>ma**********@pobox.com wrote:
On 7 Jun, 10:07, Tom Gur <gur....@gmail.comwrote:

I was wondering whether you know any kind of function that can
get environment variables - so I'll be able to check the value
of $SHELL in the agent's machine.
In the C language as such there won't be any such thing.
Yesno.

In the Unix APIs there may be an appropriate function but that's
not in the remit of this group.

You'll get better answers in a group relating to Unix - most
likely comp.unix.programmer.

<OffTopic>
Not yet.

Unix has getenv()
Actually, that's an ISO C function, but...

but the $SHELL variable does not seem to be altered if a new
shell is launched.
...C makes no guarantees about which variables are available, let
alone what they mean.

So the OP could easily use a C function, but _how_ he should use
this function does depend on the OS he uses (and frustratingly,
could even depend on the shell he uses... so to find out which
shell he has, he first has to find out which shell he has. Nice.)
Who says ANY shell even exists? Not the C standard.

getenv() exists. That's what the C Standard says. _If_ you happen to
know about an environment variable that contains the active shell,
getenv() can get it for you. As you indicate, you may have to cater for
the possibility of an empty return value.
You might also want to allow for the user setting up a deliberate lie.
--
Flash Gordon
Jun 8 '07 #18
Richard Bos wrote:
CBFalconer <cb********@yahoo.comwrote:
.... snip ...
>>
Who says ANY shell even exists? Not the C standard.

getenv() exists. That's what the C Standard says. _If_ you happen
to know about an environment variable that contains the active
shell, getenv() can get it for you. As you indicate, you may have
to cater for the possibility of an empty return value.
No shell is needed. No environment is needed. getenv can fail and
return NULL. From N869:

Returns

[#4] The getenv function returns a pointer to a string
associated with the matched list member. The string pointed
to shall not be modified by the program, but may be
overwritten by a subsequent call to the getenv function. If
the specified name cannot be found, a null pointer is
returned.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 8 '07 #19
In article <46***************@yahoo.com>,
CBFalconer <cb********@maineline.netwrote:
>So the OP could easily use a C function, but _how_ he should use
this function does depend on the OS he uses (and frustratingly,
could even depend on the shell he uses... so to find out which
shell he has, he first has to find out which shell he has. Nice.)
>Who says ANY shell even exists? Not the C standard.
The original poster stipulated it.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Jun 8 '07 #20
Richard Tobin wrote:
CBFalconer <cb********@maineline.netwrote:
>>So the OP could easily use a C function, but _how_ he should use
this function does depend on the OS he uses (and frustratingly,
could even depend on the shell he uses... so to find out which
shell he has, he first has to find out which shell he has. Nice.)
>Who says ANY shell even exists? Not the C standard.

The original poster stipulated it.
Well, I guess I could accept 'implied', but not stipulated.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 8 '07 #21
In article <46***************@yahoo.com>,
CBFalconer <cb********@maineline.netwrote:
>Richard Tobin wrote:
>CBFalconer <cb********@maineline.netwrote:
>>>So the OP could easily use a C function, but _how_ he should use
this function does depend on the OS he uses (and frustratingly,
could even depend on the shell he uses... so to find out which
shell he has, he first has to find out which shell he has. Nice.)
>>Who says ANY shell even exists? Not the C standard.

The original poster stipulated it.

Well, I guess I could accept 'implied', but not stipulated.
Questioner: What model car did you just drive past my house in?
Chuck: Who says this is a car?

Yes, I think the original question implies the existence of a car.

Jun 8 '07 #22

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

Similar topics

2
by: Mohsin | last post by:
Hi all, I have a perl program which makes a user exit to the O/S (unix, solaris) to issue a O/S command. I know that the shell it invokes is NOT a korn shell, because I captured the shell info...
22
by: Tony Houghton | last post by:
I'm using pygame to write a game called Bombz which needs to save some data in a directory associated with it. In Unix/Linux I'd probably use "~/.bombz", in Windows something like "C:\Documents...
7
by: kamkwokho | last post by:
Could any answer following questions as many as you can. ii) Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of...
22
by: Ryan M | last post by:
I've been programming for a while, but most of my experience is on unix. How do C compilers work on operating systems that weren't written in C? And that have no libc? Compiling C on unix seems...
46
by: dawn | last post by:
Hi all, I am now working on a C program under Unix. The requirement for the program is that: A file name is passed to program as a parameter. The program will Find files under a specified...
0
by: Aashif | last post by:
I want to call Unix Shell script which is available in other Server (Unix server) from windows application using C#. Currently the shell script runs the C program but the GUI is not good, So I want...
9
by: sohan | last post by:
Hi, I want to know how to connect and execute a db2 query from inside a UNIX shell script. Details: We have a unix shell script. We need to execute multiple db2 sql queries from this shell...
2
by: frikk | last post by:
Hey everyone, (Sorry about the first message if it made it - i got cut off early). I have a homework problem for my Operating Systems class. I am supposed to use a command such as "ps -aux" and...
2
by: zw | last post by:
Hi I have 2 unix boxes. In each box, I have a unix shell script that captures certain statistics to a file of the unix box. During the run of the 2 shell scripts, I need a common timestamp for...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.