kn srivastava | 1 Apr 11:59 2011
Picon

Need help with find

dir /b /s /a:d | find ".dsl_lib" /v > mydir.txt

The above line lists all the directories NOT containing ".dsl_lib". I want
other way around i.e. list all the directories containing ".dsl_lib".

How can I do this?

Kailash

[Non-text portions of this message have been removed]

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

<*> To change settings via email:
    batchworld-digest@... 
(Continue reading)

foxidrive | 1 Apr 15:40 2011

Re: Need help with find

On 1/04/2011 20:59, kn srivastava wrote:

> dir /b /s /a:d | find ".dsl_lib" /v>  mydir.txt
>
> The above line lists all the directories NOT containing ".dsl_lib". I want
> other way around i.e. list all the directories containing ".dsl_lib".
>
> How can I do this?

remove the /v

It means void, or 'without' the spec in quotes.

You can add /i (case Insensitive) to also match the spec without regard 
to case.  So it will also match upper case letters.

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
(Continue reading)

kn srivastava | 2 Apr 08:16 2011
Picon

Re: Need help with find

Thanx a lot for your help.

Regards/Kailash

On Fri, Apr 1, 2011 at 15:40, foxidrive <foxidrive@...> wrote:

> On 1/04/2011 20:59, kn srivastava wrote:
>
> > dir /b /s /a:d | find ".dsl_lib" /v>  mydir.txt
> >
> > The above line lists all the directories NOT containing ".dsl_lib". I
> want
> > other way around i.e. list all the directories containing ".dsl_lib".
> >
> > How can I do this?
>
>
> remove the /v
>
> It means void, or 'without' the spec in quotes.
>
>
> You can add /i (case Insensitive) to also match the spec without regard
> to case.  So it will also match upper case letters.
>
>

[Non-text portions of this message have been removed]

------------------------------------
(Continue reading)

Gary Kuznitz | 8 Apr 06:00 2011

A .cmd batch file hangs

I have a bat file that hangs on one command when I run it in a bat file.  The same 
command doesn't hang when I run it in a cmd window.

The cmd is on line 23 of bat file:
net view >>C:\cdiag.txt

On one PC running XP Pro sp2 that doesn't hang the output is:
Server Name            Remark

-------------------------------------------------------------------------------
\\CONSOLE                                                                      
\\DOCFXIT                                                                      
\\TASOFF                                                                       
The command completed successfully.

On another PC running XP Pro sp2 that does hang the output to the file is:
a blank line

On another PC running XP Pro sp3 that does hang the output to the file is:
a blank line
The output to the screen is:
System error 53 has occurred.

The network path was not found.

If I run it in a cmd window on one of the PC's that it hangs on the output is:
System error 53 has occurred.

The network path was not found.

(Continue reading)

foxidrive | 8 Apr 09:33 2011

Re: A .cmd batch file hangs

On 8/04/2011 14:00, Gary Kuznitz wrote:
> I have a bat file that hangs on one command when I run it in a bat file.  The same
> command doesn't hang when I run it in a cmd window.
>
> The cmd is on line 23 of bat file:

echo breakpoint 1a
  net view>>C:\cdiag.txt
echo breakpoint 1b
pause

Gary, can you use the above and confirm that when it hangs on a machine 
you will see

breakpoint 1a

and nothing else
If this line succeeds then you will see this and it will be waiting for 
input to continue.

breakpoint 1a
breakpoint 1b
press any key to continue...

If it is failing there and waiting at a prompt then this might work

echo.|net view>>C:\cdiag.txt

------------------------------------

(Continue reading)

88 Keys | 8 Apr 18:16 2011
Picon

Re: help with batch files for power iso


-------Original Message-------

From: foxidrive
Date: 3/11/2011 3:11:12 PM
To: batchworld@...
Subject: Re: [BATCH WORLD] help with batch files for power iso

On 12/03/2011 03:48, 88 Keys wrote:
>>> Hi, newbie here. I basically need help with writing batch files for one
project using power iso.
>>>
>>> I have about 30 CD-ROMs which I want to install to a "virtual" CD drive
on
>> my machine. I understand that by writing a batch file I can have just 
one
>
>> virtual CD drive instead of a different drive for each CD, and that the
>> batch file can unmount the previously used CD, then mount the selected CD
>> and launch its program.
>>>

>
> Do you have "c:\documents and settings\..." on two lines or one?
>
> Check your username too - having a period and a space in it is unusual.
>
> If that is all ok then type the following commands in at a cmd prompt
> and see what the error message is.  It is two lines of commands, not
> three, and watch the spaces when typing.
(Continue reading)

Gary Kuznitz | 8 Apr 19:10 2011

Re: A .cmd batch file hangs

Thank you for the reply...

On 8 Apr 2011 at 17:33, foxidrive (foxidrive <batchworld@...>) 
commented about Re: [BATCH WORLD] A .cmd batch file:

> On 8/04/2011 14:00, Gary Kuznitz wrote:
> > I have a bat file that hangs on one command when I run it in a bat file.  The same
> > command doesn't hang when I run it in a cmd window.
> >
> > The cmd is on line 23 of bat file:
> 
> 
> echo breakpoint 1a
>   net view>>C:\cdiag.txt
> echo breakpoint 1b
> pause
> 
> 
> Gary, can you use the above and confirm that when it hangs on a machine 
> you will see
> 
> breakpoint 1a
> 
> and nothing else
> If this line succeeds then you will see this and it will be waiting for 
> input to continue.
> 
> breakpoint 1a
> breakpoint 1b
> press any key to continue...
(Continue reading)

foxidrive | 9 Apr 00:51 2011

Re: A .cmd batch file hangs

On 9/04/2011 03:10, Gary Kuznitz wrote:

> That's a great way to test this.
> It looks like I have two different issues I'd like to resolve.
> 1.  When I added those lines what I saw on the screen is:
> breakpoint 1a
> System error 53 has occurred.
>
> The network path was not found.
>
> breakpoint 1b
> Press any key to continue . . .
>
> So evidently that command is not where it's hanging (which I will test later)
> But this output is going to the screen but not the file.
> I'd like to make this output go to the file if I can.

I think this will do it.

net view>>C:\cdiag.txt 2>&1

It sends the STDERR error stream (2) into the same place that STDOUT is 
going to (1).

> 2. It's hanging on a different command. This one:
> ping %%a>>c:\cdiag.txt

Try this and see what is in the echo "%%a" line when it fails.

echo "%%a"
(Continue reading)

foxidrive | 9 Apr 01:02 2011

Re: help with batch files for power iso

On 9/04/2011 02:16, 88 Keys wrote:
>
>  <at> echo off
> "C:\Program Files\PowerISO\piso.exe" unmount G:
> "C:\Program Files\PowerISO\piso.exe" mount "C:\Documents and
> Settings\Ms. Olsen\My Documents\My Virtual CD Drive\composer.iso" G:
> rem ~5 second delay to allow disk to mount, if needed
> ping -n 5 127.0.0.1>nul
> pause
> start "" G:\composCD.exe
>
>
>
> Oh wow!!! On the pause, it said "Mount successfully" and after I pressed a
> key the program opened up. In the process of trying to make sure that long
> line didn't wrap -- my screen wasn't wide enough for all of it go on one
> line -- I discovered my text editor was in wrap mode and maybe that was the
> problem all along??

There are often settings to merely wrap the screen view, and other 
settings to wrap the text physically onto different lines so yours might 
have done this.

> OK, so now I need to go back to the version that doesn't pause, right?

Yep!

> Thanks!

This should also work to mount an iso image that you drag onto the batch 
(Continue reading)

Gary Kuznitz | 9 Apr 01:27 2011

Re: A .cmd batch file hangs

Thank you for the reply...

On 9 Apr 2011 at 8:51, foxidrive (foxidrive <batchworld@...>)
commented 
about Re: [BATCH WORLD] A .cmd batch file hangs:

> On 9/04/2011 03:10, Gary Kuznitz wrote:
> 
> > That's a great way to test this.
> > It looks like I have two different issues I'd like to resolve.
> > 1.  When I added those lines what I saw on the screen is:
> > breakpoint 1a
> > System error 53 has occurred.
> >
> > The network path was not found.
> >
> > breakpoint 1b
> > Press any key to continue . . .
> >
> > So evidently that command is not where it's hanging (which I will test later)
> > But this output is going to the screen but not the file.
> > I'd like to make this output go to the file if I can.
> 
> I think this will do it.
> 
> net view>>C:\cdiag.txt 2>&1

That worked great.  That's really super.

> It sends the STDERR error stream (2) into the same place that STDOUT is 
(Continue reading)


Gmane