Forum: C Dec 17th, 2007 |
| Replies: 3 Views: 3,105 Thank you for ur reply. But, I don't need the label. I want to extract the drive letter, to which the particular label is assigned. I guess, GetVolumeInformation can do this, if we do for all the... |
Forum: C Dec 16th, 2007 |
| Replies: 3 Views: 3,105 Hi,
I need some information regarding the APIs to use, to get the drive letter, if I know the label of that drive.
For eg, my hard disk has been partitioned into 3 drives, C:, D:, E:. The... |
Forum: Shell Scripting Dec 15th, 2007 |
| Replies: 2 Views: 2,986 Hi,
I need some information regarding the APIs to use, to get the drive letter, if I know the label of that drive.
For eg, my hard disk has been partitioned into 3 drives, C:, D:, E:. The... |
Forum: Legacy and Other Languages Aug 23rd, 2007 |
| Replies: 12 Views: 24,992 Hi,
I need a batch script, which has to create a directory, but if the directory already exists, it has to delete it, and create a fresh one. I dont know, what command to be used.
Normally,... |
Forum: C++ Aug 10th, 2007 |
| Replies: 3 Views: 5,681 Hi,
I have a text file which looks in the following format
=====c:\text.txt ======
AAAA
BBBB
...
... |
Forum: C May 2nd, 2007 |
| Replies: 7 Views: 3,529 Hi, I have used it with fixed size array, and the code is below.
int main()
{
FILE * pFile;
char cards[10][100];
int i=0,n=0;
pFile = fopen ("c:\\cardnames.txt" , "r");
if (pFile == NULL)... |
Forum: C Apr 27th, 2007 |
| Replies: 7 Views: 3,529 I did it in the following way.
int main()
{
FILE * pFile;
char string [10][100];
int i=0,n=0;
pFile = fopen ("c:\\cards.txt" , "r"); |
Forum: C Apr 26th, 2007 |
| Replies: 7 Views: 3,529 I have the following sample.
int main()
{
FILE * pFile;
char string [100];
// char filename = "c:\\cards.txt";
pFile = fopen ("c:\\cards.txt" , "r");
if (pFile == NULL) perror ("Error... |
Forum: C Apr 26th, 2007 |
| Replies: 7 Views: 3,529 Hi, I have a text file which looks like this:
3Com 3C996B Gigabit Server NIC
NEC PCI to USB Enhanced Host Controller (B1)
....
....
Now, I need a 'C' Program which will copy each line into... |