A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Dir command help? /s attribute keeps seaching full drive?



 
 
Thread Tools Display Modes
  #1  
Old January 30th 09, 06:58 PM posted to microsoft.public.windowsxp.general
acem77
external usenet poster
 
Posts: 9
Default Dir command help? /s attribute keeps seaching full drive?

Here is what I am trying to run.

example
dir d:\Users\tjones\Home\ /s *.jpg


I only want it to find jpegs in tjones home folder and all its sub folders.
When I run the command it will 1st search the above path and all subfolders
then it will continue to search the full D: drive grr.
I do not want it do search the complete drive just the home folder and all
subs.

The only time it works is if the command prompt is in the
d:\Users\tjones\Home\ dir and I run dir /s *.jpg

Looks like this "D:\Users1\tjones\Homedir /s *.jpg"

I want the full path in the command to work so I can make a batch file to
scan multiple user folders their subs to create a list of files found.

thanks

Ads
  #2  
Old January 30th 09, 08:34 PM posted to microsoft.public.windowsxp.general
3c273
external usenet poster
 
Posts: 424
Default Dir command help? /s attribute keeps seaching full drive?

Try dir /s d:\users\tjones\home\*.jpg
Louis

"acem77" wrote in message
...
Here is what I am trying to run.

example
dir d:\Users\tjones\Home\ /s *.jpg


I only want it to find jpegs in tjones home folder and all its sub

folders.
When I run the command it will 1st search the above path and all

subfolders
then it will continue to search the full D: drive grr.
I do not want it do search the complete drive just the home folder and all
subs.

The only time it works is if the command prompt is in the
d:\Users\tjones\Home\ dir and I run dir /s *.jpg

Looks like this "D:\Users1\tjones\Homedir /s *.jpg"

I want the full path in the command to work so I can make a batch file to
scan multiple user folders their subs to create a list of files found.

thanks



  #3  
Old January 30th 09, 08:36 PM posted to microsoft.public.windowsxp.general
John Wunderlich
external usenet poster
 
Posts: 1,466
Default Dir command help? /s attribute keeps seaching full drive?

=?Utf-8?B?YWNlbTc3?= wrote in
:

Here is what I am trying to run.

example
dir d:\Users\tjones\Home\ /s *.jpg


I only want it to find jpegs in tjones home folder and all its sub
folders. When I run the command it will 1st search the above path
and all subfolders then it will continue to search the full D:
drive grr. I do not want it do search the complete drive just the
home folder and all subs.

The only time it works is if the command prompt is in the
d:\Users\tjones\Home\ dir and I run dir /s *.jpg

Looks like this "D:\Users1\tjones\Homedir /s *.jpg"

I want the full path in the command to work so I can make a batch
file to scan multiple user folders their subs to create a list of
files found.

thanks



Did you try:

dir d:\Users\tjones\Home\*.jpg /s

?
-- John

  #4  
Old January 30th 09, 08:55 PM posted to microsoft.public.windowsxp.general
acem77
external usenet poster
 
Posts: 9
Default Dir command help? /s attribute keeps seaching full drive?



"John Wunderlich" wrote:

=?Utf-8?B?YWNlbTc3?= wrote in
:

Here is what I am trying to run.

example
dir d:\Users\tjones\Home\ /s *.jpg


I only want it to find jpegs in tjones home folder and all its sub
folders. When I run the command it will 1st search the above path
and all subfolders then it will continue to search the full D:
drive grr. I do not want it do search the complete drive just the
home folder and all subs.

The only time it works is if the command prompt is in the
d:\Users\tjones\Home\ dir and I run dir /s *.jpg

Looks like this "D:\Users1\tjones\Homedir /s *.jpg"

I want the full path in the command to work so I can make a batch
file to scan multiple user folders their subs to create a list of
files found.

thanks



Did you try:

dir d:\Users\tjones\Home\*.jpg /s

?
-- John



does not work
Try dir /s d:\users\tjones\home\*.jpg

need a space after home\
and then it will scan every dir after the path.

same with this one
dir d:\Users\tjones\Home\*.jpg /s

It does this on server 2k3 and xp





  #5  
Old January 30th 09, 09:13 PM posted to microsoft.public.windowsxp.general
John Wunderlich
external usenet poster
 
Posts: 1,466
Default Dir command help? /s attribute keeps seaching full drive?

=?Utf-8?B?YWNlbTc3?= wrote in
:



"John Wunderlich" wrote:

=?Utf-8?B?YWNlbTc3?= wrote in
:

Here is what I am trying to run.

example
dir d:\Users\tjones\Home\ /s *.jpg

I only want it to find jpegs in tjones home folder and all its sub
folders. When I run the command it will 1st search the above path
and all subfolders then it will continue to search the full D:
drive grr. I do not want it do search the complete drive just the
home folder and all subs.

The only time it works is if the command prompt is in the
d:\Users\tjones\Home\ dir and I run dir /s *.jpg

Looks like this "D:\Users1\tjones\Homedir /s *.jpg"

I want the full path in the command to work so I can make a batch
file to scan multiple user folders their subs to create a list of
files found.

thanks



Did you try:

dir d:\Users\tjones\Home\*.jpg /s

?
-- John



does not work
Try dir /s d:\users\tjones\home\*.jpg


It works fine on my XP without the space after home\
It doesn't seem to matter if /s is at end or after "dir".

need a space after home\
and then it will scan every dir after the path.


That I've verified.


-- John

  #6  
Old January 30th 09, 09:36 PM posted to microsoft.public.windowsxp.general
acem77
external usenet poster
 
Posts: 9
Default Dir command help? /s attribute keeps seaching full drive?



"John Wunderlich" wrote:

=?Utf-8?B?YWNlbTc3?= wrote in
:



"John Wunderlich" wrote:

=?Utf-8?B?YWNlbTc3?= wrote in
:

Here is what I am trying to run.

example
dir d:\Users\tjones\Home\ /s *.jpg

I only want it to find jpegs in tjones home folder and all its sub
folders. When I run the command it will 1st search the above path
and all subfolders then it will continue to search the full D:
drive grr. I do not want it do search the complete drive just the
home folder and all subs.

The only time it works is if the command prompt is in the
d:\Users\tjones\Home\ dir and I run dir /s *.jpg

Looks like this "D:\Users1\tjones\Homedir /s *.jpg"

I want the full path in the command to work so I can make a batch
file to scan multiple user folders their subs to create a list of
files found.

thanks



Did you try:

dir d:\Users\tjones\Home\*.jpg /s

?
-- John



does not work
Try dir /s d:\users\tjones\home\*.jpg


It works fine on my XP without the space after home\
It doesn't seem to matter if /s is at end or after "dir".

need a space after home\
and then it will scan every dir after the path.


That I've verified.


-- John


Really?
it is searching all sub dirs under your root folder?
on mine a xp system and server 2k3 box it stops at the root dir if no space
is entered.


  #7  
Old January 31st 09, 06:01 AM posted to microsoft.public.windowsxp.general
John Wunderlich
external usenet poster
 
Posts: 1,466
Default Dir command help? /s attribute keeps seaching full drive?

=?Utf-8?B?YWNlbTc3?= wrote in
:

Really?
it is searching all sub dirs under your root folder?
on mine a xp system and server 2k3 box it stops at the root dir
if no space is entered.


I also tried this on my XP machine at home with same results.
With no space, it only displays files in subdirectories below the
specified one and no more.
-- John
  #8  
Old January 31st 09, 03:53 PM posted to microsoft.public.windowsxp.general
acem77
external usenet poster
 
Posts: 9
Default Dir command help? /s attribute keeps seaching full drive?



"John Wunderlich" wrote:

=?Utf-8?B?YWNlbTc3?= wrote in
:

Really?
it is searching all sub dirs under your root folder?
on mine a xp system and server 2k3 box it stops at the root dir
if no space is entered.


I also tried this on my XP machine at home with same results.
With no space, it only displays files in subdirectories below the
specified one and no more.
-- John


Thanks i did get it woking on my xp pc at home.
ill have to take a closer look at work monday.
The only thing it does not let you do is multiple files types in one command.




  #9  
Old February 1st 09, 08:01 PM posted to microsoft.public.windowsxp.general
Adam
external usenet poster
 
Posts: 119
Default Dir command help? /s attribute keeps seaching full drive?

Is there anyway to make it scan the full C:\ drive and make the results or
whatever come up in a .txt document? I need it for some school work.
  #10  
Old February 1st 09, 08:32 PM posted to microsoft.public.windowsxp.general
Twayne[_2_]
external usenet poster
 
Posts: 4,276
Default Dir command help? /s attribute keeps seaching full drive?

Is there anyway to make it scan the full C:\
drive and
make the results or whatever come up in a .txt
document?
I need it for some school work.


Sure. Redirect the DIR output to a file.
dir (path) /s x:\folder\fname.txt

The creates a new file each time, and creates
first, then appends to the existing file after
that.

This's a bad place to ask for school work help;
you could get some destructive responses since you
apparently don't know better. And thanks for
being honest about it being school work.

See
http://commandwindows.com/command1.htm
for some more details. Go down to the table.

Twayne


  #11  
Old February 2nd 09, 06:07 AM posted to microsoft.public.windowsxp.general
Adam
external usenet poster
 
Posts: 119
Default Dir command help? /s attribute keeps seaching full drive?

So like dir C:/ /s C:\Documents and Settings\Administrator\Desktop\scan.txt
or other way around?
dir C:\Documents and Settings\Administrator\Desktop /s C:\

"Twayne" wrote:

Is there anyway to make it scan the full C:\
drive and
make the results or whatever come up in a .txt
document?
I need it for some school work.


Sure. Redirect the DIR output to a file.
dir (path) /s x:\folder\fname.txt

The creates a new file each time, and creates
first, then appends to the existing file after
that.

This's a bad place to ask for school work help;
you could get some destructive responses since you
apparently don't know better. And thanks for
being honest about it being school work.

See
http://commandwindows.com/command1.htm
for some more details. Go down to the table.

Twayne



  #12  
Old February 2nd 09, 04:45 PM posted to microsoft.public.windowsxp.general
Twayne[_2_]
external usenet poster
 
Posts: 4,276
Default Dir command help? /s attribute keeps seaching full drive?

So like dir C:/ /s C:\Documents and
Settings\Administrator\Desktop\scan.txt or other
way
around?
dir C:\Documents and
Settings\Administrator\Desktop /s
C:\


No.
Dir /s "c:documents and... "
In the Command prompt, type dir /? to see all
possibilities/forms of the commend. Just type
help and it'll display all the available
commands.




"Twayne" wrote:

Is there anyway to make it scan the full C:\
drive and
make the results or whatever come up in a .txt
document?
I need it for some school work.


Sure. Redirect the DIR output to a file.
dir (path) /s x:\folder\fname.txt

The creates a new file each time, and
creates
first, then appends to the existing file after
that.

This's a bad place to ask for school work help;
you could get some destructive responses since
you
apparently don't know better. And thanks for
being honest about it being school work.

See
http://commandwindows.com/command1.htm
for some more details. Go down to the table.

Twayne




  #13  
Old February 2nd 09, 06:55 PM posted to microsoft.public.windowsxp.general
Adam
external usenet poster
 
Posts: 119
Default Dir command help? /s attribute keeps seaching full drive?

Sorry but that doesn't help me much, Could you just tell me the proper way to
type the command?
Thanks
-Adam

"Twayne" wrote:

So like dir C:/ /s C:\Documents and
Settings\Administrator\Desktop\scan.txt or other
way
around?
dir C:\Documents and
Settings\Administrator\Desktop /s
C:\


No.
Dir /s "c:documents and... "
In the Command prompt, type dir /? to see all
possibilities/forms of the commend. Just type
help and it'll display all the available
commands.




"Twayne" wrote:

Is there anyway to make it scan the full C:\
drive and
make the results or whatever come up in a .txt
document?
I need it for some school work.

Sure. Redirect the DIR output to a file.
dir (path) /s x:\folder\fname.txt

The creates a new file each time, and
creates
first, then appends to the existing file after
that.

This's a bad place to ask for school work help;
you could get some destructive responses since
you
apparently don't know better. And thanks for
being honest about it being school work.

See
http://commandwindows.com/command1.htm
for some more details. Go down to the table.

Twayne





  #14  
Old February 2nd 09, 07:48 PM posted to microsoft.public.windowsxp.general
Adam
external usenet poster
 
Posts: 119
Default HTML Codes help

I need to know if theres a way to create a "submit" button that on click goes
to another website?
Thanks,
Adam
  #15  
Old February 2nd 09, 09:04 PM posted to microsoft.public.windowsxp.general
Tim Slattery
external usenet poster
 
Posts: 1,340
Default HTML Codes help

Adam wrote:

I need to know if theres a way to create a "submit" button that on click goes
to another website?


Where clicking "Submit" sends the data is controlled by the "action"
property of the "form" tag.

--
Tim Slattery
MS MVP(Shell/User)

http://members.cox.net/slatteryt
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 03:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.