Search found 5 matches

by keneo
02 Aug 2012 11:52
Forum: DOS Batch Forum
Topic: discover the title of the window
Replies: 1
Views: 2168

discover the title of the window

I know how to set the title of a command window using "Title"

But is there a way for the batch script to know what the title of the window it is currently operating in is?
by keneo
02 Dec 2009 16:39
Forum: DOS Batch Forum
Topic: Using special characters when renaming file
Replies: 2
Views: 4621

Using special characters when renaming file

I am trying to rename files in a batch. But I want to use special characters in the file name like these ==> ♥♦♣♠ (ascii code 3,4,5 and 6) Is there a way to insert these into a file name using batch commands? Perhaps using a function that translates ascii code to a character?
by keneo
25 Nov 2009 16:15
Forum: DOS Batch Forum
Topic: FOR loop not incrementing value until after loop exits
Replies: 1
Views: 3486

FOR loop not incrementing value until after loop exits

I am trying to write a batch file that will iterate through the files in a folder. As soon as it hits the 4th one (and subsequent ones) it will move that file to a sub directory "OLD." Since I order the DIR command by date it will only leave the 3 newest files untouched in the folder. here...
by keneo
13 Oct 2009 05:37
Forum: DOS Batch Forum
Topic: extracting file name from an environment variiable
Replies: 3
Views: 5474

Hi ghost,

ok, lets say I have the variable: %XXX% which contains:

c:\program files\some folder\program.exe

I would like the to extract just the file name from that:

program.exe
by keneo
12 Oct 2009 17:03
Forum: DOS Batch Forum
Topic: extracting file name from an environment variiable
Replies: 3
Views: 5474

extracting file name from an environment variiable

I know that you can parse complete file path names easily when expanding batch file parameters. For example, you may execute the following command line: PROCESS.BAT C:WINDOWS\NOTEPAD.EXE where process.bat contains the following line: @ECHO %~NX1 The results would be: NOTEPAD.EXE But is there a way t...