Actually, this is just a part of a very bigger piece of batch file, that's why I haven't displayed everythin'.

But could you please modify it a little bit so it refreshes only everytime I open this piece, and that I can choose which folders this batchfile watches? Because it starts looking in $RECYCLE BIN$ first then I have to wait a few minutes to have it searched my whole 200 GB harddisk.

Also, it doesn't fit on the screen, the maximum of characters in a DOS window vertically is 23 or so... And at the end it says: "Error: Wrong choice. You may only chooze from A-Z, a-z and 0-9" or something like that...

I have modified a little, but could you help me doing the mentioned above?:

You are going to have to figure some things out for yourself,but I will help out a little. After all this is about what youwant to do with your script.

But could you please modify it a little bit so it refreshesonly everytime I open this piece,

I don't know what you mean... Perhaps you have to work on theover all flow control of your script. The script I posted generatesa series of text file and displays them, the "refresh" optionregenerates the files(to display added/no display removed files).

I can choose which folders this batchfile watches

I have added in a variable where you can add a list of searchpatterns. I'm not sure what exactly your after.

the maximum of characters in a DOS window vertically is 23 or soI brought it back down to 12 options, but you should knowabout the mode command. it can change the buffer size.The window may also change size, but mode decides that itself:

mode 150,30

And at the end it says: "Error: Wrong choice. You mayonly chooze from A-Z, a-z and 0-9" or something like that...

That's my fault, I'm not running Win7 and didn't realize that theyhad crippled the choice command. Choice has been aroundfor a while(20+ years?) and the older versions accept almost all printablecharacters(I was using -+*).....

:errscr05clsecho.echo.echo AltSynn \ Error 05echo.echo AltSynn was unable to open the file with Synthesia.echo Synthesia may be not installed, or AltSynn is uncompatibleecho with your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:errscr06clsecho.echo.echo AltSynn \ Error 06echo.echo AltSynn was unable to open the file with MuseScore.echo MuseScore may be not installed, or AltSynnecho doesn't support your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:errscr07clsecho.echo.echo AltSynn \ Error 07echo.echo AltSynn was unable to open the file with Anvil Studio.echo Anvil Studio may be not installed, or AltSynnecho doesn't support your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:errscr08clsecho.echo.echo AltSynn \ Error 08echo.echo AltSynn was unable to open the file with Windows Media Player.echo Windows Media Player may be not installed, or AltSynnecho doesn't support your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:quitexit===== =====

(AltSynn is how I call it)If I want to start !file! with some programs (like "program.exe !file!", where !file! is an argument) , !file! must be packed in in quotes f.e. ==> "C:\Cool Music.mid" because it contains spaces. No matter how I try to fix this, the program keeps giving me an "usage-error".

Also, after :sendfilewmp I wanted to add the configuration. To do so I have to change selscr0 like:

:errscr05clsecho.echo.echo AltSynn \ Error 05echo.echo AltSynn was unable to open the file with Synthesia.echo Synthesia may be not installed, or AltSynn is uncompatibleecho with your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:errscr06clsecho.echo.echo AltSynn \ Error 06echo.echo AltSynn was unable to open the file with MuseScore.echo MuseScore may be not installed, or AltSynnecho doesn't support your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:errscr07clsecho.echo.echo AltSynn \ Error 07echo.echo AltSynn was unable to open the file with Anvil Studio.echo Anvil Studio may be not installed, or AltSynnecho doesn't support your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:errscr08clsecho.echo.echo AltSynn \ Error 08echo.echo AltSynn was unable to open the file with Windows Media Player.echo Windows Media Player may be not installed, or AltSynnecho doesn't support your system.echo.echo [Any] Return to mainmenupause>nulgoto main

:quitexit===== =====Could you please help me, after this my script is finally finished.thanks-- randomray

I've changed it but still this isn't very clear for me,- where and how should I replace filesearch with the user-given filesearch2?

I discovered something you did wrong all the time; take a look at a piece of the script you wrote:===== =====Echo Page %selfile% of %listfiles%type list%selfile%.txtchoice /c:QWERTYUIOPASDFGHJKL-+*X /n set selection=%errorlevel%if %selection% lss 20 ( for /f "tokens=1*" %%a in ('echo * *^&findstr /b "\[!#%selection%!\]" list%selfile%.txt') do ( set file=%%b ) if "!file!"=="*" (goto loop) else goto done)if %selection%==20 if %selfile% gtr 1 (set /a selfile-=1) else set selfile=%listfiles%if %selection%==21 if %selfile% lss %listfiles% (set /a selfile+=1) else set selfile=1if %selection%==22 goto refreshif %selection%==23 exit /bgoto loop===== =====The only way to make this work was that I had to replace %selection% with %errorlevel%, which actually doesn't make much sense because you should normally be able to maximally add 1 to 9 %x things, right?

The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.