Computing.Net > Forums > Windows XP > Need a directive to logoff current

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.

Need a directive to logoff current

Reply to Message Icon

Name: xxxx_Win (by mona_Win)
Date: September 17, 2008 at 15:51:16 Pacific
OS: Windowsxp
CPU/Ram: cpu2.8 ram512
Product: Intel
Comment:

Need a directive to logoff current user when manually installation finished for inf install
for this
[Install]
BeginPrompt =BeginInst
RunPreSetupCommands =Create.i386:1
CopyFiles =program.files
AddReg =Uninst.AddReg
ProfileItems =Program.Addshortcut
RunPostSetupCommands=Delete.i386
EndPrompt =EndInst
----------------add Logoff directive here and with a prompt



Sponsored Link
Ads by Google

Response Number 1
Name: jefro
Date: September 17, 2008 at 18:33:31 Pacific
Reply:

From
http://windowsitpro.com/Articles/In...

"On average, I receive a letter a month asking whether a command-line tool is available to force a logoff. Until recently, I've known of no such tool. But the Microsoft Windows NT Server 4.0 Resource Kit Supplement 4 contains two: a compiled program, logoff.exe, and a VBScript routine, logoff.vbs, that does even more than logoff.exe does.

You can call logoff.exe from a batch file. Its syntax is

logoff [/n] [/f]

When you invoke logoff without options, logoff asks whether you really want to log off and accepts a y (yes) or n (no) response. When you type y in response, NT logs you off unless an application has unsaved data, in which case the application stops the logoff process and asks you to verify that you really want to log off without saving your data. Clearly, a logoff command that requires confirmation isn't much help in a batch file. Enter the /n and /f options. . . . "

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


0
Reply to Message Icon

Related Posts

See More


OE .dbx files Alt Codes not working



Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Need a directive to logoff current

I still need a reply to this www.computing.net/answers/windows-xp/i-still-need-a-reply-to-this/110042.html

Do I need a dvd burner? www.computing.net/answers/windows-xp/do-i-need-a-dvd-burner/128438.html

Need a SATA hard drive kit w/usb www.computing.net/answers/windows-xp/need-a-sata-hard-drive-kit-wusb/150707.html