amin ssss | 3 May 2005 22:16
Picon
Favicon

question<bat to know image size>

how can i make a batch file to detect image width and image height
???????????
and how i can let the batch file pass these values or give them to a c++ file
can i??????????????????????
thnx in advance
amin
merci beaucoup

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@... 
gsusfreak11674 | 3 May 2005 22:47

Creating a pop up window upon completion

Does anyone know how to create a batch file that will display a pop up 
window to indicate that the job completed?

I have an Xcopy batch file that I created and I would like to have a 
small window pop up that says "Job Completed Successfully"

and if it errors out, another that says "Operation Failed".

Thanks,
Bob

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@... 
webmaster_in_maine | 3 May 2005 15:58
Favicon

batch file automation question

Hi everybody,

I'm looking for a way to automate a process. I need to process log 
files before my analysis program goes through them.

Using the wonderful program sed (the windows port) I can 
automatically run through the log file removing specific IP 
addresses.

My question is how to invoke this program from a batch file so that 
it processes only the most recent log file?

I need the batch program to find the file with the latest date 
(ex050503.log), and pass that in a parameter to my sed script.

Any suggestions on how to set this up?

thanks for any ideas, in advance.

Geoffrey
webmaster_in_maine

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@... 
Patrick Donahue | 4 May 2005 02:31
Picon

Re: question<bat to know image size>

You might want to take a look at ImageMagick.  Its a free program that
has a lot of command line tools for image processing.

Best Wishes,
Patrick

On 5/3/05, amin ssss <aminy1982@...> wrote:
> how can i make a batch file to detect image width and image height
> ???????????
> and how i can let the batch file pass these values or give them to a c++ file
> can i??????????????????????
> thnx in advance
> amin
> merci beaucoup
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> [Non-text portions of this message have been removed]
> 
> To Post a message, send it to:   batchworld@...
> 
> To Unsubscribe, send a blank message to: batchworld-unsubscribe@...
> Yahoo! Groups Links
> 
> 
> 
> 
(Continue reading)

Garry Deane | 4 May 2005 02:48
Picon

Re: batch file automation question

--- In batchworld@..., "webmaster_in_maine" <gbaker <at> g...> 
wrote:
> Hi everybody,
> 
> I'm looking for a way to automate a process. I need
> to process log files before my analysis program
> goes through them.
> 
> Using the wonderful program sed (the windows port)
> I can automatically run through the log file removing
> specific IP addresses.
> 
> My question is how to invoke this program from a
> batch file so that it processes only the most recent
> log file?
> 
> I need the batch program to find the file with the
> latest date (ex050503.log), and pass that in a
> parameter to my sed script.
> 
> Any suggestions on how to set this up?
> 
> thanks for any ideas, in advance.
> 
> Geoffrey
> webmaster_in_maine

Since the latest log file will also have the latest
modified date, you can use a FOR /F with a DIR command
sorted in date order to get the latest file.
(Continue reading)

Garry Deane | 4 May 2005 03:00
Picon

Re: Creating a pop up window upon completion

--- In batchworld@..., "gsusfreak11674" <bob <at> g...> wrote:
> Does anyone know how to create a batch file that
> will display a pop up window to indicate that the
> job completed?
> 
> I have an Xcopy batch file that I created and I
> would like to have a small window pop up that says
> "Job Completed Successfully"
> 
> and if it errors out, another that says "Operation
> Failed".
> 
> Thanks,
> Bob

Assuming you haven't disabled the messenger service,
use NET SEND e.g.

xcopy .....
set mssg="Job Completed Successfully"
if errorlevel 1 set mssg="Operation Failed"
net send %computername% %mssg%

There are also utility programs around that will
do the same thing or you could use the wsh msgbox.

Garry

To Post a message, send it to:   batchworld@...

(Continue reading)

Bob Griffin | 4 May 2005 06:30

Re: Creating a pop up window upon completion

Thanks for the quick reply and this would work great, but they are all XP
machines and the Messenger service is disabled by default.  Is there another
way to have the pop up happen.  

OR Is there a way to show a completion bar or progress bar like the
following?

Ex: of completion bar:

1%_________________________________________100%

>>>>>>>>>>>>>>>>>>>>>>>>>>>> 

Thx,

Bob

  _____  

From: batchworld@...
[mailto:batchworld@...] On
Behalf Of Garry Deane
Sent: Tuesday, May 03, 2005 6:01 PM
To: batchworld@...
Subject: [BATCH WORLD] Re: Creating a pop up window upon completion

--- In batchworld@..., "gsusfreak11674" <bob <at> g...> wrote:
> Does anyone know how to create a batch file that
> will display a pop up window to indicate that the
> job completed?
(Continue reading)

Garry Deane | 4 May 2005 10:41
Picon

Re: Creating a pop up window upon completion

--- In batchworld@..., "Bob Griffin" <bob <at> g...> wrote:
> Thanks for the quick reply and this would work
> great, but they are all XP machines and the
> Messenger service is disabled by default.
> Is there another way to have the pop up happen.  

You can use a utility such as MsgBox. One such is
http://www.paulsadowski.com/WSH/cmdprogs.htm

Or you can create a .vbs script on the fly to do
the same thing. Here is some code that I use:

01.  <at> echo off
02. setlocal
03. set msg=This is a popup message
04. if exist %temp%\msgbox.tmp del %temp%\msgbox.tmp > nul
05. > %temp%\msgbox.vbs echo Set oFS=CreateObject
("Scripting.FileSystemObject")
06. >> %temp%\msgbox.vbs echo oFS.CreateTextFile("%temp%
\msgbox.tmp",2).WriteLine "flag"
07. >> %temp%\msgbox.vbs echo MyVar = MsgBox ("%msg%", 64, "Batch 
popup")
08. start wscript.exe %temp%\msgbox.vbs
09. :: Wait to allow wscript to start before deleting the file
10. :waitloop
11. ping -n 2 127.0.0.1 > nul
12. if not exist %temp%\msgbox.tmp goto :waitloop
13. del %temp%\msgbox.tmp %temp%\msgbox.vbs

Or you can create a permanent vbs program that will
(Continue reading)

SKARSATAI | 4 May 2005 11:39
Picon
Favicon

switch default printer with batch on certain days

hello community
I have another batchproblem where I need some hints or help

I have two printers on a windows xp professional client

the user wishes to use the one printer (optra810) at Monday and friday
and a xerox phaser at tuesday,wednesday, thursday. do not ask me why, 
I do not understand it either. he is too lazy to switch it manually , 
so I was ordered to to something. ( I do not have to mention, he is a 
VIP :-)  ) 
ok
I created this little batch so far it works ( when it comes to the 
technical point the batch changes the default printer). at the moment 
I generated a test switch so it changes from printer a( optra)  back 
to b(xerox )
but how does it work, that for the working day monday/friday optra is 
default and tuesday,wednesday,thursday xerox is the defaultprinter ? 
any help or hint is appreciated ! 
thanks
martin

 <at> echo off
rem *********************************************
rem *                                           *
rem * swap printer batch file                   *
rem *                                           *
rem *********************************************
cscript //H:Cscript //S //B
prnmngr -g 
prnmngr -t -p "Lexmark Optra W810 (rm2p2197.mah.roche.com:1)" -
(Continue reading)

SKARSATAI | 4 May 2005 11:43
Picon
Favicon

change default printer with batch at certain days

hello community
I have another batchproblem where I need some hints or help

I have two printers on a windows xp professional client

the user wishes to use the one printer (optra810) at Monday and friday
and a xerox phaser at tuesday,wednesday, thursday. do not ask me why,
I do not understand it either. he is too lazy to switch it manually ,
so I was ordered to to something. ( I do not have to mention, he is a
VIP :-) )
ok
I created this little batch so far it works ( when it comes to the
technical point the batch changes the default printer). at the moment
I generated a test switch so it changes from printer a( optra) back
to b(xerox )
but how does it work, that for the working day monday/friday optra is
default and tuesday,wednesday,thursday xerox is the defaultprinter ?
any help or hint is appreciated !
thanks
martin

 <at> echo off
rem *********************************************
rem * *
rem * swap printer batch file *
rem * *
rem *********************************************
cscript //H:Cscript //S //B
prnmngr -g
prnmngr -t -p "Lexmark Optra W810 (rm2p2197.xxx.xxx.com:1)" -
(Continue reading)


Gmane