Need Help with a DOS script (if possible)

K

Kardon Coupé

Dear All,

I'm looking for a way using a DOS batch file to take a folder and search
everything within it, and delete every file except files with a .xls or a
..doc extension, also work recursively within the folder, so if any
subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from work and
all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the folder and
use the 'SendTo' option and have the shortcut to the batch file in there..

I've tried looking around Google (etc) for 3rd party software, but nothing
has jumped out at me (maybe I'm putting the wrong search terms in)

Hope someone can help me with this matter as I'm no good using DOS...

Thanks in advance.
Regards
Paul.
 
P

Pegasus \(MVP\)

Kardon Coupé said:
Dear All,

I'm looking for a way using a DOS batch file to take a folder and search
everything within it, and delete every file except files with a .xls or a
.doc extension, also work recursively within the folder, so if any
subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from work
and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the folder and
use the 'SendTo' option and have the shortcut to the batch file in there..

I've tried looking around Google (etc) for 3rd party software, but nothing
has jumped out at me (maybe I'm putting the wrong search terms in)

Hope someone can help me with this matter as I'm no good using DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a legacy
operating system introduced some 30 years ago that is only rarely used these
days. However, you can easily perform the task with a few Command Console
commands under Windows XP. Here is a batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the fourth line
is a long line. It starts with [for] and ends with [del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
K

Kardon Coupé

I think I might be doing something wrong, I see the CMD window pop up, but
it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File Not
Found", I'm thinking it is something to do with working on a Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was only
taking part of the folder because of the spaces, and it was outputing the
full foldername??

Will this work on either network drives, or drives that have been mapped to
a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.

Pegasus (MVP) said:
Kardon Coupé said:
Dear All,

I'm looking for a way using a DOS batch file to take a folder and search
everything within it, and delete every file except files with a .xls or a
.doc extension, also work recursively within the folder, so if any
subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from work
and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the folder
and use the 'SendTo' option and have the shortcut to the batch file in
there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search terms
in)

Hope someone can help me with this matter as I'm no good using DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a legacy
operating system introduced some 30 years ago that is only rarely used
these days. However, you can easily perform the task with a few Command
Console commands under Windows XP. Here is a batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the fourth
line is a long line. It starts with [for] and ends with [del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
P

Pegasus \(MVP\)

Let's have a look at your version of the script!

Kardon Coupé said:
I think I might be doing something wrong, I see the CMD window pop up, but
it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File Not
Found", I'm thinking it is something to do with working on a Network
Drive.

I added in echo %Target% and echo %ext% just to see whether it was only
taking part of the folder because of the spaces, and it was outputing the
full foldername??

Will this work on either network drives, or drives that have been mapped
to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.

Pegasus (MVP) said:
Kardon Coupé said:
Dear All,

I'm looking for a way using a DOS batch file to take a folder and search
everything within it, and delete every file except files with a .xls or
a .doc extension, also work recursively within the folder, so if any
subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from work
and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the folder
and use the 'SendTo' option and have the shortcut to the batch file in
there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search terms
in)

Hope someone can help me with this matter as I'm no good using DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a legacy
operating system introduced some 30 years ago that is only rarely used
these days. However, you can easily perform the task with a few Command
Console commands under Windows XP. Here is a batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the fourth
line is a long line. It starts with [for] and ends with [del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
H

HeyBub

Kardon said:
Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files with
a .xls or a .doc extension, also work recursively within the folder,
so if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from
work and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the batch
file in there..
I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search
terms in)
Hope someone can help me with this matter as I'm no good using DOS...

What you CAN do with a batch file is to copy the desired files to another
location, delete everything in the folder under consideration, then copy the
saved files back...
 
K

Kardon Coupé

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Pegasus (MVP) said:
Let's have a look at your version of the script!

Kardon Coupé said:
I think I might be doing something wrong, I see the CMD window pop up, but
it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File Not
Found", I'm thinking it is something to do with working on a Network
Drive.

I added in echo %Target% and echo %ext% just to see whether it was only
taking part of the folder because of the spaces, and it was outputing the
full foldername??

Will this work on either network drives, or drives that have been mapped
to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.

Pegasus (MVP) said:
Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files with a
.xls or a .doc extension, also work recursively within the folder, so
if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from work
and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the folder
and use the 'SendTo' option and have the shortcut to the batch file in
there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search terms
in)

Hope someone can help me with this matter as I'm no good using DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a legacy
operating system introduced some 30 years ago that is only rarely used
these days. However, you can easily perform the task with a few Command
Console commands under Windows XP. Here is a batch file solution for
you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the fourth
line is a long line. It starts with [for] and ends with [del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
P

Pegasus \(MVP\)

Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing flash,
nothing fancy. It will then pause. Does it generate the expected output? If
no then your folder name \\Server\Server F Drive\Need to Sort is incorrect.
Perhaps it has an invisible trailing space.



Kardon Coupé said:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Pegasus (MVP) said:
Let's have a look at your version of the script!

Kardon Coupé said:
I think I might be doing something wrong, I see the CMD window pop up,
but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File Not
Found", I'm thinking it is something to do with working on a Network
Drive.

I added in echo %Target% and echo %ext% just to see whether it was only
taking part of the folder because of the spaces, and it was outputing
the full foldername??

Will this work on either network drives, or drives that have been mapped
to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files with a
.xls or a .doc extension, also work recursively within the folder, so
if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from
work and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the folder
and use the 'SendTo' option and have the shortcut to the batch file in
there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search terms
in)

Hope someone can help me with this matter as I'm no good using DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task with a
few Command Console commands under Windows XP. Here is a batch file
solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the fourth
line is a long line. It starts with [for] and ends with [del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
K

Kardon Coupé

It correctly displayed the directory in the command window, but failed to
delete all 'other' files.

Pegasus (MVP) said:
Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing flash,
nothing fancy. It will then pause. Does it generate the expected output?
If no then your folder name \\Server\Server F Drive\Need to Sort is
incorrect. Perhaps it has an invisible trailing space.



Kardon Coupé said:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Pegasus (MVP) said:
Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop up,
but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File
Not Found", I'm thinking it is something to do with working on a
Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was only
taking part of the folder because of the spaces, and it was outputing
the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files with
a .xls or a .doc extension, also work recursively within the folder,
so if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from
work and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the batch
file in there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search
terms in)

Hope someone can help me with this matter as I'm no good using DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task with
a few Command Console commands under Windows XP. Here is a batch file
solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with [del
"%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
P

Pegasus \(MVP\)

The trick here is to approach the problem one step at a time. Run this batch
file this time:

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a" & pause

The program won't attempt to delete any files but it will echo the full
"delete" command to the screen, then pause. Now do this:
1. Press Ctrl+C to stop the batch file.
2. Examine the command carefully. Is it correct? If not, what's wrong?
3. Retype the command manually, letter by letter. Does it work? If not, why
not?


Kardon Coupé said:
It correctly displayed the directory in the command window, but failed to
delete all 'other' files.

Pegasus (MVP) said:
Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing flash,
nothing fancy. It will then pause. Does it generate the expected output?
If no then your folder name \\Server\Server F Drive\Need to Sort is
incorrect. Perhaps it has an invisible trailing space.



Kardon Coupé said:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop up,
but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File
Not Found", I'm thinking it is something to do with working on a
Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was
only taking part of the folder because of the spaces, and it was
outputing the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files with
a .xls or a .doc extension, also work recursively within the folder,
so if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from
work and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the
batch file in there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search
terms in)

Hope someone can help me with this matter as I'm no good using
DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task with
a few Command Console commands under Windows XP. Here is a batch file
solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with [del
"%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
K

Kardon Coupé

Tried that, and it didn't echo the delete command, it just sat there a
second or two after the last 'press any key' and then closed the command
prompt window. so I thought i'd try replacing the %Target%, etc in the
script line, with the actually values, and tried to run it direct in the
command prompt (which I don't know wether you can or can't), and I got the
response..

%%a was unexpected at this time.

I'm just going to copy the files from the server over to a local drive and
see it is works on that, maybe it is an issue with working from a network
drive?

Pegasus (MVP) said:
The trick here is to approach the problem one step at a time. Run this
batch file this time:

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a" & pause

The program won't attempt to delete any files but it will echo the full
"delete" command to the screen, then pause. Now do this:
1. Press Ctrl+C to stop the batch file.
2. Examine the command carefully. Is it correct? If not, what's wrong?
3. Retype the command manually, letter by letter. Does it work? If not,
why not?


Kardon Coupé said:
It correctly displayed the directory in the command window, but failed to
delete all 'other' files.

Pegasus (MVP) said:
Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing flash,
nothing fancy. It will then pause. Does it generate the expected output?
If no then your folder name \\Server\Server F Drive\Need to Sort is
incorrect. Perhaps it has an invisible trailing space.



@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop up,
but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File
Not Found", I'm thinking it is something to do with working on a
Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was
only taking part of the folder because of the spaces, and it was
outputing the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files
with a .xls or a .doc extension, also work recursively within the
folder, so if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from
work and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the
batch file in there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search
terms in)

Hope someone can help me with this matter as I'm no good using
DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task
with a few Command Console commands under Windows XP. Here is a
batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with [del
"%%a"].

You must adjust lines 2 and 3 to suit your specific requirements. To
activate the batch file, remove the word "echo" in line 4.
 
K

Kardon Coupé

Nope, even on a local drive, exactly the same thing happens, only quicker...

Displays message that is going to Check
Press any key
Lists Directory
Press any key
Closes Command Prompt

Kardon Coupé said:
Tried that, and it didn't echo the delete command, it just sat there a
second or two after the last 'press any key' and then closed the command
prompt window. so I thought i'd try replacing the %Target%, etc in the
script line, with the actually values, and tried to run it direct in the
command prompt (which I don't know wether you can or can't), and I got the
response..

%%a was unexpected at this time.

I'm just going to copy the files from the server over to a local drive and
see it is works on that, maybe it is an issue with working from a network
drive?

Pegasus (MVP) said:
The trick here is to approach the problem one step at a time. Run this
batch file this time:

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a" & pause

The program won't attempt to delete any files but it will echo the full
"delete" command to the screen, then pause. Now do this:
1. Press Ctrl+C to stop the batch file.
2. Examine the command carefully. Is it correct? If not, what's wrong?
3. Retype the command manually, letter by letter. Does it work? If not,
why not?


Kardon Coupé said:
It correctly displayed the directory in the command window, but failed
to delete all 'other' files.

Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing flash,
nothing fancy. It will then pause. Does it generate the expected
output? If no then your folder name \\Server\Server F Drive\Need to
Sort is incorrect. Perhaps it has an invisible trailing space.



@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop
up, but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File
Not Found", I'm thinking it is something to do with working on a
Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was
only taking part of the folder because of the spaces, and it was
outputing the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files
with a .xls or a .doc extension, also work recursively within the
folder, so if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from
work and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the
batch file in there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search
terms in)

Hope someone can help me with this matter as I'm no good using
DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task
with a few Command Console commands under Windows XP. Here is a
batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v
/i "%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with [del
"%%a"].

You must adjust lines 2 and 3 to suit your specific requirements.
To activate the batch file, remove the word "echo" in line 4.
 
P

Pegasus \(MVP\)

It seems this particular train got off the rails from the very start. You
were meant to run the batch file with the "echo" command in place in the
last line so that you could see for yourself if it was going deleted the
right files. It never did but you removed the "echo" command regardless.
This is dangerous!

There is no basis at all for your suspicion that network shares have
anything to do with your problem. Let's instead go back to even more basic
stuff. Try this:
1. Open a Command Prompt.
2. Type these commands, one at a time, and stop when you get a problem.
set Target=\\Server\Server F Drive\Need to Sort{Enter}
set ext=.doc .xls{Enter}
dir "%Target%"{Enter}
dir /b /s /a-d "%Target%"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i ".doc .xls"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i "%ext%"{Enter}

How far did you get?


Kardon Coupé said:
Tried that, and it didn't echo the delete command, it just sat there a
second or two after the last 'press any key' and then closed the command
prompt window. so I thought i'd try replacing the %Target%, etc in the
script line, with the actually values, and tried to run it direct in the
command prompt (which I don't know wether you can or can't), and I got the
response..

%%a was unexpected at this time.

I'm just going to copy the files from the server over to a local drive and
see it is works on that, maybe it is an issue with working from a network
drive?

Pegasus (MVP) said:
The trick here is to approach the problem one step at a time. Run this
batch file this time:

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a" & pause

The program won't attempt to delete any files but it will echo the full
"delete" command to the screen, then pause. Now do this:
1. Press Ctrl+C to stop the batch file.
2. Examine the command carefully. Is it correct? If not, what's wrong?
3. Retype the command manually, letter by letter. Does it work? If not,
why not?


Kardon Coupé said:
It correctly displayed the directory in the command window, but failed
to delete all 'other' files.

Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing flash,
nothing fancy. It will then pause. Does it generate the expected
output? If no then your folder name \\Server\Server F Drive\Need to
Sort is incorrect. Perhaps it has an invisible trailing space.



@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop
up, but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got "File
Not Found", I'm thinking it is something to do with working on a
Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was
only taking part of the folder because of the spaces, and it was
outputing the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files
with a .xls or a .doc extension, also work recursively within the
folder, so if any subfolders are found it will deal with them too.

Is it possible, I'm usually the end person who receives files from
work and all I need is the .xls and .doc files, nothing else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the
batch file in there..

I've tried looking around Google (etc) for 3rd party software, but
nothing has jumped out at me (maybe I'm putting the wrong search
terms in)

Hope someone can help me with this matter as I'm no good using
DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task
with a few Command Console commands under Windows XP. Here is a
batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v
/i "%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with [del
"%%a"].

You must adjust lines 2 and 3 to suit your specific requirements.
To activate the batch file, remove the word "echo" in line 4.
 
K

Kardon Coupé

The first dir does what it is supposed to and lists the directories, but
only the top level directories within the main folder.
The second dir does the same, but, goes inside and displays anything that is
within the folder, to the level of the last file in the last folder.

The last two dirs sit there for a split second, but don't return any
results...

Pegasus (MVP) said:
It seems this particular train got off the rails from the very start. You
were meant to run the batch file with the "echo" command in place in the
last line so that you could see for yourself if it was going deleted the
right files. It never did but you removed the "echo" command regardless.
This is dangerous!

There is no basis at all for your suspicion that network shares have
anything to do with your problem. Let's instead go back to even more basic
stuff. Try this:
1. Open a Command Prompt.
2. Type these commands, one at a time, and stop when you get a problem.
set Target=\\Server\Server F Drive\Need to Sort{Enter}
set ext=.doc .xls{Enter}
dir "%Target%"{Enter}
dir /b /s /a-d "%Target%"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i ".doc .xls"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i "%ext%"{Enter}

How far did you get?


Kardon Coupé said:
Tried that, and it didn't echo the delete command, it just sat there a
second or two after the last 'press any key' and then closed the command
prompt window. so I thought i'd try replacing the %Target%, etc in the
script line, with the actually values, and tried to run it direct in the
command prompt (which I don't know wether you can or can't), and I got
the response..

%%a was unexpected at this time.

I'm just going to copy the files from the server over to a local drive
and see it is works on that, maybe it is an issue with working from a
network drive?

Pegasus (MVP) said:
The trick here is to approach the problem one step at a time. Run this
batch file this time:

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a" & pause

The program won't attempt to delete any files but it will echo the full
"delete" command to the screen, then pause. Now do this:
1. Press Ctrl+C to stop the batch file.
2. Examine the command carefully. Is it correct? If not, what's wrong?
3. Retype the command manually, letter by letter. Does it work? If not,
why not?


It correctly displayed the directory in the command window, but failed
to delete all 'other' files.

Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing
flash, nothing fancy. It will then pause. Does it generate the
expected output? If no then your folder name \\Server\Server F
Drive\Need to Sort is incorrect. Perhaps it has an invisible trailing
space.



@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop
up, but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got
"File Not Found", I'm thinking it is something to do with working
on a Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was
only taking part of the folder because of the spaces, and it was
outputing the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder and
search everything within it, and delete every file except files
with a .xls or a .doc extension, also work recursively within the
folder, so if any subfolders are found it will deal with them
too.

Is it possible, I'm usually the end person who receives files
from work and all I need is the .xls and .doc files, nothing
else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the
batch file in there..

I've tried looking around Google (etc) for 3rd party software,
but nothing has jumped out at me (maybe I'm putting the wrong
search terms in)

Hope someone can help me with this matter as I'm no good using
DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task
with a few Command Console commands under Windows XP. Here is a
batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v
/i "%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with
[del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements.
To activate the batch file, remove the word "echo" in line 4.
 
P

Pegasus \(MVP\)

We're getting closer. It appears that this command does not give you what
you expect:
dir /b /s /a-d "%Target%" | findstr /v /i ".doc .xls"{Enter}

Questions:
1. Do you have at least one space between .doc and .xls?
2. Do you have any files in the target folder other than .doc or .xls?



Kardon Coupé said:
The first dir does what it is supposed to and lists the directories, but
only the top level directories within the main folder.
The second dir does the same, but, goes inside and displays anything that
is within the folder, to the level of the last file in the last folder.

The last two dirs sit there for a split second, but don't return any
results...

Pegasus (MVP) said:
It seems this particular train got off the rails from the very start. You
were meant to run the batch file with the "echo" command in place in the
last line so that you could see for yourself if it was going deleted the
right files. It never did but you removed the "echo" command regardless.
This is dangerous!

There is no basis at all for your suspicion that network shares have
anything to do with your problem. Let's instead go back to even more
basic stuff. Try this:
1. Open a Command Prompt.
2. Type these commands, one at a time, and stop when you get a problem.
set Target=\\Server\Server F Drive\Need to Sort{Enter}
set ext=.doc .xls{Enter}
dir "%Target%"{Enter}
dir /b /s /a-d "%Target%"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i ".doc .xls"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i "%ext%"{Enter}

How far did you get?


Kardon Coupé said:
Tried that, and it didn't echo the delete command, it just sat there a
second or two after the last 'press any key' and then closed the command
prompt window. so I thought i'd try replacing the %Target%, etc in the
script line, with the actually values, and tried to run it direct in the
command prompt (which I don't know wether you can or can't), and I got
the response..

%%a was unexpected at this time.

I'm just going to copy the files from the server over to a local drive
and see it is works on that, maybe it is an issue with working from a
network drive?

The trick here is to approach the problem one step at a time. Run this
batch file this time:

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a" & pause

The program won't attempt to delete any files but it will echo the full
"delete" command to the screen, then pause. Now do this:
1. Press Ctrl+C to stop the batch file.
2. Examine the command carefully. Is it correct? If not, what's wrong?
3. Retype the command manually, letter by letter. Does it work? If not,
why not?


It correctly displayed the directory in the command window, but failed
to delete all 'other' files.

Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing
flash, nothing fancy. It will then pause. Does it generate the
expected output? If no then your folder name \\Server\Server F
Drive\Need to Sort is incorrect. Perhaps it has an invisible trailing
space.



@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop
up, but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got
"File Not Found", I'm thinking it is something to do with working
on a Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was
only taking part of the folder because of the spaces, and it was
outputing the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder
and search everything within it, and delete every file except
files with a .xls or a .doc extension, also work recursively
within the folder, so if any subfolders are found it will deal
with them too.

Is it possible, I'm usually the end person who receives files
from work and all I need is the .xls and .doc files, nothing
else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the
batch file in there..

I've tried looking around Google (etc) for 3rd party software,
but nothing has jumped out at me (maybe I'm putting the wrong
search terms in)

Hope someone can help me with this matter as I'm no good using
DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task
with a few Command Console commands under Windows XP. Here is a
batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v
/i "%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with
[del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements.
To activate the batch file, remove the word "echo" in line 4.
 
T

Tim Jackson

Kardon Coupé said:
The first dir does what it is supposed to and lists the directories, but
only the top level directories within the main folder.
The second dir does the same, but, goes inside and displays anything that
is within the folder, to the level of the last file in the last folder.

The last two dirs sit there for a split second, but don't return any
results...

Pegasus (MVP) said:
It seems this particular train got off the rails from the very start. You
were meant to run the batch file with the "echo" command in place in the
last line so that you could see for yourself if it was going deleted the
right files. It never did but you removed the "echo" command regardless.
This is dangerous!

There is no basis at all for your suspicion that network shares have
anything to do with your problem. Let's instead go back to even more
basic stuff. Try this:
1. Open a Command Prompt.
2. Type these commands, one at a time, and stop when you get a problem.
set Target=\\Server\Server F Drive\Need to Sort{Enter}
set ext=.doc .xls{Enter}
dir "%Target%"{Enter}
dir /b /s /a-d "%Target%"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i ".doc .xls"{Enter}
dir /b /s /a-d "%Target%" | findstr /v /i "%ext%"{Enter}

How far did you get?


Kardon Coupé said:
Tried that, and it didn't echo the delete command, it just sat there a
second or two after the last 'press any key' and then closed the command
prompt window. so I thought i'd try replacing the %Target%, etc in the
script line, with the actually values, and tried to run it direct in the
command prompt (which I don't know wether you can or can't), and I got
the response..

%%a was unexpected at this time.

I'm just going to copy the files from the server over to a local drive
and see it is works on that, maybe it is an issue with working from a
network drive?

The trick here is to approach the problem one step at a time. Run this
batch file this time:

@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do echo del "%%a" & pause

The program won't attempt to delete any files but it will echo the full
"delete" command to the screen, then pause. Now do this:
1. Press Ctrl+C to stop the batch file.
2. Examine the command carefully. Is it correct? If not, what's wrong?
3. Retype the command manually, letter by letter. Does it work? If not,
why not?


It correctly displayed the directory in the command window, but failed
to delete all 'other' files.

Fine. Now run your script like so:
@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo Checking the target folder xxx%Target%yyy
pause
dir /b /s /a-d "%Target%"
pause
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

The script will do a basic "dir" command on your target. Nothing
flash, nothing fancy. It will then pause. Does it generate the
expected output? If no then your folder name \\Server\Server F
Drive\Need to Sort is incorrect. Perhaps it has an invisible trailing
space.



@echo off
set Target=\\Server\Server F Drive\Need to Sort
set ext=.xls .doc
echo %Target%
echo %ext%
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v /i
"%ext%"') do del "%%a"

Like I said, I added in echo's for the command prompt.

Let's have a look at your version of the script!

I think I might be doing something wrong, I see the CMD window pop
up, but it is too quick, and the files are still there....

So I opened up Command Prompt and ran it from there, and I got
"File Not Found", I'm thinking it is something to do with working
on a Network Drive.

I added in echo %Target% and echo %ext% just to see whether it was
only taking part of the folder because of the spaces, and it was
outputing the full foldername??

Will this work on either network drives, or drives that have been
mapped to a letter... also if the folder name has spaces in?

Sorry to be a pain...
Regards
Paul.


Dear All,

I'm looking for a way using a DOS batch file to take a folder
and search everything within it, and delete every file except
files with a .xls or a .doc extension, also work recursively
within the folder, so if any subfolders are found it will deal
with them too.

Is it possible, I'm usually the end person who receives files
from work and all I need is the .xls and .doc files, nothing
else...

Is this possible... Ideally, I would like to right click on the
folder and use the 'SendTo' option and have the shortcut to the
batch file in there..

I've tried looking around Google (etc) for 3rd party software,
but nothing has jumped out at me (maybe I'm putting the wrong
search terms in)

Hope someone can help me with this matter as I'm no good using
DOS...

Thanks in advance.
Regards
Paul.

Unfortunately DOS cannot do this sort of thing. But then DOS is a
legacy operating system introduced some 30 years ago that is only
rarely used these days. However, you can easily perform the task
with a few Command Console commands under Windows XP. Here is a
batch file solution for you:
@echo off
set Target=D:\My Documents
set ext=.xls .doc
for /F "delims=" %%a in ('dir /b /s /a-d "%Target%" ^| findstr /v
/i "%ext%"') do echo del "%%a"

Do not retype the file - use copy & paste instead. Note that the
fourth line is a long line. It starts with [for] and ends with
[del "%%a"].

You must adjust lines 2 and 3 to suit your specific requirements.
To activate the batch file, remove the word "echo" in line 4.

Try changing the definition of "ext" to include the "\" escape code, i.e.

set ext=\.doc \.xls{Enter}


findstr by default uses the "." character as a wildcard (any character)
match, by using the "\" escape the "." will be included in the search
string.
 
K

Kardon Coupé

"Pegasus (MVP)" Questions:
1. Do you have at least one space between .doc and .xls?

Yup, I did.
2. Do you have any files in the target folder other than .doc or .xls?

Yup, I do..

"Tim Jackson"
Try changing the definition of "ext" to include the "\" escape code, i.e.

set ext=\.doc \.xls{Enter}


findstr by default uses the "." character as a wildcard (any character)
match, by using the "\" escape the "." will be included in the search
string.

That Did the trick....

Thanks Guys for all your help and patience...

Regards
Paul.
 
P

Pegasus \(MVP\)

"Tim Jackson" <nobody(at)baesystems.com> wrote in message
Try changing the definition of "ext" to include the "\" escape code, i.e.

set ext=\.doc \.xls{Enter}

findstr by default uses the "." character as a wildcard (any character)
match, by using the "\" escape the "." will be included in the search
string.

This is rather strange - I had fully tested the code in its original form
and it worked perfectly on my machine.
 
K

Kardon Coupé

This is rather strange - I had fully tested the code in its original form
and it worked perfectly on my machine.

Well, at least we've got two options now, should the problem or request
arise, we'll all know how to get around a possible problem if the next
requester has a machine configuration similar to mine... =-)

Regards
Paul
 
P

Pegasus \(MVP\)

Kardon Coupé said:
Well, at least we've got two options now, should the problem or request
arise, we'll all know how to get around a possible problem if the next
requester has a machine configuration similar to mine... =-)

Regards
Paul

That's nice to know but does not tell me much because I don't know what the
difference is between your installation and mine . . .
 
K

Kardon Coupé

True, True, but rather than clog up a news group, if you want me to do any
other tests, leave me an email address (obvsiously with no_spam, etc in the
printed address) and I'll drop you a line...

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top