-
Mar 16th, 2011, 07:03 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Where to post DOS or Command line question?
Hi,
I have a question about using a For Loop in a cmd file can anyone advise me which forum would be best to post it in?
Cheers Al
-
Mar 16th, 2011, 07:21 AM
#2
Re: Where to post DOS or Command line question?
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Mar 16th, 2011, 07:23 AM
#3
Re: Where to post DOS or Command line question?
I guess General PC would be the most appropriate location.
Delete it. They just clutter threads anyway.
-
Mar 16th, 2011, 07:24 AM
#4
Fanatic Member
Re: Where to post DOS or Command line question?
I believe he's talking about batch files.
Where I'm from we only have one bit of advice for new comers: "If you hear banjos, turn and run".
VS 2008 .NetFW 2.0
-
Mar 16th, 2011, 07:41 AM
#5
Thread Starter
Fanatic Member
Re: Where to post DOS or Command line question?
Hi,
Thanks for all your replies.
Yes I'm talking about batch files .bat or .cmd
TheBigB: Thanks I'll try posting it there.
Cheers Al
-
Mar 16th, 2011, 05:33 PM
#6
Re: Where to post DOS or Command line question?
Or find a box jocky (TechNet) site instead of a programming (MSDN) site.
-
Mar 16th, 2011, 07:53 PM
#7
Re: Where to post DOS or Command line question?
Originally Posted by TheBigB
I guess General PC would be the most appropriate location.
Same here.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Mar 16th, 2011, 10:38 PM
#8
Re: Where to post DOS or Command line question?
Well, I had the same problem a few weeks ago but Google helped me out. I think if the OP searches the net, he should find enough samples so that he doesn't have to post anywhere.
.
-
Mar 17th, 2011, 03:38 AM
#9
Thread Starter
Fanatic Member
Re: Where to post DOS or Command line question?
Dilettant; I'm going to have a hunt around for a technet forum to join for any future command line conundrums.
HoneyBee; I searched on google first but didn't find what I was looking for, which is why I decided to post here which is my preferred portal for all things programming.
Thanks to everyone who's responded.
Cheers Al
-
Mar 17th, 2011, 06:02 AM
#10
Re: [RESOLVED] Where to post DOS or Command line question?
Here's the search result from google for "Using FOR loop in Windows Batch Files"
Just see if what you are searching for isn't there already. My hunch is unless it's something out of the ordinary, it should be there.
.
-
Mar 17th, 2011, 06:21 AM
#11
Thread Starter
Fanatic Member
Re: [RESOLVED] Where to post DOS or Command line question?
Honeybee,
Thanks, I've had a quick look I've not been able to find what I'm looking for please forgive me if it's there and I'm not seeing it.
Here is a link to my post in General PC
This from the original question -
Originally Posted by aconybeare
I've got a for loop in a batch file that loops ".jpg" files and I'd like to change it to find ".jpg" and ".pdf" files.
Is this possible?
Code:
SET counter=0
FOR /r "e:\test\myfiles\" %%X IN (*.jpg) DO (set /a counter+=1)
ECHO Copied %counter% of 5 file(s)
This is what I've managed to come up with -
Originally Posted by aconybeare
As a workaround I've applied the following which works but I was hoping for a cleaner solution.
Code:
SET counter=0
FOR /r "e:\test\myfiles\" %%X IN (*.jpg) DO (set /a counter+=1)
FOR /r "e:\test\myfiles\" %%X IN (*.pdf) DO (set /a counter+=1)
ECHO Copied %counter% file(s)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|