alt.msdos.batch.nt
  Home FAQ Contact Sign in
alt.msdos.batch.nt only
 
Advanced search
September 2008
motuwethfrsasuw
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
alt.msdos.batch.nt Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  (List or Array(Unidimencional)) Date structure in time of execution         


Author: J Ivan P Silvestre
Date: Sep 7, 2008 04:41

Is true in bath dont exist list's or array's so I create the an
estructure with diferents method's just like a List in c#:

------------------------------------------------------------------------------
:List_add_value
set %%1=%%2,%%3
goto:EOF

:List_Return_Value_by_index
set count=0
if %%2 lss 0 (echo Index inexistent!!! & goto:EOF)
set lenght=0
call :List_Lenght %%1 lenght
if %%lenght%% lss %%2 (echo Index inexistent!!! & goto:EOF)
for %%%%k in (%%~1) do (if %%2 equ %%count%% (set %%3=%%%%k) else (set /a count
+=1) )
goto:EOF
Show full article (3.65Kb)
1 Comment
  Fibonacci         


Author: J Ivan P Silvestre
Date: Sep 7, 2008 04:29

Hi group:
Iterative method for Fibonacci in bath:
----------------------------------------------------------------------------
:Fibonacci
if %%1 leq 0 (echo Invalid Operation Exception&goto:END)
if %%1 lss 3 (echo 1&goto:END) else (call :major %%1&goto:END )
:major
set minusone=1
set minustwo=1
FOR /L %%%%a IN (3, 1, %%1) do call :sum
echo %%fib%%
:sum
set /A fib=%%minusone%% + %%minustwo%%
set minustwo=%%minusone%%
set minusone=%%fib%%
goto:END
if you want see the 10 first elements you can do it just like in this
code:
@echo off
FOR /L %%%%a IN (0, 1, 10) do Call :Fibonacci %%%%a ...
Show full article (1.77Kb)
3 Comments
  rename 500 files         


Author: pjugdfstsr
Date: Sep 3, 2008 12:14

Hello

I have 500 files(or more). These i need to be named 2.pdf 4.pdf 6.pdf etc.
Is there somebody that can make a batch file, because i can't do it.
I can rename a file but here i have to make a loop and that i don't know.

Thanks to the person that will do it for me.

--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
2 Comments
  Re: Batch file information and FAQs         


Author: Matthias Tacke
Date: Sep 3, 2008 08:28

Timo Salmi wrote:
> Please define your OS when posing a batch/script question.
>
> All the best, Timo
>
Hi Timo,

some people may really be posing when posting a question,
but how can you know?

LOL I'm trying to imagine how to define an OS by pantomiming ;-)
And you will need a video connection to even notice it - that's
beyond usenet I guess.

--
Regards
Matthias
4 Comments
  Batch for file copy.         


Author: Thomas Drebert
Date: Sep 2, 2008 11:15

Hello

I have a directory with images with counting file names like 0001.png up
to 1500.png.
How can i copy every 60 files like 0001.png 0061.pnd 0121.png to a new
folder.
Next level is rename the files by creating date and time.

OS: windows XP

regards
Thomas
3 Comments
  More Attacks on Timo Salmi         


Author: RidgemontRat77884
Date: Aug 31, 2008 19:10

Not only is Timo Salmi an arrogant person whose only accounting
experience is from behind the walls of academia, but like I've said
before, Timo is from Finland, one of the most unimportant countries on
the world scene.

Just look at the recent Olympics in China. Amoung countries that
competed, Finland came in 47th in the total medal count! That's
horrible!

Timo, your nation stinks.
13 Comments
  XCOPY and how to copy folder structure ??         


Author: Paul
Date: Aug 31, 2008 11:05

Hello all.

I am using this to copy:

@echo off
for /f "tokens=3 delims=\" %%%%i in ("%%USERPROFILE%%") do (set user=%%%%i)
2>&1
echo "logged in user: %%user%%"

set COPYCMD=/Y

xcopy "C:\Documents and Settings\user\Application Data\Adobe\InDesign
\Version 5.0" f:\%%user%%\test\

Now, the Version 5.0 directory has other subdirectories in it, other
sub folders. All that copies over to f:\user\test are the files in
the Version 5.0 directory and not the subfolders and files within
those sub folders. What am I doing wrong?...What do I need to do to
copy SubFolders and files within them as well?

thanks
2 Comments
  silently install screensaver         


Author: Ferry
Date: Aug 29, 2008 10:37

hallo!

how can i install a screensaver.scr ?

Have I only to copy it in the %%systemroot%%\system32 directory?
I've read somewhere that's not enough and that it had to be used
rundll32.exe desk.cpl,InstallScreenSaver

... i've tried this in win2000 and in XP but did not work :(
it opens the tab screensaver in screen properties and nothing else happens
:((

Do you have some useful solutions? :))
19 Comments
  WIN XP batch command files         


Author: feteruz
Date: Aug 29, 2008 07:57

Hi, I need some help on starting programs from simple batch command
file line.
Program has blank characters in their name (i.e. name of program.exe).
Also, it is usual to start a program setting the complete path(i.e. c:
\Program Files\name of pgmdirectory\name of program.exe)
If I use quote char, it starts but it waits until program completion,
and I need to start a couple fo programs.

Just an example:

echo off
rem comments on how to operate
c:\Program Files\name of pgmdirectory1\name of program1.exe
echo pls wait name of program1 to start then press enter
pause
c:\Program Files\name of pgmdirectory2\name of program2.exe
exit

Under these circumstances, I get an error message saying that c:
\Program does not exists.

Any help???
Thx
1 Comment
  How to set a blank/null TITLE?         


Author: John Gray
Date: Aug 28, 2008 02:17

Having set a TITLE for a Command Prompt Window in a XP/2003 batch
file, I want to clear it at a later stage in the execution.

I've tried
TITLE
(which leaves the original title unchanged)
and
TITLE ""
(which gives "" as the title)!

Is there any way to clear the title completely, otherwise I may be
have to compromise with something like
TITLE .

Thanks!
1 Comment
1 2 3 4 5 6 7 8 9