🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by PhilM Thu, 10 Feb 2005 17:24
Can I purge temp folder on exit?
#162378
Author: PhilM
Date: Thu, 10 Feb 2005 17:24
12 lines
1572 bytes
I've decided to create a temp folder to save (& launch with Iview) all  my 
jpeg/image files.
What I've done is create this temp folder in the xnews directory and ticked 
in the xnews options to launch automatically with iview and it works just 
as I'd like.
The one thing that would make it perfect is to be able to purge all these 
tempory image files when I close down xnews.
Is there a command I could add to the ini file or something, to achieve 
this?
In the options it gives the choice to save all headers and articles but 
will only purge when expired on the server - not on exit of the program!
thanks for any help
Re: [Xnews] Can I purge temp folder on exit?
#162408
Author: John Wunderlich
Date: Fri, 11 Feb 2005 03:51
24 lines
2278 bytes
PhilM <PhilM@nospamaddress.net> wrote in
news:Xns95F9B0572F815PhilM.nospamaddress.@195.129.110.67: 

> I've decided to create a temp folder to save (& launch with Iview)
> all  my jpeg/image files.
> What I've done is create this temp folder in the xnews directory
> and ticked in the xnews options to launch automatically with iview
> and it works just as I'd like.
> The one thing that would make it perfect is to be able to purge
> all these tempory image files when I close down xnews.
> Is there a command I could add to the ini file or something, to
> achieve this?
> In the options it gives the choice to save all headers and
> articles but will only purge when expired on the server - not on
> exit of the program! thanks for any help
> 

I have a similar configuration.  What I do is simply hit the "delete" 
key while I'm looking at the picture in Iview and Iview will delete it 
then and there from the disk (but not from the screen).

HTH,
  John
Re: Can I purge temp folder on exit?
#162413
Author: /betty/
Date: Fri, 11 Feb 2005 07:06
25 lines
1849 bytes
On 10 Feb 2005 17:24:50 GMT, PhilM used 12 lines to assert:

> The one thing that would make it perfect is to be able to purge all these 
> tempory image files when I close down xnews.
> Is there a command I could add to the ini file or something, to achieve 
> this?
> In the options it gives the choice to save all headers and articles but 
> will only purge when expired on the server - not on exit of the program!
> thanks for any help

copy con xn.bat
@echo off
cd \xnews
start /wait xnews.exe
del /f /q ..\temp\*.*
F6

^^ means press the F6 key on that line.

Create a suitable shortcut to xn.bat

Done.

-- 
/betty/ [2005-02-11 17:58:42]
Re: Can I purge temp folder on exit?
#162428
Author: PhilM
Date: Fri, 11 Feb 2005 15:08
23 lines
1657 bytes
Erm - thanks for that /betty/....at least I know that it CAN be done - but 
could you explain it a little bit?
Do I just add these lines to the ini file and if so, in which section?
But in any case,thanks for taking the time to reply :0)
Regards

/betty/ <no.addr.4.u.equals.no.spam.2.me@simple.isnt.it.invalid> wrote
in news:pdh85x9qbmav$.dlg@betty.invalid: 

> copy con xn.bat
> @echo off
> cd \xnews
> start /wait xnews.exe
> del /f /q ..\temp\*.*
> F6
> 
> ^^ means press the F6 key on that line.
> 
> Create a suitable shortcut to xn.bat
> 
> Done.
> 
Re: Can I purge temp folder on exit?
#162452
Author: MartinS
Date: Fri, 11 Feb 2005 20:17
30 lines
1808 bytes
PhilM <PhilM@nospamaddress.net> top posted:

> Erm - thanks for that /betty/....at least I know that it CAN be done
> - but could you explain it a little bit?
> Do I just add these lines to the ini file and if so, in which
> section? But in any case,thanks for taking the time to reply :0)
> Regards
> 
> /betty/ <no.addr.4.u.equals.no.spam.2.me@simple.isnt.it.invalid>
> wrote in news:pdh85x9qbmav$.dlg@betty.invalid: 
> 
>> copy con xn.bat
>> @echo off
>> cd \xnews
>> start /wait xnews.exe
>> del /f /q ..\temp\*.*
>> F6
>> 
>> ^^ means press the F6 key on that line.
>> 
>> Create a suitable shortcut to xn.bat
>> 
>> Done.

Type them in at a Command prompt.
Pressing F6 closes and saves the file xn.bat.
Create a new Shortcut with target (pathname)\xn.bat

-- 
Martin S.
Re: Can I purge temp folder on exit?
#162467
Author: PhilM
Date: Fri, 11 Feb 2005 23:43
16 lines
1823 bytes
thanks for the explanation Martin.

Here's a copy & paste of the .bat file that I created
@echo off
cd \xnews
start /wait xnews.exe
del /f /q ..\temp2\*.*

The actual folder I use for the saving of these files, as you can see, is 
temp2, but though the shortcut starts up xnews for me, it doesn't flush the 
temp2 folder on exit of xnews!!
When the bat file does it's job and starts up xnews,the command prompt 
window also minimises to the taskbar with the message
'The system cannot find the path specified.'
Any ideas what I've done wrong?
Thanks for your patience, as you can tell I'm a DOS-nophobe :)
Re: Can I purge temp folder on exit?
#162477
Author: Barry Jones
Date: Sat, 12 Feb 2005 03:31
24 lines
2244 bytes
On 11 Feb 2005 23:43:50 GMT, PhilM wrote:

> thanks for the explanation Martin.
> 
> Here's a copy & paste of the .bat file that I created
> @echo off
> cd \xnews
> start /wait xnews.exe
> del /f /q ..\temp2\*.*
> 
> The actual folder I use for the saving of these files, as you can see, is 
> temp2, but though the shortcut starts up xnews for me, it doesn't flush the 
> temp2 folder on exit of xnews!!
> When the bat file does it's job and starts up xnews,the command prompt 
> window also minimises to the taskbar with the message
> 'The system cannot find the path specified.'
> Any ideas what I've done wrong?
> Thanks for your patience, as you can tell I'm a DOS-nophobe :)

Try putting the exact full address of the temp2 directory, as in
c:\<path>\temp2\*.* , instead of the ..\temp2\*.*

-- 
Barry
Re: Can I purge temp folder on exit?
#162479
Author: /betty/
Date: Sat, 12 Feb 2005 05:53
31 lines
2510 bytes
On 11 Feb 2005 23:43:50 GMT, PhilM used 16 lines to assert:

> thanks for the explanation Martin.
> 
> Here's a copy & paste of the .bat file that I created
> @echo off
> cd \xnews
> start /wait xnews.exe
> del /f /q ..\temp2\*.*
> 
> The actual folder I use for the saving of these files, as you can see, is 
> temp2, but though the shortcut starts up xnews for me, it doesn't flush the 
> temp2 folder on exit of xnews!!
> When the bat file does it's job and starts up xnews,the command prompt 
> window also minimises to the taskbar with the message
> 'The system cannot find the path specified.'
> Any ideas what I've done wrong?

Like Barry said, make it specific by using absolute paths, not relative
ones, to address your target objects.
Or use a fully qualified change directory before each command.

It was only an example waiting for your own adaptive creativity.

> Thanks for your patience, as you can tell I'm a DOS-nophobe :)

Being raised on a crayons computing diet would be like being blessed
with a thalidomide birth.

-- 
/betty/ [2005-02-12 16:36:26]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads