Good luck!!
Good luck!!
Thanks, I'll try.
--- SBBSecho 2.27-Win32
* Origin: *Square One BBS - the place to begin (1:3634/22)
þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
I can't seem to find the rest of this thread... but if you are talking about Windows Batch, you could try this. I found it somewhere on the net and make good use of it.
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
Call it as:
%mydate%
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set
mydate=%%c-%%a-%%b)
Call it as:
%mydate%
You are right, it was in another echo-but the problem still remains. I'm not a programmer, and I have no idea how to use it. Thanks for this, but sorry, I don't know what to do with it.
you smiply place it near the top of your .bat file so that it is executed before you need the date value... then when you need the date value, you
use %mydate% in that place...
eg: ren sbbs.log sbbs-%mydate%.log
you smiply place it near the top of your .bat file so that it is executed before you need the date value... then when you need the date value, you use %mydate% in that place...
eg: ren sbbs.log sbbs-%mydate%.log
you smiply place it near the top of your .bat file so that it is executed before you need the date value... then when you need the date value, you use %mydate% in that place...
eg: ren sbbs.log sbbs-%mydate%.log
Outstanding!!! Now, how do I make it into the format 'yymmdd' ? Everything I try to do to change the original statement screws it up.
Thanks
you smiply place it near the top of your .bat file so that it is
executed before you need the date value... then when you need the date
value, you use %mydate% in that place...
eg: ren sbbs.log sbbs-%mydate%.log
Outstanding!!! Now, how do I make it into the format 'yymmdd' ?
Everything I try to do to change the original statement screws it up.
do not want the dashes? try this...
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b)
)\/(ark
do not want the dashes? try this...
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b)
)\/(ark
Thanks, Mark, I now have a batch file built to rename ALL my log files and store them in their respective directories.
do not want the dashes? try this...
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b)
)\/(ark
Thanks, Mark, I now have a batch file built to rename ALL my log files and store them in their respective directories.
Bill Gordon wrote to mark lewis <=-
Outstanding!!! Now, how do I make it into the format 'yymmdd' ?
Everything I try to do to change the original statement screws it up.
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b)
This is a batch file I use to do a full backup sbbs
@echo off
SET backupdate=%date:~-4,4%%date:~-10,2%%date:~-7,2%
SET target=G
echo Performing Backup for %backupdate%:
mkdir %target%:\Backups\%backupdate%
xcopy c:\sbbs\*.* %target%:\Backups\%backupdate%\ /s /e /c /y
do not want the dashes? try this...
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set
mydate=%%c%%a%%b)
Thanks, Mark, I now have a batch file built to rename ALL my log files and store them in their respective directories.
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set
mydate=%%c%%a%%b)
If I can be a pest ONE LAST TIME, how do I it to display the time as
well?
Last one, I promise.
That would be a great backup, but when I ran it, it froze when it got to c:\sbbs\data\mail.shd.
hahaha... i was waiting for that :)
Bill Gordon wrote to Bill McGarrity <=-
This is a batch file I use to do a full backup sbbs
@echo off
SET backupdate=%date:~-4,4%%date:~-10,2%%date:~-7,2%
SET target=G
echo Performing Backup for %backupdate%:
mkdir %target%:\Backups\%backupdate%
xcopy c:\sbbs\*.* %target%:\Backups\%backupdate%\ /s /e /c /y
That would be a great backup, but when I ran it, it froze when it got
to c:\sbbs\data\mail.shd.
It would NOT continue, and I waited about 10 minutes before I hit the CTRL-C.
Bill Gordon wrote to Bill McGarrity <=-
This is a batch file I use to do a full backup sbbs
@echo off
SET backupdate=%date:~-4,4%%date:~-10,2%%date:~-7,2%
SET target=G
echo Performing Backup for %backupdate%:
mkdir %target%:\Backups\%backupdate%
xcopy c:\sbbs\*.* %target%:\Backups\%backupdate%\ /s /e /c /y
That would be a great backup, but when I ran it, it froze when it got to c:\sbbs\data\mail.shd.
It would NOT continue, and I waited about 10 minutes before I hit the CTRL-C.
I don't see where I use mail.shd anywhere? Why would you put that into a sub?
Bill Gordon wrote to Bill McGarrity <=-
This is a batch file I use to do a full backup sbbs
@echo off
SET backupdate=%date:~-4,4%%date:~-10,2%%date:~-7,2%
SET target=G
echo Performing Backup for %backupdate%:
mkdir %target%:\Backups\%backupdate%
xcopy c:\sbbs\*.* %target%:\Backups\%backupdate%\ /s /e /c /y
That would be a great backup, but when I ran it, it froze when it
got to c:\sbbs\data\mail.shd.
It would NOT continue, and I waited about 10 minutes before I hit
the CTRL-C.
I don't see where I use mail.shd anywhere? Why would you put that into
a sub?
"data/mail.shd" contains all the header data for all email in the Synchronet system.
I don't see where I use mail.shd anywhere? Why would you put that into a sub?
REM wait for a bit to make sure all is well
ECHO. Stalling with a Ping....
PING 1.1.1.1 -n 1 -w 10000 > NUL
Digital Man wrote to Bill McGarrity <=-
Re: Re: Name a file today's date
By: Bill McGarrity to Bill Gordon on Mon Sep 21 2015 07:17 pm
Bill Gordon wrote to Bill McGarrity <=-
This is a batch file I use to do a full backup sbbs
@echo off
SET backupdate=%date:~-4,4%%date:~-10,2%%date:~-7,2%
SET target=G
echo Performing Backup for %backupdate%:
mkdir %target%:\Backups\%backupdate%
xcopy c:\sbbs\*.* %target%:\Backups\%backupdate%\ /s /e /c /y
That would be a great backup, but when I ran it, it froze when it got to c:\sbbs\data\mail.shd.
It would NOT continue, and I waited about 10 minutes before I hit the CTRL-C.
I don't see where I use mail.shd anywhere? Why would you put that into a sub?
"data/mail.shd" contains all the header data for all email in the Synchronet system.
Bill Gordon wrote to Bill McGarrity <=-
I don't see where I use mail.shd anywhere? Why would you put that into a sub?
I didn't. Evidently SBBS did for some reason. I've not given up on it yet, I gotta look it over from EVERY angle. Who knows, I might find a solution and never know exactly the solution. That's called SAL! (stupid-assed luck)
<begin code snippet>
REM wait for a bit to make sure all is well
ECHO. Stalling with a Ping....
PING 1.1.1.1 -n 1 -w 10000 > NUL
Re: Re: Name a file today's date
By: KenDB3 to Bill Gordon on Mon Sep 21 2015 09:41 pm
REM wait for a bit to make sure all is well
ECHO. Stalling with a Ping....
PING 1.1.1.1 -n 1 -w 10000 > NUL
That's a great idea -- I always used one of those little sleep executables, but having something that's already in the OS is even better. Less dependencies.
REM wait for a bit to make sure all is well
ECHO. Stalling with a Ping....
PING 1.1.1.1 -n 1 -w 10000 > NUL
That's a great idea -- I always used one of those little sleep executables, but having something that's already in the OS is even better. Less dependencies.
REM wait for a bit to make sure all is well
ECHO. Stalling with a Ping....
PING 1.1.1.1 -n 1 -w 10000 > NUL
you don't have a "wait" "sleep" or "delay" command that you can
sleep 30
or such with? that would be much better than pinging a public address...
FWIW: whois 1.1.1.1
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
% Information related to '1.1.1.0 - 1.1.1.255'
inetnum: 1.1.1.0 - 1.1.1.255
netname: APNIC-LABS
descr: Research prefix for APNIC Labs
descr: APNIC
country: AU
admin-c: AR302-AP
tech-c: AR302-AP
mnt-by: APNIC-HM
mnt-routes: MAINT-AU-APNIC-GM85-AP
mnt-irt: IRT-APNICRANDNET-AU
status: ASSIGNED PORTABLE
changed: hm-changed@apnic.net 20140507
changed: hm-changed@apnic.net 20140512
source: APNIC
irt: IRT-APNICRANDNET-AU
address: PO Box 3646
address: South Brisbane, QLD 4101
address: Australia
e-mail: abuse@apnic.net
abuse-mailbox: abuse@apnic.net
admin-c: AR302-AP
tech-c: AR302-AP
auth: # Filtered
mnt-by: MAINT-AU-APNIC-GM85-AP
changed: hm-changed@apnic.net 20110922
source: APNIC
role: APNIC RESEARCH
address: PO Box 3646
address: South Brisbane, QLD 4101
address: Australia
country: AU
phone: +61-7-3858-3188
fax-no: +61-7-3858-3199
e-mail: research@apnic.net
remarks: ++++++++++++++++++
remarks: + Address blocks listed with this contact
remarks: + are withheld from general use and are
remarks: + only routed briefly for passive testing.
remarks: +
remarks: + If you are receiving unwanted traffic
remarks: + it is almost certainly spoofed source
remarks: + or hijacked address usage.
remarks: +
remarks: + http://en.wikipedia.org/wiki/IP_address_spoofing
remarks: + http://en.wikipedia.org/wiki/Regional_internet_registry remarks: +
remarks: ++++++++++++++++++
nic-hdl: AR302-AP
tech-c: AH256-AP
admin-c: AH256-AP
mnt-by: MAINT-APNIC-AP
changed: hm-changed@apnic.net 20110822
source: APNIC
% This query was served by the APNIC Whois Service version 1.69.1-APNICv1r0 (UNDEFINED)
However, I do remember seeing some web site that suggested pinging your own loopback (127.0.0.1) instead, if that makes it a bit less sketchy for you.
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 333 |
Nodes: | 10 (0 / 10) |
Uptime: | 35:10:28 |
Calls: | 576 |
Messages: | 236643 |