Search found 93 matches

by berserker
30 Dec 2013 11:09
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: Conversation

You keep forgetting one descriptive word. "DOS" Batch. And I would think that anyone in the world who has been around since the days of DOS would agree that when someone says BATCH they mean .BAT and nothing else. yes, and why do you think i am referring to anything else? That's why i ask...
by berserker
30 Dec 2013 02:23
Forum: DOS Batch Forum
Topic: Pure DOS valid Date checker
Replies: 5
Views: 8123

Re: Pure DOS valid Date checker

OK, good point. I suggest you may modify the routine to accept South African convention and then post it for the South Africans who may be disprivileged. As I see it, one must make compromises for the more numerous Germans who use the '.' separator with the Year first as well as Americans who alway...
by berserker
30 Dec 2013 02:14
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: Conversation

to: berserker AKA PHONY I have been sitting on the sidelines but now I have a suggestion for you. Post some useful DOS batch code or go away and post elsewhere? Or how about posting any code in any language you have written that might be useful? I have not seen one contribution by you here so that ...
by berserker
30 Dec 2013 01:40
Forum: DOS Batch Forum
Topic: Pure DOS valid Date checker
Replies: 5
Views: 8123

Re: Pure DOS valid Date checker

This routine chooses to ignore the 'Tue 12/24/2013' and '24-Dec-13' formats since users never input that way. These formats are typically generated by accessing %date% in these peculiar formats and thus are correct dates. if you look regional and language settings in control panel you can see vario...
by berserker
30 Dec 2013 00:00
Forum: DOS Batch Forum
Topic: Batch file to open windows explorer to last created file
Replies: 34
Views: 34123

Re: Batch file to open windows explorer to last created file

No. It has to descend through a folder tree and get the latest file amongst them all. /s descends folder /T:C show with creation date /q: display user findstr "user2" will only get those lines that contains "user2" the first column which is the date, can be sorted . Depending on...
by berserker
29 Dec 2013 21:29
Forum: DOS Batch Forum
Topic: Batch file to open windows explorer to last created file
Replies: 34
Views: 34123

Re: Batch file to open windows explorer to last created file

/O will sort only within a folder. It doesn't sort a folder tree. how about this, just a quick one to get the idea across dir /s /o:d /T:C /q | findstr "user2" | sort then get the last line TS just want the file, not a folder. In fact, I need to create a batch file that will open windows ...
by berserker
29 Dec 2013 20:24
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: Conversation

I also do not want to carry this pointless discussion any further than you or the mods do. So this is what I intend to do. I will not post any other scripts until I know what the TS can or cannot do. Also, to my own discretion I will post other forms of solution AFTER TS has got significant suggesti...
by berserker
29 Dec 2013 20:20
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: Conversation

The next big task: Using Perl, Python, PHP There are portable versions available; as only 2 links are allowed, i misuse the code-blocks, but i only link the portable perl version, as i the other portable programs don't look trustworthy (at least in my eyes): http://strawberryperl.com/ seems to be t...
by berserker
29 Dec 2013 19:29
Forum: DOS Batch Forum
Topic: Batch file to open windows explorer to last created file
Replies: 34
Views: 34123

Re: Batch file to open windows explorer to last created file

for /f "delims=" %%a in ('dir /s /b /a-d 2^>nul ') do call :getcreationdate "%%~fa" sort /r <"%temp%\file2.tmp" >"%temp%\file.tmp" set "file=" ... why don't you use the switches /T and /O from dir? /T can show creation. /O can sort.
by berserker
29 Dec 2013 19:07
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: Conversation

@berserker The way i see it: This is a forum for dos-batch. Since (almost) every computer has acces to vbscript/jscript code snippets of those are welcome. On my work machine i'm strictly forbidden to install third-party software (compiler, wget, etc) and while i'm at home I do not have the slighte...
by berserker
29 Dec 2013 10:32
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: MS DOS batch file ebook.

Keep your comments on topic, and in the spirit of the forum, and nobody will have a problem with you. when is my comments not on topic? At the very least, I didn't post an Assembly code to solve the problem. That's wayyy not on topic. I am merely just suggesting a different tool to do the job and i...
by berserker
29 Dec 2013 10:23
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: Conversation

Why dont you understand that installation is the problem and installing Perl and running one of your scripts is not really the easiest solution for someone who barely knows anything about programming. A self contained executable can easily be downloaded and run whereas the user may not have the rig...
by berserker
28 Dec 2013 23:12
Forum: DOS Batch Forum
Topic: Batch file to open windows explorer to last created file
Replies: 34
Views: 34123

Re: Batch file to open windows explorer to last created file

I'm trying to get the mechanics of the procedure sorted out. It's still not possible to show a single file in explorer. for the simplest case, i thought dir /O:d /T:C /q /n and parsing the output would suffice. If TS wants to double click on the shortcut and show the file properties, a "pause&...
by berserker
28 Dec 2013 23:07
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: MS DOS batch file ebook.

if you want to solely post perl solutions, then it's appropriate for you to find a perl forum. This is what you started doing when you arrived here and why it was not appreciated. but nowhere in the rules of this forum says we cannot. That's why I asked for specific rules to be instated. No one ans...
by berserker
28 Dec 2013 22:59
Forum: DOS Batch Forum
Topic: Conversation
Replies: 39
Views: 37608

Re: MS DOS batch file ebook.

Squashman wrote:Your reference to java is a bad example as you still need Java installed to run the JAR.


and that reference is for TS whose environment allows it. If that environment allows wget/sed, why is other tools not allowed?