Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm rolling out a new part of our system to 150 users who use Lotus Notes on a mixture of Windows 98 & Windows XP. (Those are our officially supported OSes, but I'm sure there'll be others, but at this stage I'm not concnerned about that.)
The problem I face is that I need to rename 2 files after detaching a file from an email. (The detaching part is easy, I have written Notes code to do that already). The catch is, the files that are to be renamed are locked up by Lotus Notes, so Lotus Notes needs to be closed before the renaming can occur. (Hence why I can't do this from with Lotus Notes as you would normally do.)
My first reaction to this was go and create a batch file that could also be attached to the email, but a batch file can't close Lotus Notes. Also from reading parts of this forum, it's apparent that the commands needed would vary between OSes.
Does anybody have any suggestions?
Thanks in advance.
Gadget

did you try terminating the running process of lotus notes by using the "Kill" command in shell
if that works..then you should be able to write a command in the batch file
don't know if this might be an option for you or not..
hope it helps

Not being too familiar with shell commands, I can only guess that this is equivalent to CTRL-ALT-DEL and using "End Task"? Please correct me if I'm wrong. I'm just worried that this will cause corruptions as Notes doesn't like being shut down like that!
Thanks for your comments ;)
Keep 'em coming!Thanks
Gadget

I don't know anything about the kill command, but the first thing ctrl-alt-del end task does is send a normal close command to the window, just like clicking on the X. Only if the program isn't responding might you be in danger of data loss. If the kill command closes the window like ctrl-alt-delete, then you're probably O.K.
-SN

Kill the process using the method above (hopefully, the user is not doing anything else in the program you are trying to kill, when you do kill it)... then do your work to the files.
"...but at this stage I'm not concnerned about that."
Famous last words... :)
IR

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |