Welcome Guest.   Make a donation to an author on the site January 30, 2015, 03:36:40 PM  *

Please login or register.
Or did you miss your validation email?

Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.

You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: [1] 2 3 4 5 6 ... 42 Next
1  Main Area and Open Discussion / General Software Discussion / Re: Diffference between Switces and Parameters in Batch file? on: Today at 03:15:26 PM
Thanks, but that would be a bit too complex for my explanation to hulkbuster.
2  Main Area and Open Discussion / General Software Discussion / Re: Diffference between Switces and Parameters in Batch file? on: Today at 09:33:38 AM
Hi folks, i want to understand some differences between Switches and Parameters.

Switch = they ask the program or script to disable/enable something; on or off; yes/no. (e.g.: 'dir /AD' or 'dir /A-D')
Parameter = provide some information to the program or script. (e.g.: 'dir C:\Temp')
Arguments = the program or script takes an Switch or an Paramter as Argument to controll what it should do and how.

Me think,
- switch is a special kind of an parameter.
- parameter are what I call an application with to act as I want.
- arguments are what an application use to know what to do for me, provided by me as parameter.

I found one site that explains Parameters:Command line parameters
Batch files can only handle parameters %0 to %9

%0 is the program name as it was called,
%1 is the first command line parameter,
%2 is the second command line parameter,
and so on till %9.

What do i understand about %0, and %1 till %9. How does it can be applied in batch file.

Any suggestion from experts would be greatful.


Batch file "Test1.cmd"
ECHO Hello %1

Call as: test1 hulkbuster has a question

Hello hulkbuster

Call as: test1 "hulkbuster has a question"

Hello "hulkbuster has a question"


Batch file "Test2.cmd"
ECHO Hello %~1

Call as: test2 "hulkbuster has a question"

Hello hulkbuster has a question

- - -

Batch file "ParameterPresenter2.cmd"
ECHO 1:_%1_
ECHO 2:_%2_
ECHO 3:_%3_
ECHO 4:_%4_
ECHO 5:_%5_
ECHO 6:_%6_
ECHO 7:_%7_
ECHO 8:_%8_
ECHO 9:_%9_

Call as: ParameterPresenter "Hi folks," i want to "understand some" differences.

1:_"Hi folks,"_
5:_"understand some"_

- - -

If I want to provide a Switch to my batch, like "Test3.cmd /?",
I would have to parse the arguments for '/?' and in case I found it,
switch in my code to the corresponding place:
Pseudo demo code
For ARG in AllArgs
   If ARG == "/?" Then GoTo _displayHelpMessage()
Next ARG

3  Other Software / Found Deals and Discounts / Re: XYplorer 2014 Cyber Monday sale: Lifetime Pro licenses %50 off on: November 27, 2014, 03:50:05 AM
 Thmbsup Like!

4  Main Area and Open Discussion / Living Room / Re: DC MicroGathering USA<->Germany :) on: November 19, 2014, 01:00:54 AM
Wonderful read.   Thanks for sharing, JoTo.  Thmbsup
5  Main Area and Open Discussion / General Software Discussion / Re: What's your preferred File Manager on: November 10, 2014, 06:12:52 AM
Ok.  I'll take a look.  smiley

While you are looking, keep in mind that everything you see can be changed if you don't like it...even the pull-down menus.

If you don't mind...

If you are new to TC, at least I want to recommend this settings:

- - -

Menu / Menü
Extended Menus for Total Commander / Menüs mit allen Befehlen
http://www.totalcmd.net/p...tc850_win81amd64_eng.html  <== take a look!
http://www.totalcmd.net/p...Extended_German_Menu.html  <== Deutsch

- - -

Font / Schrift
"Configuration > Options > Font"______ ==> [Change font]__ ==> 'Default' (instead of Bold)
"Konfigurieren > Einstellungen > Schrift" ==> [Schrift ändern] ==> Schriftschnitt: auf 'Standard' stellen (anstelle von Fett)

- - -

Brackets / klammern
"Configuration > Options > Display"_____ ==> [_] Show square brackets [] around directories
"Konfigurieren > Einstellungen > Anischt" ==> [_] Zeige eckige Klammern [] um Verzeichnisse

[Configuration] <== wincmd.ini

- - -

Shortcuts / Tastaturkürzel
"Configuration > Options > Misc."______ ==> Redefine hotkeys_____________ ==> choose "F2" and for Command: "cm_RenameOnly"
"Konfigurieren > Einstellungen > Diverses ==> Tastenkombination umdefinieren ==> wähle "F2" und als Befehl: "cm_RenameOnly" aus

[Shortcuts] <== wincmd.ini
;Enable 'F2'-key to start inline-rename mode, additional to origin 'Shift+F6'
;Enable 'Ctrl+F' to start find-files, additional to origin 'Alt+F7'     
;Use 'Ctrl+O' to launch DOS-Box in current path
;Disable 'Alt+F4' (Exit, close program), load Help instead
;Disable 'F8' (Delete), load Help instead
;'Alt+P' launch 'edit path box at the top'

- - -

Be more Portable
Set INI-parameter "UseIniInProgramDir" to "7" and use "%Commander_Path%" and relative paths everywhere.
More at the wiki http://www.ghisler.ch/wiki/index.php/Navigation

[Configuration] <== wincmd.ini
UseIniInProgramDir=7 ;7=use the wincmd.ini in the program folder / nimm die Wincmd.INI im TC-Programmordner

- - -

Selection / Auswahl
Move down on selection with Spacebar
Bei Auswahl mittels Leertaste eine Zeile tiefer gehen

[Configuration] <== wincmd.ini

- - -

6  DonationCoder.com Software / Finished Programs / Re: DONE: Please help me find that utility - "Something" To TXT ? on: September 04, 2014, 07:03:11 AM

"ThisIsMyFile.mp3 > ThisIsMyFile.txt"


- create a plain text file with name "ContextmenuCreateTXTFile.cmd"
- add: IF NOT EXIST "%~n1.txt" Null > "%~n1.txt"

- Below the "HKEY_CURRENT_USER\Software\Classes\*\shell\" subkey
- create a new subkey "Create TXT File from selected file" (the name of the context menu entry)
- create beneath a another subkey "command"
- and there change the (Default) REG_SZ and add the value "full\path\to\ContextmenuCreateTXTFile.cmd" "%1"

So you should get now:
HKEY_CURRENT_USER\Software\Classes\*\shell\Create TXT File from selected file\command
(Default)   "full\path\to\ContextmenuCreateTXTFile.cmd" "%1"

OR for Folders:
HKEY_CURRENT_USER\Software\Classes\Directory\Shell\Create TXT File from selected name\command\
(Default)   "full\path\to\ContextmenuCreateTXTFile.cmd" "%1"

Now right click any file, choose "Create TXT File", and you are done.


- - -

You can also do

"ThisIsMyFile.mp3 > ThisIsMyFile.mp3.txt"
IF NOT EXIST "%1.txt" Null > "%1.txt"

or even

"ThisIsMyFile.mp3 > ThisIsMyFile.BAK.mp3"
IF NOT EXIST "%~n1.BAK%~x1" Null >  "%~n1.BAK%~x1"

- - -

And as a bonus:

IF NOT EXIST "%~n1.txt" Null >  "%~n1.txt" & START "" Notepad "%~n1.txt"

Or better:
SET NewFile="%~n1.txt"
IF NOT EXIST %NewFile% Null > %NewFile%  & START "" notepad %NewFile%

- - -

Another example:

HKEY_CURRENT_USER\Software\Classes\*\shell\Create BAK copy of selected file\command
IF NOT EXIST "%~n1.BAK%~x1" COPY %1  "%~n1.BAK%~x1"

HTH? Grin
7  Main Area and Open Discussion / General Software Discussion / Re: Easy way to mark file as done? on: August 22, 2014, 04:53:36 AM
Me think, "read-only" is a file attribute and could be set even by accident.

Wouldn't be renaming (adding a tag. e.g. a leading or trailing underscore)
or moving to a folder (e.g. sub folder "\Done") be a option?
Your used file managers would do that by a script from a button click or a keyboard shortcut.

Names with an specific scheme could even by coloured, to distinguish them in that managers,
and have the scheme to identify them in plain WinExp.

8  DonationCoder.com Software / Screenshot Captor / Re: MiniCap: add EXIF meta data on: August 19, 2014, 01:51:35 AM
Thank you J. for the update.

Works, fine.

I think you should mention that not all programs will detect the meta data comment for PNG and GIF, but f.ex. Phil Harveys' ExifTool will do.

So I was trapped first as I always save as PNG, and missed the comment, as my tools doesn't show them,
because normally PNG and GIF doesn't have such meta data on default and so the tools are not build to search for comment in that file types.

One can still see the comment by utilizing Notepad and searching "EXtDescription" in PNG and jump to EOF for GIFs.
Still useful if you really need to know the comment.

- - -

And there are two issues I want to bring to your attention (( Just saying, perhaps you overlooked that?)):

- command line parameter -nofocus is case sensitive. E.g. -noFocus didn't work.

- the details of the MiniCap.exe tells Version it is v1.20.02 (instead of v1.31.01)

Found another one: "shot_$uniquenum$.png" on command line have to be put inside of quotes,
just un-quoted shot_$uniquenum$.png didn't work. (but that one can guess from reading the help)

Thank you.
9  DonationCoder.com Software / Screenshot Captor / MiniCap: add EXIF meta data on: August 14, 2014, 01:24:08 AM
Sorry, me again.

While testing, I saw that MiniCap didn't write meta data into the file.

So I want to ask if that would be an improvement idea?
I think I am mostly interested in
- DateTaken time stamp
- the title line of the captured app.
- the app image name
- an comment.
For the middle two there may be no equivalent exif field, but we could abuse one?

If this is to much for you, I think we can do that by utilizing Phil Harveys' ExifTool (or such) inside an batch

start "" MiniCap.exe -save %myfilename% -captureappbyname %AppnameToCapture% -exit -compress 1 -nofocus
wait 500
start "" exiftool %myfilename%
GoTo loop

10  DonationCoder.com Software / Screenshot Captor / Re: MiniCap: set focus back / bigger counter / get image name on: August 14, 2014, 01:02:30 AM

That's fine with the timezones,... delivery over night  Grin

My first test works pretty well:

- Monitor 1 Notepad
- Monitor 2 TotalCommander
- start "" MiniCap.exe -save %myfilename% -captureappbyname TotalCMD.exe -exit -compress 1 -nofocus

While the batch launches MiniCap to take screen shots, i am writing in Notepad and also keep pressing F5 key.

The F5 key writes timestamp in Notepad, but would cause the copy dialog to open in TC,.... but that never happens,
because TC never got the focus while taking screen shots from it. Also TCs' tray icon didn't flash.

Thank you. I think that works. Will test this in real live when I get the change again (calm atm bcof sommer time)


BTW: if you want to, you may copy my loop-capturing batch to the help file >> http://www.donationcoder....=2179.msg359673#msg359673
11  DonationCoder.com Software / Screenshot Captor / Re: MiniCap: set focus back / bigger counter / get image name on: August 13, 2014, 03:32:50 PM
ok, so what i could do is add an option that says not to switch to the target window when taking a screenshot of a target app window,

That is possible  ohmy ?
That sounds great, even this would solve my focus problem (as your current update do too).
And it would prevent the target app tray icon to blink.

the only side effect from that will be that it won't be able to capture the semi-transparent effects on the target window background.
semi-transparent?  cheesy  I am after taking screen shots for documentation issues. (I mean here: just to see what have happened) They don't have to be that pretty. I assume I can live whit that  Thmbsup

Sounds fine. Thanks for the offer.
12  DonationCoder.com Software / Screenshot Captor / Re: MiniCap: set focus back / bigger counter / get image name on: August 13, 2014, 02:22:06 PM
Yes, sorry.

- I am writeting in Notepad
- meanwhile I capture another application X per batch every ten seconds
- while app X gets the focus to take the shot, X also gets my keystroke I thought I do in Notepad
- that's bad if I do e.g. Ctrl+S for Notepad, but app X acts on that command because the focus has changed meanwhile to take the shot

I can imagine that it could work if MiniCap can .... I don't know how, - maybe can block (optional) app X from input while taking an shot?

I don't want to make the work to complicated for you. But how I use it(*) I run into this problems.

(*) Working with two monitor setup. Monitor one for current working. Monitor two for watching an ongoing process.
So I capture e.g. a remote session on monitor two for documentation, while still writing a document on monitor one.

Better  Wink
13  DonationCoder.com Software / Screenshot Captor / Re: MiniCap: set focus back / bigger counter / get image name on: August 13, 2014, 09:17:28 AM
Can you guys try the new MiniCap (v1.30) beta:

v1.30.01 - Aug 10, 2014 - what's new
  • [MinorFeature] Previous foreground window is restored after exit.

Thanks mouser.
Issue "1 - get my focus back:" works better now.
But this time I tested/captured with an application which detects my typing inputs.
And so I could see: for the short time while the shot is taken, that application takes my writing (which I do in another app) as input. Bad.
Can / will you do here another improvement and block any input from keyboard and mouse for that app I currently capture?
Maybe "global", by I new switch "-preventInteraction"

- - -

As for "3 - get me the image handle/id/name for "-capturehwnd", "-capturepid", "-captureappbyname":"
your answer doesn't help,... becuase it is right, if I launch MiniCap it helps me to capture.
But it doesn't help me to get the image/executable name we need for "-captureappbyname" from command line where I doesn't have the GUI.
Just saying  tongue

14  DonationCoder.com Software / Easy Screencast Recorder / Re: Easy Screencast Recorder - NANY 2013 Entry on: August 10, 2014, 12:07:43 PM
Thanks for the update J.

Last week or so I used ESR and it worked very well  Thmbsup

15  Main Area and Open Discussion / Living Room / Re: I bought a pineapple today... on: August 01, 2014, 02:50:25 PM

He Lives There:


16  Main Area and Open Discussion / General Software Discussion / Re: Top 25 Free Windows Utilities on: July 31, 2014, 01:27:58 AM
My FF NoScript plugin went crazy. To many third-party sides to unblock till I would see something.
Lost interest soon and went away.
But thanks anyway for sharing.

17  DonationCoder.com Software / Finished Programs / Re: DONE: Need a Script to Move User Files Into a Subfolder on: July 27, 2014, 03:13:42 PM
4wd, isn't this recursive?

mkdir "%~1\Documents"
move "%~1\*.*" "%~1\Documents\"

Since "%~1\*.*" includes Documents already.

I would try it this way...

Pseudo code. I can try it tomorrow too myself, if I get some free time..
Formatted for QBasic/QuickBASIC with the GeSHI Syntax Highlighter [copy or print]
  1. REM start in the Users folder
  3. IF EXIST temp\. ECHO ERROR, will quit. & GOTO :EOF
  5. REM FOR each year DO:
  6. FOR /L %Y in (2012,1,13) DO (
  8.     REM FOR each user DO:
  9.     FOR /F "tokens=*" %U in ('dir /b %Y') Do (
  11.          md "temp\%Y\%U\documents"
  12.          move "%Y\%U\*.*"   "temp\%Y\%U\documents"
  14.          move "temp\%Y\%U\*.*"   "%Y\%U\"
  15.          rem del "temp\%Y\%U\"
  16.     )
  17. )
  18. rem del temp

18  DonationCoder.com Software / Screenshot Captor / MiniCap: set focus back / bigger counter / get image name on: July 18, 2014, 01:19:56 AM
Hi mouser!

While working with MiniCap I had this questions/suggestions/ideas
which I will write here to you, since I found no real solution and maybe you want to improve the behaviour:

1 - get my focus back:

Every time MiniCap takes a shot, it put the focus to the window to capture.
(and I had to click again into my working window, which is different from the window to capture)

Is there a possibility to put the focus back to the last active window?
(so I am interrupted for a second only

I know MiniCap doesn't know anything about that last window, and I don't know if this is possible to code anyhow, but I have to ask, perhaps there is a solution.

2 - bigger counter than 999?:

$uniquenum$ adds a counter with three digits.

What will happen if I capture more than that amount?
I guess it will continue with 1000,... but the padding is not accurate any more.

Would it makes sense to add another parameter like "-uniquenumsize 5" or an "MiniCap.ini" switch "uniquenum_size=5" ?

3 - get me the image handle/id/name for "-capturehwnd", "-capturepid", "-captureappbyname":

There are apps where it is not that easy to tell which is the real image name,
because the product name could be different, and sometimes there are not useful details visible in e.g. the TaskManager.

I can help myself, but I missed a info tool to tell me the name of the executable of the window I want to capture.

Maybe a feature idea?
I can imagine such little cross-hair buttons on the MiniCap window, to drag&drop onto the window in question to show the wanted details...

19  DonationCoder.com Software / Screenshot Captor / Re: LATEST MiniCap VERSION INFO THREAD - v1.28.01 - Nov 29, 2013 on: July 17, 2014, 12:32:22 AM
Today I had an use for a command line screenshot tool, and MiniCap worked great! Thanks Jesse  Thmbsup

Especial the possibility to specify a window by its name was pretty welcome, as so I could work in another window in the meantime.

I used this batch to capture a screenshot every ten seconds (while I was still working in another app, great!):

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. @ECHO OFF
  2. CD %~dp0
  4. SET myfilename=shot_$uniquenum$.png
  5. SET stopatname=shot_234.png
  7. :loop
  8.        start "" MiniCap.exe -save %myfilename% -captureappbyname myapptocapture.exe -exit -compress 1
  10.        REM use ping on WinXP
  11.        rem ping -n 11 >nul
  12.        REM use timeout.exe on Win7
  13.        timeout /T 10 >NUL
  16. REM break condition after 234 shots:
  17. rem IF NOT EXIST %stopatname% goto :loop
  19. REM continuous loop, close the DOS-Box itself to stop the capturing:
  20. goto :loop

UPDATE, change stop condition mode:
Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. @ECHO OFF
  3. REM U S E R    S E T T I N G S:
  4. SET myfilename=shot_$uniquenum$.png
  5. SET AppnameToCapture=msword.exe
  9. REM T H E    C O D E:
  10. CD %~dp0
  11. SET counter=0
  12. :loop
  13.        start "" MiniCap.exe -save %myfilename% -captureAppByName %AppnameToCapture%  -compress 1 -noFocus -exit
  15.        REM stop for ten seconds, then loop again
  16.        REM use ping on WinXP
  17.        rem ping -n 11 >nul
  18.        REM use timeout.exe on Win7
  19.        timeout /T 10 >NUL
  22.        REM break condition, stop after twenty shots:
  23.        SET /A counter+=1
  24.        IF %counter%==20 EXIT
  25. rem continuous loop
  26. GOTO loop

 Thmbsup  Kiss
20  DonationCoder.com Software / Finished Programs / Re: DONE: Basic Pop-Up Notice/Reminder Window on: July 15, 2014, 05:32:18 AM
I'd like to use the built-in Windows Scheduled Tasks to put in certain reminders.

When a particular date/time arrives..., a window will pop up on the screen, with text.

Characteristics of the pop-up window:

-- Centered on the screen
-- Regular window with x in right-hand corner that user can press on to dismiss
-- Ability to control font size.  Would like a large-sized font -- perhaps 40-point
-- Possibly allow for setting background color -- perhaps a nice light blue

IIRC therefore I had used MessaBox > http://www.donationcoder....um/index.php?topic=9221.0

21  Main Area and Open Discussion / Living Room / Re: "English" <> "German" translations on: June 19, 2014, 04:04:29 AM
Curt, Tux, thanks, but that is not what we're talking about here.

Thanks 40hz, that are well suited headings for my documentations.

"Basic Preparation"

"Software Setup and Configuration"
Initial Software Setup
Additional Steps
User Configuration
Check Software Installation
Settings & Data Backup

"Hardware Setup and Configuration"
Hardware Setup
HW Configuration
Check Instrument Connection
Detailed Live Test


"Hardware Setup and Configuration" is what we would call "Inbetriebnahme" and for what I had searched for an short, handy term like "Commissioning"  cheesy

Thank you all for your support, very appreciated  Thmbsup

22  Main Area and Open Discussion / Living Room / Re: "English" <> "German" translations on: June 18, 2014, 01:32:20 PM
Thanks for helping!  Thmbsup

Thanks 40hz. I see, English is more strict here. And I am always think German and translate words one-to-one.

Bob had it well explained.

Tao, it's not one app only, I need to describe this things more often.
Now I want to describe this steps in English too. I know the words, but I am lacking grammatical, right terms for special tasks, and  idiom / locution.

Another try to explain it:
1.) Install the application (run setup.exe, extract everything to HDD, let create some bonds)
2.) Configure the app (some basic Options or Settings, adjust some things, for current user)
3.) See if the app works for the users need (wanted features, write access,...)
4.) assembly the PC, plugin cards and the device at users site
5.) Connect a device/instrument/gauge
6.) Configure the instrument (or the app for to use the device)
7.) Test the device connection and see if we can get valid data

1 - 3(4) is what I would call "Installation".
(4)5 -7 is what I had called "Commissioning" (Inbetriebnahme). You call it "Configuration".

(I hope this explanation is better suited for understanding. Don't know why I didn't think earlier on this way Angry  Sorry)

Me think, since I do already a (basic) "Configuration" on step 2, I am puzzled why I should call 4-7 Configuration too.
That's why I always look for a short, pregnant term like Inbetriebnahme/Commissioning  huh Do differ this both configurations.

How sounds "initial startup" for step 4-7?        smiley

23  Main Area and Open Discussion / Living Room / Re: "English" <> "German" translations on: June 17, 2014, 10:16:14 AM
Thanks so far  Kiss         I will see if I can get an use out of this  Sad   tongue

24  Main Area and Open Discussion / Living Room / Re: "English" <> "German" translations on: June 17, 2014, 07:30:16 AM
So I should not use the term "commissioning" for my task?

configure, configured, configuration would fit better, you'd say.

It seams you native speackers never use "commissioning"
for the task to put the application/device/plant into operation.
(But for a factory you would do? It's both the same for me.)

OK, I hear you. (still confused)

But I can use "into operation / into service"?
"do the configuration to put the application into operation / into service"?

What about "turn to production"?
"do the configuration to turn the application to production"?



now I found additionally "starting up" / "initial startup" / "initiation" / "launch"

25  Main Area and Open Discussion / Living Room / Re: "English" <> "German" translations on: June 17, 2014, 04:46:14 AM
Hi Tom, not to late  tongue

I'm a bit late to the party - disclaimer: my technical German *and* English are not that great. I thought that by using a German language OS I would learn the terms, but I didnt - just gave up after a couple of years and went back to English.

German term: die "Inbetriebnahme" , die Anwendung "in Betrieb nehmen"
My English: the Commissioning

I'm curious - how did you translate these in the end?
What do you mean "how did you translate"?
Ahh, I think I see: my main resource for translating is "QuickDic", or Leo.org and Dict.cc

AFAIK in regular language 'Inbetriebnahme' would be 'the implementation'.
I dont know if the word 'commissioning' is used in technical language (?)
I would simply call it the 'setup' in this case.
QuickDic says to
"commissioning" > Inbetriebnahme / Inbetriebsetzung / Indienststellung.
"implementation" > die Durchführung / Implementierung / die Umsetzung / Realisation.

So "Commissioning" fits better I would say.

"Setup": I would say I do the setup for the commissioning.

'Anwendung' translates as 'application' - but I'm not sure if it's being used as 'software-application' (?)
Yes, ENG:Application is GER:Anwendung in software terms, and medical also I would say (apply/applied/applying<> anwenden).
Die medizinische Anwendung <> the medical application

der Software-Anwendung <> the software application.

Also e.g. "das Urteil findet keine Anwendung" <> " judgment is not applicable"

- - - - - -

What I have found so far,
this will do it I think:

"After the installation do the commissioning to put the application/device/plant into operation / into service."

- - -

For "turning to production" I have not found that this is what we mean with "Inbetriebnahme". So I will drop this term.

Thanks so far. But I am still confused that you don't know/use "Commissioning" for putting an factory into operation mode...  Grin
Pages: [1] 2 3 4 5 6 ... 42 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.118s | Server load: 0.03 ]