Re: Delete all temp files after using Voyager

2006-11-25 Thread Thomas Fernandez
Hello Peter,

On Sat, 25 Nov 2006 10:39:22 +0100 GMT (25/11/2006, 16:39 +0700 GMT),
Peter Hampf wrote:

PH Create a batch file with just this line and you are done:

PH reg delete HKCU\Software\Rit\Voyager /f nul 21

PH The part nul 21 is just to redirect any messages.

Thanks. What's the /f switch for?

Additional question: The batch file is located in the root directory
of the USB stick. The first line is:

\voyager\voyager.exe

(I created this, because it saves me switching the directory, lazy
me.)

Do I have to add some wait command that waits until the first
command has been completed (i.e. voyager closed again) before the
reg-key deletion command is started? I seem to remember vaguely that
there was something...

-- 

Cheers,
Thomas.

Eine Frage zu Word: Wo sind denn hier die Sonderzeichen fuer die
roemischen Ziffern? Du must alt festhalten und dann auf dem
Nummernblock 73 fuer ein I und 86 fuer ein V tippen.
http://thomas.fernandez.hat-gar-keine-homepage.de/

Message reply created with The Bat! 3.85.03
under Windows XP 5.1 Build 2600 Service Pack 2




 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-25 Thread Peter Meyns
Hi Alexander,

on  Sat, 25 Nov 2006 00:26:04 +0100GMT (25.11.2006, 00:26 +0100GMT here),
you wrote:

ASK Hello Peter Meyns  everyone else,

ASK on 24-Nov-2006 at 21:06 you (Peter Meyns) wrote:

 What should I use for C:\Documents and Settings\Peter\Local
 Settings? I'm sure there's something like %appdata.

ASK Open a CMD window and type set to see all variables that are defined
ASK on the system.

Thank you, this helped.

ASK Amongst them you'll find the %USERPROFILE% variable with would point to
ASK c:\documents and settings\peter in your example. You just have to
ASK append the \local settings part.

Instead of %USERPROFILE% I found that %TEMP% works for what I
intended. It points to the user's local temp file, which is where The
Bat! leaves its rests.

-- 
Cheers
Peter

The Bat! Voyager v3.80.04
plenty of POP accounts, no IMAP
OS: Windows XP, v.5.1,Build 2600



 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-25 Thread Peter Meyns
Hi Thomas,

on  Sat, 25 Nov 2006 07:04:21 +0700GMT (25.11.2006, 01:04 +0100GMT here),
you wrote:

TF On Fri, 24 Nov 2006 21:06:35 +0100 GMT (25/11/2006, 03:06 +0700 GMT),
TF Peter Meyns wrote:

TF [...]
PM | RD /S /Q C:\Temp
PM | MD C:\Temp
PM `-

PM I would like to have this generalized, so that it works on any
PM computer that my Voyager is allowed to run on.

TF If you succeed, please do not run your Voyager on my machine. I
TF wouldn't want you to delete and recreate my temp directories. You
TF don't know what I have, and maybe would like to keep, in there. People
TF work differently, and even if the temp directory should be empty, it
TF isn't.

Ok, I see your point.

TF ...

TF Anyway. Do you know how to create a batch file that deletes the
TF registry entry HKCU / Software / Rit / Voyager? This I would like to
TF use.

I created a reg file named voyager_key_ex.reg with this contents:

REGEDIT4

[-HKEY_CURRENT_USER\Software\RIT\Voyager]

and put it in the Voyager folder. For exiting Voyager I created
voyager_exit.bat in the root of the USB drive containing this:

Voyager\voyager.exe /exit
regedit /S Voyager\voyager_key_ex.reg

-- 
Cheers
Peter

The Bat! Voyager v3.80.04
plenty of POP accounts, no IMAP
OS: Windows XP, v.5.1,Build 2600



 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-25 Thread Thomas Fernandez
Hello Peter,

On Sat, 25 Nov 2006 14:04:32 +0100 GMT (25/11/2006, 20:04 +0700 GMT),
Peter Meyns wrote:

PM and put it in the Voyager folder. For exiting Voyager I created
PM voyager_exit.bat in the root of the USB drive containing this:

PM Voyager\voyager.exe /exit

PM regedit /S Voyager\voyager_key_ex.reg

What does the /S switch do?

Peteres mail just answred my other question. Do you agree?

-- 

Cheers,
Thomas.

Junk is something you've kept for years and throw away three weeks
before you need it.
http://thomas.fernandez.hat-gar-keine-homepage.de/

Message reply created with The Bat! 3.85.03
under Windows XP 5.1 Build 2600 Service Pack 2




 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-25 Thread Thomas Fernandez
Hello Peter,

On Sat, 25 Nov 2006 15:33:42 +0100 GMT (25/11/2006, 21:33 +0700 GMT),
Peter Hampf wrote:

TF Thanks. What's the /f switch for?

PH That's a switch to /force the removal.

Ah, and if I don't force it, the command will be ignored?

TF Do I have to add some wait command that waits until the first
TF command has been completed (i.e. voyager closed again) before the
TF reg-key deletion command is started?

PH Yes! Your line should read

PH start /wait voyager\yoyager.exe
PH ... other stuff ...
PH reg delete HKCU\Software\Rit\Voyager /f nul 21

Thanks for that.

-- 

Cheers,
Thomas.

If the professor on Giligan's Island can make a radio out of a
coconut, why can't he fix a hole in a boat?
http://thomas.fernandez.hat-gar-keine-homepage.de/

Message reply created with The Bat! 3.85.03
under Windows XP 5.1 Build 2600 Service Pack 2




 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-25 Thread Peter Meyns
Hi Thomas,

on  Sat, 25 Nov 2006 22:14:29 +0700GMT (25.11.2006, 16:14 +0100GMT here),
you wrote:

TF On Sat, 25 Nov 2006 14:04:32 +0100 GMT (25/11/2006, 20:04 +0700 GMT),
TF Peter Meyns wrote:

PM and put it in the Voyager folder. For exiting Voyager I created
PM voyager_exit.bat in the root of the USB drive containing this:

PM Voyager\voyager.exe /exit

PM regedit /S Voyager\voyager_key_ex.reg

TF What does the /S switch do?

It prevents the alert box Do you really want to edit the registry or
along that line.

TF Peteres mail just answred my other question. Do you agree?

I haven't tried his scripts, because the ones I have do their job
accurately on three computers with Win98, Win2k and WinXP. Maybe his
scripts apply to more diverse systems - I don't know.

-- 
Cheers
Peter

The Bat! v3.85.03 on WinXP, SP2, 5, 1, build 2600
plenty of POP accounts, no IMAP, OTFE disabled
AMD Athlon 2200+ at 1794 MHz, 512 MB RAM



 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-24 Thread Roelof Otten
Hallo Peter,

On Fri, 24 Nov 2006 21:06:35 +0100GMT (24-11-2006, 21:06 , where I
live), you wrote:

PM What should I use for C:\Documents and Settings\Peter\Local
PM Settings? I'm sure there's something like %appdata.

Just use:
cd %appdata%
or as you want to reach the temp folder, use:
cd %temp%

-- 
Groetjes, Roelof

Windows '95 = Mac O/S '84
http://www.voormijalleen.nl/
The Bat! 3.86.06 ALPHA (beta)
Windows XP 5.1 Build 2600 Service Pack 2
1 pop3 account, server on LAN
OTFE enabled
P4 3GHz
2 GB RAM


pgpAHCTRc92Xk.pgp
Description: PGP signature

 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/

Re: Delete all temp files after using Voyager

2006-11-24 Thread Alexander S. Kunz
Hello Peter Meyns  everyone else,

on 24-Nov-2006 at 21:06 you (Peter Meyns) wrote:

 What should I use for C:\Documents and Settings\Peter\Local
 Settings? I'm sure there's something like %appdata.

Open a CMD window and type set to see all variables that are defined
on the system.

Amongst them you'll find the %USERPROFILE% variable with would point to
c:\documents and settings\peter in your example. You just have to
append the \local settings part.

-- 
Best regards,
 Alexander (http://www.neurowerx.de)

Neurobiology cannot be learned at the feet of a guru. -- E. O. Wilson



 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-24 Thread Alexander S. Kunz
Hello Peter Hampf  everyone else,

on 24-Nov-2006 at 23:40 you (Peter Hampf) wrote:

 cd %temp%
 cd ..
 if not exist temp goto skip
   {instructions to remove dir and files}
 :skip

 But even this isn't foolproof. What if there exists a FILE with the name
 temp and not a directory? In that case if exist temp will also return
 true.

If there's a file named temp you can't CD to it I'd assume... :-)

 cd /d %temp%
 cd ..

 to avoid problems.

Good point.


-- 
Best regards,
 Alexander (http://www.neurowerx.de)

...The first thing that must be asked about future man is whether he
will be alive, and will know how to keep alive, and not whether it is
a good thing that he should be alive. -- Charles Galton Darwin



 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-24 Thread Thomas Fernandez
Hello Peter,

On Fri, 24 Nov 2006 21:06:35 +0100 GMT (25/11/2006, 03:06 +0700 GMT),
Peter Meyns wrote:

[...]
PM | RD /S /Q C:\Temp
PM | MD C:\Temp
PM `-

PM I would like to have this generalized, so that it works on any
PM computer that my Voyager is allowed to run on.

If you succeed, please do not run your Voyager on my machine. I
wouldn't want you to delete and recreate my temp directories. You
don't know what I have, and maybe would like to keep, in there. People
work differently, and even if the temp directory should be empty, it
isn't.

If you tried to look for bat*.tmp files and delete them, I would have
a problem with that, too: I may be running TB! myself on this
computer, and you will therefore be deleting some of *my* bat*.tmp
files, which I might still need for testing.

If you go to the temp directory manually and take the time to view the
file list before blindly deleting the whole directory, you will be
able to tell from the time stamp which are you files.

Anyway. Do you know how to create a batch file that deletes the
registry entry HKCU / Software / Rit / Voyager? This I would like to
use.

-- 

Cheers,
Thomas.

Der Angeklagte unterhielt mit mir bis zum 7. Monat einen intimen
Kontakt und fuhr dann zu einer anderen Arbeitsstelle.
http://thomas.fernandez.hat-gar-keine-homepage.de/

Message reply created with The Bat! 3.85.03
under Windows XP 5.1 Build 2600 Service Pack 2




 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-24 Thread Thomas Fernandez
Hello Peter,

On Sat, 25 Nov 2006 02:20:41 +0100 GMT (25/11/2006, 08:20 +0700 GMT),
Peter Ouwehand wrote:

TF Anyway. Do you know how to create a batch file that deletes the
TF registry entry HKCU / Software / Rit / Voyager? This I would like to
TF use.

PO Surf to:
PO 
http://www.microsoft.com/technet/prodtechnol/Windows2000serv/support/FAQW2KCP.mspx

PO Find for:
PO How can I delete a Key or Value Name using a filename.reg file?
PO Click on it to view the answer.

Interesting, thanks. While this is for Windows 2000 Server, it should
also work for other Windows systems, I hope. The key paths look the
same. I am only not sure about 'REGEDIT4'. Will it work under XP?

PO You may want to test this on some bogus / self created registry
PO entires before actually performing the actions you have in mind.

I will, don't worry.

PO HTH.

It did.

-- 

Cheers,
Thomas.

Even if a mixed metaphor sings, it should be derailed.
http://thomas.fernandez.hat-gar-keine-homepage.de/

Message reply created with The Bat! 3.85.03
under Windows XP 5.1 Build 2600 Service Pack 2




 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/


Re: Delete all temp files after using Voyager

2006-11-24 Thread Rick Grunwald
Hello Peter,
 Hi all,

 I found that Voyager sometimes leaves traces on the host machine not
 only in the registry, but also in the temp file of the current user. I
 have a batch file, that removes all temp data on *my* computer. Here
 it is:

 ,- [ del_temp.bat ]

I use the following:
cd \Docume~1\Rick\Locals~1\Temp
ATTRIB -r -a -s -h /s /d
rmdir /s /q C:\docume~1\rick\locals~1\temp
CD\temp
ATTRIB -r -a -s -h /s /d
rmdir /s /q C:\temp
CD\windows\temp
ATTRIB -r -a -s -h /s /d
rmdir /s /q C:\windows\temp

Even this doesn't remove all the temp files but that is only a couple
of them
As for registry keys, EXPORT the one you want to delete, make a copy
of that file, edit it and add a - in front of it. Then double click
and add it to the registry. If done correctly it should remove the
offending entries



 Current beta is 3.86.07 | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/