[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-19 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3159980
By: keithmarshall

Of course it does.

The OP who suggested otherwise is clearly misinformed.  With MS-DOS 2.x, there
was no easy way to invoke an external command called `date', (short of patching
command.com), because you weren't allowed to specify a fully qualified path,
and any valid  extension, if specified, was always ignored, so even `date.exe'
matched the builtin `date'.  That got fixed in MS-DOS 3.00, which *did* allow
a command to be specified by a fully qualified path, and any command so 
specified
would bypass any attempt to match the builtin names; (however, it still wasn't
sufficient to simply add an extension, as the parser removed it *before* looking
for a match).

MS-Windows cmd.exe syntax  is based on the legacy of MS-DOS 6.2, and this 
convention
applies equally in *all* Windows versions today -- any command specified by
a fully qualified path *must* invoke an external command, as no builtin can
ever match the path name.

Regards,
Keith.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-19 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3159907
By: jimreeck

I am definitely getting the GNU date.  Although I was having trouble getting
it to give me the results I expected, the date that was being executed was 
definitly
doing things the Windows version doesn't have a clue about.  Fully qualifying
the path does get to the right binary.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-19 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3159892
By: jimreeck

We have a winner!  %%F produced the right result in the .bat file.  Thanks for
the help.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-18 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3158153
By: jimreeck

I tried single quotes, double quotes, \, and a couple other things without 
success.
I forgot to try %%.  I've used that one in the past (for command), didn't think
of it.  When I get a chance, I'll try that.  I did find a workaround.  I'm using
date with no arguments, piping the output to cut, to get the result I wanted.
Thanks for the suggestion.  I'll send an update when I get a chance to test %%.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-18 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3157878
By: keithmarshall

How do you escape *anything* in cmd.exe?  The stupid thing insists on using
the escape character as a directory separator.

You may need to quote the format spec, with *double* quotes, or you may need
to say +%%F, because cmd.exe expects a variable expansion to follow a single
%, (although that should really be %F% for a variable called F).

Best advice is to ditch cmd.exe altogether, and use a decent shell, such as
the sh.exe included in MSYS, from MinGW.org, or Cygwin's bash.exe; (both are
actually bash).

Regards,
Keith.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-17 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3156762
By: nobody

>I did specify the full path in both cases (script and cmd). >date is giving
different results depending on whether the > >same, fully qualified command
is run from cmd or the >script. I was thinking of submitting it as a bug, but
I wanted >to first see if anyone could attribute this behavior to some >XP thing
or anything external to date itself. I'll keep the
> gdate thing in mind though. Thanks

date is an internal command in cmd no matter if you give the full path or not.
It won't work.
You may rename it as gdate or use bash, or Ch shell (C compatible shell) from
http://www.softintegration.com/docs/ch/shell/
 in windows.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-17 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3156681
By: nobody

You might need to escape the % sign.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-17 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3156602
By: jimreeck

I did specify the full path in both cases (script and cmd).  date is giving
different results depending on whether the same, fully qualified command is
run from cmd or the script.  I was thinking of submitting it as a bug, but I
wanted to first see if anyone could attribute this behavior to some XP thing
or anything external to date itself.  I'll keep the gdate thing in mind though.
Thanks.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-17 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3156586
By: gnuwin32

Yes, this will be the case with the next release of Findutils. No need to enter
a bug report.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-17 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3156576
By: rmccullough

can we get find installed as gfind? since find is also a windows utility? Should
I enter that as a bug?

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] [gnuwin32 - Help] RE: Using date in XP .bat file

2005-05-17 Thread SourceForge.net

Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3156542
By: gnuwin32

date is also an internal MS-Windows command; therefore date from coreutils is
also installed as gdate (similarly for echo, mkdir, rmdir). Alternatively, quote
the full path of date.

__
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users