Discussion:
How to read content from a file
(too old to reply)
srikanth
2010-05-13 08:11:16 UTC
Permalink
Hi All,
I am new to Windows and DOS batch programming. I need some help from
you guys to solve my problem.

I am having an .xls file which contains Dir name/ File names.
For eg:
DirName
Test A
I need to extract the Dir/ File name and have to find in C: drive. If
search found the file name in C: drive. Then I need to copy that file
to D: drive.

In order to do these steps can any one please help me out giving a
batch file for this.

Thanks a lot in advance.
H-Man
2010-05-13 13:13:44 UTC
Permalink
Post by srikanth
Hi All,
I am new to Windows and DOS batch programming. I need some help from
you guys to solve my problem.
I am having an .xls file which contains Dir name/ File names.
DirName
Test A
I need to extract the Dir/ File name and have to find in C: drive. If
search found the file name in C: drive. Then I need to copy that file
to D: drive.
In order to do these steps can any one please help me out giving a
batch file for this.
Thanks a lot in advance.
This group mostly responds to questions regarding the BASIC programming
language. You may be better off looking in a batch programming group.
--
HK
srikanth
2010-05-13 15:21:45 UTC
Permalink
Post by H-Man
Post by srikanth
Hi All,
I am new to Windows and DOS batch programming. I need some help from
you guys to solve my problem.
I am having an .xls file which contains Dir name/ File names.
DirName
Test A
I need to extract the Dir/ File name and have to find in C: drive. If
search found the file name in C: drive. Then I need to copy that file
to D: drive.
In order to do these steps can any one please help me out giving a
batch file for this.
Thanks a lot in advance.
This group mostly responds to questions regarding the BASIC programming
language. You may be better off looking in a batch programming group.
--
HK
Ok, Sorry for wrong posting.
H-Man
2010-05-18 14:09:38 UTC
Permalink
Post by srikanth
Post by H-Man
Post by srikanth
Hi All,
I am new to Windows and DOS batch programming. I need some help from
you guys to solve my problem.
I am having an .xls file which contains Dir name/ File names.
DirName
Test A
I need to extract the Dir/ File name and have to find in C: drive. If
search found the file name in C: drive. Then I need to copy that file
to D: drive.
In order to do these steps can any one please help me out giving a
batch file for this.
Thanks a lot in advance.
This group mostly responds to questions regarding the BASIC programming
language. You may be better off looking in a batch programming group.
--
HK
Ok, Sorry for wrong posting.
No sweat, good luck.
--
HK
Tim Meddick
2010-05-13 18:57:42 UTC
Permalink
Will you give it a rest - telling people off.

Would you like me to quote a few of the hundreds of exceptions when users
of this forum have chosen to answer BATCH -related queries, notwithstanding
the strictest sense of the groups title.

Plus, I am given to understand that there is little enough time left for
this group, as M$ has decided to "pull the plug" - hardly the time to turn
people away.

It's not like the group is overloaded with correspondence anyway, is it?

==

Cheers, Tim Meddick, Peckham, London. :-)
Post by H-Man
Post by srikanth
Hi All,
I am new to Windows and DOS batch programming. I need some help from
you guys to solve my problem.
I am having an .xls file which contains Dir name/ File names.
DirName
Test A
I need to extract the Dir/ File name and have to find in C: drive. If
search found the file name in C: drive. Then I need to copy that file
to D: drive.
In order to do these steps can any one please help me out giving a
batch file for this.
Thanks a lot in advance.
This group mostly responds to questions regarding the BASIC programming
language. You may be better off looking in a batch programming group.
--
HK
Auric__
2010-05-13 19:28:50 UTC
Permalink
Post by Tim Meddick
Will you give it a rest - telling people off.
Dear Kettle,
I don't know how to tell you this, but there's something
that's been concerning me about your current hue...
--
I did not say it was a stupid idea, but the strategic advantage of
equipping infantry with scary hand puppets is lost on me.
Tim Meddick
2010-05-13 19:37:31 UTC
Permalink
Hey, all I'm saying is for people to lighten up!

Life's too short, etc...

There's people in these groups who would turn on you and have a go because
of your sig!!

Which, BTW, I think is funny - where's it from?

==

Cheers, Tim Meddick, Peckham, London. :-)
Post by Auric__
Post by Tim Meddick
Will you give it a rest - telling people off.
Dear Kettle,
I don't know how to tell you this, but there's something
that's been concerning me about your current hue...
--
I did not say it was a stupid idea, but the strategic advantage of
equipping infantry with scary hand puppets is lost on me.
Auric__
2010-05-14 05:02:34 UTC
Permalink
Post by Tim Meddick
Hey, all I'm saying is for people to lighten up!
Life's too short, etc...
There's people in these groups who would turn on you and have a go because
of your sig!!
Which, BTW, I think is funny - where's it from?
The Erfworld wiki, Wanda's entry:
http://www.erfworld.com/wiki/index.php/Wanda_Firebaugh#Proposed_Canon
--
But we were rebels. Terrorists? That's too chaotic.
RobertVA
2010-05-14 03:34:36 UTC
Permalink
Post by Tim Meddick
Will you give it a rest - telling people off.
Would you like me to quote a few of the hundreds of exceptions when
users of this forum have chosen to answer BATCH -related queries,
notwithstanding the strictest sense of the groups title.
Plus, I am given to understand that there is little enough time left for
this group, as M$ has decided to "pull the plug" - hardly the time to
turn people away.
It's not like the group is overloaded with correspondence anyway, is it?
No, it's not overloaded. However, there might be a larger number of
readers qualified to answer batch file inquiries in batch file news
groups though. That doesn't mean the people who are still reading this
group aren't qualified, just that there might be a larger number of
people reading the relevant group.

Note that many versions of Windows can be configured to have a generic
text to file "printer" via the OS's "Add Printer" wizard. After opening
an Excel spreadsheet the file contents can be "printed" to an ASCII text
file through that virtual "printer". Users lacking the expensive Excel
application could probably accomplish the same task with the spreadsheet
module of OpenOffice. A COPY of the Excel file could be easily modified
to include Command Prompt commands like xcopy or copy with spreadsheet
functions like inserting columns and auto filling the comumn with the
desired command.
Todd Vargo
2010-05-15 03:45:44 UTC
Permalink
Post by RobertVA
Post by Tim Meddick
Will you give it a rest - telling people off.
Would you like me to quote a few of the hundreds of exceptions when
users of this forum have chosen to answer BATCH -related queries,
notwithstanding the strictest sense of the groups title.
Plus, I am given to understand that there is little enough time left for
this group, as M$ has decided to "pull the plug" - hardly the time to
turn people away.
It's not like the group is overloaded with correspondence anyway, is it?
No, it's not overloaded. However, there might be a larger number of
readers qualified to answer batch file inquiries in batch file news groups
though. That doesn't mean the people who are still reading this group
aren't qualified, just that there might be a larger number of people
reading the relevant group.
Note that many versions of Windows can be configured to have a generic
text to file "printer" via the OS's "Add Printer" wizard. After opening an
Excel spreadsheet the file contents can be "printed" to an ASCII text file
through that virtual "printer". Users lacking the expensive Excel
application could probably accomplish the same task with the spreadsheet
module of OpenOffice. A COPY of the Excel file could be easily modified to
include Command Prompt commands like xcopy or copy with spreadsheet
functions like inserting columns and auto filling the comumn with the
desired command.
Since when did informing someone of a group's topicality, and where a better
group to discuss a topic, become "telling people off"? Regardless of
Microsoft's decision to move their groups to forums, the same principal
still applies. If a discussion is off-topic, it is still best to inform the
poster of where to find appropriate groups to use, rather than lead them to
believe it ok to go ahead discuss off-topic in the wrong groups.
--
Todd Vargo

(Post questions to group only. Remove "z" to email personal messages)
H-Man
2010-05-18 14:08:38 UTC
Permalink
Post by Tim Meddick
Will you give it a rest - telling people off.
Would you like me to quote a few of the hundreds of exceptions when users
of this forum have chosen to answer BATCH -related queries, notwithstanding
the strictest sense of the groups title.
Plus, I am given to understand that there is little enough time left for
this group, as M$ has decided to "pull the plug" - hardly the time to turn
people away.
It's not like the group is overloaded with correspondence anyway, is it?
You are correct. I simply suggested that for the stated reason the OP 'may'
get better answers from a batch programming group. please re-read my post
and assume I was trying to be informative and helpful instead of otherwise,
and you'll see you way over reacted here.

Please step away from the platform edge.
--
HK
Tim Meddick
2010-05-18 18:28:21 UTC
Permalink
Ok, yeah, maybe...

But still, the outcome of your "advice" was the OP wrote :

"Ok, Sorry for wrong posting"

..and thus, nonetheless, drove him away, leaving his humble apology in his
wake...

Well done that man!

==

Cheers, Tim Meddick, Peckham, London. :-)
Post by H-Man
Post by Tim Meddick
Will you give it a rest - telling people off.
Would you like me to quote a few of the hundreds of exceptions when users
of this forum have chosen to answer BATCH -related queries,
notwithstanding
the strictest sense of the groups title.
Plus, I am given to understand that there is little enough time left for
this group, as M$ has decided to "pull the plug" - hardly the time to turn
people away.
It's not like the group is overloaded with correspondence anyway, is it?
You are correct. I simply suggested that for the stated reason the OP 'may'
get better answers from a batch programming group. please re-read my post
and assume I was trying to be informative and helpful instead of otherwise,
and you'll see you way over reacted here.
Please step away from the platform edge.
--
HK
H-Man
2010-05-19 20:38:25 UTC
Permalink
Post by Tim Meddick
Ok, yeah, maybe...
"Ok, Sorry for wrong posting"
..and thus, nonetheless, drove him away, leaving his humble apology in his
wake...
Well done that man!
==
Cheers, Tim Meddick, Peckham, London. :-)
Okay then,

I'm sorry for the wrong posting.

Now you've driven someone away.

Good one Tim!!
--
HK
H-Man
2010-05-19 20:41:10 UTC
Permalink
Post by H-Man
Post by Tim Meddick
Ok, yeah, maybe...
"Ok, Sorry for wrong posting"
..and thus, nonetheless, drove him away, leaving his humble apology in his
wake...
Well done that man!
==
Cheers, Tim Meddick, Peckham, London. :-)
Okay then,
I'm sorry for the wrong posting.
Now you've driven someone away.
Good one Tim!!
Oh, and by the way, have you considered that you may be a bit of a horse's
back end?!?

Sorry I tried to help
--
HK
Tim Meddick
2010-05-19 22:56:25 UTC
Permalink
Yeah, sure, that argument really clinched it. - I'm totally won over and
convinced.

...and God bless you too...............

==

Cheers, Tim Meddick, Peckham, London. :-)
Post by H-Man
Post by H-Man
Post by Tim Meddick
Ok, yeah, maybe...
"Ok, Sorry for wrong posting"
..and thus, nonetheless, drove him away, leaving his humble apology in his
wake...
Well done that man!
==
Cheers, Tim Meddick, Peckham, London. :-)
Okay then,
I'm sorry for the wrong posting.
Now you've driven someone away.
Good one Tim!!
Oh, and by the way, have you considered that you may be a bit of a horse's
back end?!?
Sorry I tried to help
--
HK
Loading...