Computing.Net > Forums > Programming > Renaming files in Windows 98 & XP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Renaming files in Windows 98 & XP

Reply to Message Icon

Name: Gadget
Date: October 1, 2003 at 19:50:09 Pacific
OS: Windows 98 & XP
CPU/Ram: Varied
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Clicker
Date: October 1, 2003 at 23:52:56 Pacific
Reply:

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



0

Response Number 2
Name: Gadget
Date: October 2, 2003 at 00:36:06 Pacific
Reply:

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


0

Response Number 3
Name: SN
Date: October 2, 2003 at 08:48:59 Pacific
Reply:

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


0

Response Number 4
Name: Infinite Recursion
Date: October 2, 2003 at 12:45:32 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


display ampersand in VB C 2-D array



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Renaming files in Windows 98 & XP

Configuring J2SDKEE 1.3.1 in Windows 98 www.computing.net/answers/programming/configuring-j2sdkee-131-in-windows-98/2901.html

.com file in Windows www.computing.net/answers/programming/com-file-in-windows/5745.html

Backgroud a bat file in window XP www.computing.net/answers/programming/backgroud-a-bat-file-in-window-xp/11963.html