Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Batch code to search for new files

queenss, on Sunday 25 May 2008 à 13:54:28
Hello,


I need a batch file to search a bunch of sub folders. The following is an example:
main\sub1\new
main\sub2\new
main\sub3\new
etc
I need to search all the 'new' folders for files. If any are found then display the 'sub?' name followed by the files in its new folder. I would really appreciate it if someone would help me out.
Configuration: Windows XP
Internet Explorer 6.0
Reply to queenss  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
ituserit, on Sunday 25 May 2008 à 14:21:24
Hello



@echo off

for /f "tokens=* delims= " %%a in ('dir/s/b/ad \ ^|find /i "new"') do (
echo %%a

dir /b/a-d "%%a"

)
Reply to ituserit

2


  • This message seems useful, vote!
  • Report this message to moderators
manu, on Thursday 25 September 2008 à 08:41:50
send search(by file name,foldername and id) programs
Reply to manu

3


  • This message seems useful, vote!
  • Report this message to moderators
 supergamerX, on Sunday 9 November 2008 à 17:10:14
@echo off
dir "main\sub1\new\%1"
if exist "main\sub1\new\%1" goto found
if not exist "main\sub1\new\%1" goto nvm
:found
echo files found!
ping localhost -n 3 >nul
EXIT
:nvm
echo no files found.
ping localhost -n 3 >nul
EXIT
Reply to supergamerX

Résultats pour Batch code to search for new files

Startup batch code Hello, ok, heres the problem, i have gone to numerous sites and none of the codes i got from them helped, i need a batch code that will automatically embed the batch file in the startup folder so that it executes on startup. I am running a Vista SP1... en.kioskea.net/forum/affich-10687-startup-batch-code
Writing specific lines to new file Hello, Hi, I have a file with 60 lines. I want to write from line 10-20 to one file, 21-40 to another new file, 41-60 to another new file. Can anybody please help me on this? en.kioskea.net/forum/affich-6241-writing-specific-lines-to-new-file
Download K-Lite Codec Pack Full K-Lite Codec Pack is a collection of VFW/ACM codecs, DirectShow filters and tools. Codecs and DirectShow filters are needed for encoding and decoding (playing) audio and video formats. Contents of version 4.2.5 : Player: Media Player... en.kioskea.net/telecharger/telecharger-45-k-lite-codec-pack-full

Résultats pour Batch code to search for new files

Associating an application to a file extension=Associating an application to a file extension= Display all file extensions Modify an existing file association Create a new file association Manage the list of file extensions Display all file extensions Windows XP by default will... en.kioskea.net/faq/sujet-831-associating-an-application-to-a-file-extension
What is an MKV file and how to read itWhat is an MKV file and how to read it What is an MKV file? An MKV file is an audio and video container that can support various audio, video and subtitle compression formats. MKV files usually have a menu system slightly similar to a DVD menu,... en.kioskea.net/faq/sujet-286-what-is-an-mkv-file-and-how-to-read-it

Résultats pour Batch code to search for new files

Problem with space (Solved)Hi All, I have a flat file contains some records, I have to add a header and trailer to that flat file and store that in a new file. I am not aware of how to put the space using unix commands, like in RPAD('BILLS',10,' ') in Sql... en.kioskea.net/forum/affich-1342-problem-with-space
Help in AWKHello, i want to check for a field on file and if the field from 670 to 672 is TX,OK,WA then i need to write those lines in a new file , if not it should be written in another file. i tried the below one but its not working... can someone look for... en.kioskea.net/forum/affich-5417-help-in-awk
Acer Aspire 5100Hello, Can anyone make me a batch code that will execute a command when the command prompt is closed, something like a 'on-close' command or something, i tried anything i know of. Is there even a way to do this ? Please Help. en.kioskea.net/forum/affich-10092-acer-aspire-5100

Résultats pour Batch code to search for new files

Download Advanced DVD PlayerAt present, it is necessary to have a reader multiformats to be able to read every the codec and files mass media which they can find on Internet. AdvancedDVDplayer is a reader allowing to read files DVDs, films, audio files and pictures. Not only he... en.kioskea.net/telecharger/telecharger-565-advanced-dvd-player
Download MediaCoderMediaCoder is a free universal batch media transcoder, which nicely integrates most popular audio/video codecs and tools into an all-in-one solution. With a flexible and extendable architecture, new codecs and tools are added in constantly as well as... en.kioskea.net/telecharger/telecharger-92-mediacoder

Résultats pour Batch code to search for new files

Australia unveils online code of conductA girls uses her mobile phone in this 2004 picture. Australia has unveiled a new code of conduct to regulate online and mobile phone content which will call for classifications similar to those for films. Australia on Wednesday unveiled a new code of... en.kioskea.net/actualites/australia-unveils-online-code-of-conduct-10544-actualite.php3

Résultats pour Batch code to search for new files

UNIX system - Commands Unix Commands Description Options ls lists the content of a directory -a Displays all files, including hidden files -I Displays a detailed listing -R Displays the files recursively (i.e. in the sub-directories) -d Displays only the directories and... en.kioskea.net/unix/unixcomm.php3
Linux - The shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines that are entered by the latter.... en.kioskea.net/linux/linshell.php3
The NTFS file system The NTFS file system (New Technology File System) is based on a structure called the "master file table" or MFT, which is able to hold detailed information on files. This system allows the use of long names, but, unlike the FAT32 system, it is case... en.kioskea.net/repar/ntfs.php3