How to code a batch file to force the reboot of the window?

I used to run following code on batch file to restart the window, but if window is blocked, it does not.

does anyone have any suggestions on any more powerful coding force restart the window if window is blocked?

Thanks in advance for your suggestions

%windir%\System32\shutdown.exe - r

You can try adding the-f (force) option to your shutdown command:
%windir%\System32\shutdown.exe - r f

HTH,
JW

Tags: Windows

Similar Questions

  • How to code a batch file to put in the form of z: drive?

    I would like to drive Z: quick format and xcopy in D: drive in the Z: drive for backup.

    I would like to pass on any message entry also.

    Anyone have any suggestions on how to code a batch file for this?

    Thanks for all the suggestions

    Hi oem7110,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is best suited for on TechNet. Please post your question in the TechNet forum. Link: http://social.technet.microsoft.com/Forums/en-US/ITCG/threads

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to have a batch file executed without the BACK popup on the screen?

    original title: running tape recorder in a minimized batch file or out of sight?

    Hi, I'm wanting to play a sound every 30 minutes.

    I wrote a batch file for use of Windows sound recorder to play the sound, and then close.  I will use the Task Scheduler to run and the calendar.  The sound seems to play fine, but every time it works I see a popup box BACK and then heard play recorder app.  These two things quickly disappear automatically, but ideally, I want the sound to play and can't see the window BACK or recorder popup of sounds on the screen.  Is there a way to minimize or hide these things automatically?  As it is run in the background, but still play the sound?  My batch file is below:

    Sndrec32.exe "C:\WINDOWS\Media\chimes.wav" /PLAY / CLOSE

    This could help you.
    http://zoombody.com/articles/run-a-batch-script-minimized

  • How to use batch files to deliver the payload of the ODC to AAU?

    Hi all.
    We are trying to do along this week and, so far, we could not understand how to use the batch files containing the option on the ODC and validate the output files to the University Complutense of MADRID.
    So, these are our specifications:

    VM 1
    ODC - 10 gR 3
    OS - Windows XP 32-bit SP3
    DB - Oracle DB 11.2

    VM 2
    No ODC
    UCM 11.1.1.6
    OS - Enterprise Linux Enterprise Linux Server version 5.5 (Carthage)

    We have opened a ticket with the Oracle Support for how we should do it. The number is 3-6108348211 SR.
    Let me try to explain what we want to do:
    1. we have a batch file with all the metadata for many files of UCM
    2. we want to use this ODC file, so the application converts the images and they are committed to the Complutense University of MADRID
    3. we should see all these files and their metadata, thumbnails and content associated with the Complutense University of MADRID
    4. it is an example of batch file we want to send to ODC:

    --------------------------------------------------
    LocalData @Properties
    IdcService = CHECKIN_UNIVERSAL
    dRevLabel = 1
    primaryFile=/tra/Relatorio_UHPF-03-04-2008-M-RL-EA.pdf
    dDocName = TRA_33
    dDocTitle=UHPF-03-04-2008-M-RL-EA
    dSecurityGroup = MAM_TRA
    dDocType = Document
    dDocAuthor = luis .neotropical
    dInDate = 14/05/08
    xC_CLASSIFICACAO = EA - Educação Ambiental
    xC_DATA = 01/04/08
    xC_DATAVALIDADE = 30/04/08
    xC_LOCALIZACAOFISICA = N/A
    xC_USUARIO_DEP = LUIS FERNANDO DA CAMARA
    xC_TIPO = RL - Relatório
    xC_USINA = UHPF - MACHINING HIDRELETRICA PASSO FUNDO
    xC_FICHA = MAM - environmental reports
    xC_IDDOCMAN = TRADocID = 157
    xC_IDANEXODOCMAN = TRAFileID = 33
    xC_DESTINOINICIAL = Tractebel
    xC_ORIGEM = Neotropical
    xC_FORMATODOCUMENTO = digital
    xC_GENERODOCUMENTO =
    xC_DOCPRINCIPAL = Sim
    @end
    < < NEM > >
    -----------------------------------------------------

    5 so, when we use this command on the ODC file, the file (or image) is converted, all metadata attached and then sent to the Complutense University of MADRID.

    But we do not know how to make the link between the ODC and UCM. The Oracle Support says that it is necessary to make some adjustments. In the books I couldn't find info on how to do, just generic information or the use of the ODC.
    Is there a way (without personalization) to do? Can someone give us a step by step guide?

    Thanks for any help and advice.

    Fernando

    It doesn't really have much point which is good to UCM to ODC, given that the ODC is really an indexing tool to get content in Complutense University of MADRID and capture. Once the content is in the Complutense University of MADRID, it should be at its final location.

    Batch files are the property of the University Complutense of MADRID and have no meaning to the ODC. Import of the ODC server has the ability to read the meta in a list, which is similar, but not a
    "Batch UCM file.

    You can have IBR convert files directly in the University Complutense of MADRID, trying to use ODC to convert is redundant.

    ODC was out of the configuration of the box with the AAU.

    For this question: "but we do not know how to make the link between the ODC and UCM.»

    The documentation covers all this very well. what page of the documentation is misleading or causing problem you?

    The guide step by step would be the documentation of the ODC.

    -ryan

  • batch file to run the script to report

    Hello

    How to create a batch file to call my script essbase report.

    Thank you!

    Hello

    you create a MaxL script that calls the report script. When it does not, you create a batch file that launches the MaxL script.

    MaxL example: export sample.basic database using fichier_journal '' $ARBORPATH/App/Sample/Basic/asym.rep' ' of data_file ' home/month2.rpt ";

    The batch file called essmsh.

    Kind regards

    Philip Hulsebosch

  • There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    Hi, I m a bit new in LabVIEW and I'd like to ask a few questions...

    -There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    -One API PI or raspberry beaglebone exists for LabVIEW?

    -Power supply Wich can recommend you control with LabVIEW? (some chip solution witn 0 - 30v / 0 - 3A DC)

    Thank you very much for your advice!

    Best regards

    Elena

    Elena,

    I know raspberry, so no comment on that.

    For the rest:

    -Do you want to create tools for developers? If so, we must look in the API of project VI and VI server. If this isn't the case, please compile your application LV as executable and call this one using a batch file.

    -LV prefer specific supplies. LV is a programming language. There are several power supply providers (including OR) which provide directly the LV API for their power supplies. So, essentially, the approach is:

    1. choose food that serves your needs.

    2. check if the power supply has a standard interface for programming (such as Ethernet, GPIB, or if the power supply is PXI, is already providing a programming interface!)

    3. check if the LV API (so-called "instrument driver") is available for the device. In the case of a PXI system, get you a device driver (for example NI DCPower).

    4. check if the LV samples are available (for example in the Finder for example LV once you have installed the driver).

    Norbert

  • How can I save xml file n, run the xml file? Please help me

    How can I save xml file n, run the xml file? Please help me

    Hello

    The question you have posted will be well suited in the MSDN forum. Click on the link below.

    http://social.msdn.Microsoft.com/forums/en/categories/

    In the meantime, I suggest you to return the item mentioned below.

    How to use XML Notepad to create an XML document

    http://support.Microsoft.com/kb/296560

  • batch file to unzip the files in the 64 bit version of windows vista Home premium

    Hello

    I'm looking to write a batch file to decompress the files. I'm working on a windows vista Home premium 64-bit. any help will be really wonderful.thanx .pdp2907

    Please repost in the scripts Forum: http://social.technet.microsoft.com/Forums/en/ITCG/threads/ where script experts will be happy to help you.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Dear all

    How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Concerning

    Hi Imran,

    Can't do much about that because it depends on what authenticate you the VPN server and how the settings. But let me introduce you to the memory layout. Once you install and open a VPN client. Press it again and it opens up a new page for the VPN config.

    Example of configuration as it is attached. But it differs depending on the configuration of your vpn server.

    Once you create and save this profile. Your FCP file is stored.

    Please assess whether the information provided is useful.

    By

    Knockaert

  • How to save a pdf file so that the tool pane is not displayed

    How to save a pdf file so that the tool pane does not appear when the file is opened?

    Ah!  Thank you.  You are a star.

  • How to convert a text file and give the table

    Hai

    How to convert a text file and give the data of the table

    ISN'T THERE!

    You must put this

    SET_BLOCK_PROPERTY ('TEST_MS', insert_allowed, property_false);
    SET_BLOCK_PROPERTY ('TEST_MS', update_allowed, property_false);

    just before the last exception...

    Published by: Dora on January 19, 2010 14:54

  • How can I remove a redundant entry of the Windows Vista 32-bit NT loader;

    How can I remove a redundant entry of the Windows Vista 32-bit NT loader; (The entrance there is an older operating system).

    Hi poomoon,

    To perform the clean boot procedure, follow the instructions in the link below.

    Step 1: Perform a clean boot
    Step 2: Enable half the services
    Step 3: Determine whether the problem returns
    Step 4: Enable half of the startup items
    Step 5: Determine whether the problem returns
    Step 6: Resolve the problem
    Step 7: Reset the computer to start as usual

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135

    After reviewing the issue, put the computer into Normal mode.
    Uninstall or update the program that is causing the problem.

    If this does not work, let us try to restore your computer to a previous state of safe mode.
    Follow the instructions below to restore your computer to a previous state.

    1. Click Start, type system restore in the search box, and then click System Restore in the list programs.
    2. If you are prompted for an administrator password or a confirmation, type your password, or click on continue.
    3. in the System Restore dialog box, click Next.
    4. in the list of restore points, click a restore point created at least a week before the current date, and then click Next.

    Note: If you do not find a restore point that is aged for at least a week, select the first point of restoration that is available.
    5. click on finish.
    6. the computer restarts. The system files and settings are returned to the State they were when the restore point was created.

    Check whether the problem is resolved.

    I suggest that you create a restore point before you follow the instructions below.
    How to manually create a restore point?

    1 open the system by clicking the Start button, clicking Control Panel, clicking system and Maintenance, and then click System.
    2. in the left pane, click System Protection. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    3. click on the tab System Protection and then click on create.

    In the System Protection dialog box, type a description, and then click on create.

    You can also try to remove the entry by using bcdedit command in Vista by following the links below.
    1. click on start.
    2. type cmd and click with the right button on cmd.exe to select run as administrator.
    3. Enter the following text.

    bcdedit [{ID}] /deletevalue datatatype

    The {ID} is the GUID associated with the start-up input. If you do not specify a {ID}, the command changes the current operating system boot entry. If a boot entry is specified, the GUID associated with the start-up input must be enclosed in braces {}. To view the GUIDs for all active startup entries, use the bcdedit/enum command.

    For more information, please see the links below.
    http://TechNet.Microsoft.com/en-us/library/cc709667 (WS.10) .aspx
    http://msdn.Microsoft.com/en-us/library/aa906211.aspx

    Please post back and let us know if it helped to solve your problem.

    Kind regards
    KarthiK TP

  • What software to use to open a file .igx in the Windows environment

    What software to use to open a file .igx in the Windows environment

    Hi Docsri,

    The IGX file type is primarily associated with ' iGrafx FlowCharter / iGrafx Process' by iGrafx LLC. A graphical process simulation and modeling program.

    You can use the software provided by ' iGrafx IGX to open files in Windows.

    Frequently asked questions

    http://www.iGrafx.com/products/Flowcharter/14/FAQs.html

    Evaluation software downloads

    http://www.iGrafx.com/downloads/trial.html

  • How many applications can be opened simultaneously in the windows xp family

    How many applications can be opened simultaneously in the windows xp family

    There is no limit.  The number of requests, we can run simultaneously depends entirely on the way which many system resources (cycle of the CPU, RAM, disk HARD get/write activity, etc.) each program "consumes", and how much RAM and computing power (CPU) you.

  • HOW to run a batch file in BACK 6.22?

    I wrote a batch file that works fine in the Windows command prompt, but I would like to be able to run after POST in the BACK. I copied my code AUTOEXEC. BAT file that runs automatically; However sometimes with syntax errors when it reaches the call control and the rest.

    echo. This script is counting the # of POSTs.
    echo. The POST # value is saved in TEST.txt.
    echo.
    
    call:myPOSTTest
    
    for /f "tokens=* delims=" %%x in (A:\TEST.txt)  do echo POST# %%x
    
    echo. &pause&goto:eof
    ::--------------------------------------------------------
    ::-- Function section starts below here
    ::--------------------------------------------------------
    
    :myPOSTTest    - here starts my function identified by its label 
    
    set var=0
    
    if EXIST A:\TEST.txt (
         for /f %%x in (A:\TEST.txt) do (set /a var=%%x+1)
    )
    
    echo %var% >> A:\TEST.txt
    
    goto END
    
    :END
    
    

    Thank you

    Hello

    Many of us being volunteers do not have the expertise to help.  Refer the question to the TechNet Script Center.

    Script Center

Maybe you are looking for