Batch file execution error in windows

I am running 2 batch files . The 2nd one runs only after the execution of the 1st one. So while the 2nd one runs , i get the following error in command prompt:
"The process cannot access the file because it is being used by another process."

well, by the error message it may be nothing to do with java, maybe the second batch file is trying to do something that is generating the error. Or maybe your second batch file really needs to run after the batch 1 finishes to avoid the message. How are you running the batchs???
if you do getRuntime ().exec ("batch1.bat");
getRuntime ().exec ("batch2.bat");
the the execution is being launched in paralel, exec () creates a new Process on the Operative Systems and runs the command but doesnt wait until it finishes! Are you checking that?

Similar Messages

  • Where windows batch file which log off windows lies ?

    where windows batch file which log off windows lies ?
    to which me can call from java code to log off my pc?

    You should use a brute-force algorithm on the on/off switch on your pc. I suggest a rate of 30 hits per minute.

  • Test Stand seq w/ dll batch file execution not working

    I am using Test Stand 4.1, running a seq that calls a dll.  The dll contains a batch file execution function that has not been working properly.  I am not 100% sure what the function is as I do not have access to the direct code from which the dll was created.  I believe I have a file, however please remember this is a guess that I am looking at the correct function/file. 
    This is a Pass/Fail test step that calls a batch file.  The batch file runs properly without the use of Test Stand and called by the dll.  In the code that I believe is running, I see there is a step that I am guessing does not run (see below for test steps).  It seems as though these steps are being "stepped over" and not running, however the test does seem to be entering this function.  The test reports a pass/fail status as the data is reported into a txt file.  If the txt file contains the correct data, the test step reports PASS, even though the batchfile does not run.
    :Note:  [batchfile.bat] is the name of the batch file being called; the [ ] are not present 
    // Run Batch File
     ChkErr(LaunchExecutableEx([batchfile.bat] ,windowState,&handle));   
     // Wait for batch file to complete task
     do{
      ProcessSystemEvents();
     }while(!ExecutableHasTerminated (handle));
     RetireExecutableHandle (handle);
    Any one have any suggestions as to why the batch file is not being called and running properly?
    Thank you
    Jason_C

    Thanks for the feed back.  I have realized and it seems as though sometimes the CWD varies.  The current working directory when the batch file does not run seems to be set to the desktop, not to the specified directory.  The batch file is used to program a chip, calling the exe to run using commands.  The file are speciifed by an absolute path, however the exe is not.  The batch file is as below and seems to match up with a problem with the CWD.  How can change though?  I will have to check in the Start in field, but where can I find that property? 
     Thank You
    --Jason
    del ..\misc\mplab.txt
    echo C:\Program Files\JTRS\01_P55461U\bin\uutsw\CR1_T2V3L_PMM_STUB_LOAD.hex
    ..\misc\pm3cmd /5 /BLCC:\Program Files\JTRS\01_P55461U\misc\t2v3l_pmm_stub_load\t2v3l_pmm_stub_load.pm3 /k /m /y /e >> ..\misc\mplab.txt >> ..\misc\mplab.txt
    ..\misc\pm3cmd /5 /BVCC:\Program Files\JTRS\01_P55461U\misc\t2v3l_pmm_stub_load\t2v3l_pmm_stub_load.pm3 >> ..\misc\mplab.txt

  • Doubt in batch file execution

    Hi ,
    I am execting a batch file from my code. Following after execution of batch file i need to do some manipulation with out put file that got from batch file. so wht i am doing is..
    String ParseBat = "cmd /c start \"parser - running\" /MIN execute.bat \""+filePath + "\" \""+logdestn.getAbsolutePath()+"\"";
             procParse = rt.exec(ParseBat);
    System.out.println(logdestn.length());  //Hereit is giving length of log file as 0. Wht i felt is it just coming to next execution line b4 the          procParse = rt.exec(ParseBat); code line finishes. i used procParse.waitFor(); but still not working. can u help me regarding this.
    thnx in advance.
    ram .t

    OK, I used two classes to do this. Both are taken from the URL I posted above. The first is a util to read the streams coming from the external process.
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    * A thread to read the error stream (STDERR), in case anything went wrong.
    public class ProcessStreamReader extends Thread {
        /** Our access to the incoming characters on the stream */
        private BufferedReader reader;
        /** The characters read from the stream are appended to this
         * StringBuffer.  */
        private StringBuffer buffer = new StringBuffer();
         * Constructor.  Builds a <code>BufferedReader</code>.
         * @param inputStream
        public ProcessStreamReader(InputStream inputStream) {
            InputStreamReader isr = new InputStreamReader( inputStream );
            reader = new BufferedReader( isr );
        /* (non-Javadoc)
         * Runs until the input stream is closed.
         * @see java.lang.Runnable#run()
        public void run() {
            try {
                // Take (and keep taking) a line from the reader.  This should go on
                // until the process dies.
                String temp;
                while (null != (temp = reader.readLine())) {
                    buffer.append( temp );
            } catch(IOException ioex) {
                ioex.printStackTrace();
         * @return Returns the contents of the buffer.
        public String getString() {
            return buffer.toString();
    }The next is the actual program that launches the external process and reads the results back.
    import java.io.File;
    import java.io.IOException;
    public class ExecTest {
         * @param args
        public static void main(String[] args) {
            try {
                // Configure
                String filePath = "test.data";
                File logDestination = new File("myLog.log");
                String path = "cmd /c start \"parser - running\" /MIN execute.bat \""+filePath + "\" \""+logDestination.getAbsolutePath()+"\"";
                System.out.println("> Starting process");
                Process process = Runtime.getRuntime().exec( path );
                System.out.println("> Start reading STDOUT and STDERR from the process");
                ProcessStreamReader inputStream = new ProcessStreamReader( process.getInputStream() );
                ProcessStreamReader errorStream = new ProcessStreamReader( process.getErrorStream() );
                inputStream.start();
                errorStream.start();
                System.out.println("> Waiting for the external process to complete.");
                process.waitFor();
                System.out.println("> Waiting for both reader threads to die");
                inputStream.join();   
                errorStream.join(); 
                System.out.println("> Checking to see that there nothing was reported on STDERR");
                String errString = errorStream.getString();
                if(errString != null && errString.trim().length() > 0) {
                   System.err.println("Problems occured while trying to access the external process: " + path);
                   System.err.println( errString );
                System.out.println("> Checking the STDOUT coming from the process.");
                String inString = inputStream.getString();
                System.out.println(inString);
                // Check for the existance of the log file
                if(logDestination.exists()) {
                    System.out.println("> Log file exists at: " + logDestination.getAbsolutePath());
                    // Check the length of the log file.
                    System.out.println( "> Log file length: " + logDestination.length());
                } else {
                    System.out.println("> Log file wasn't created.");
            } catch(IOException ioex) {
                ioex.printStackTrace();
            } catch(InterruptedException iex) {
                iex.printStackTrace();
    }I found that using the above class opened a DOS window and ran my version of execute.bat (which contained just "dir %1 > %2"). Up to that point, it wrote the following:
    Starting process
    Start reading STDOUT and STDERR from the process
    Waiting for the external process to complete.
    Waiting for both reader threads to die
    Checking to see that there nothing was reported on STDERR
    Checking the STDOUT coming from the process.It then paused until I closed the DOS window. At that point, it then wrote:
    Log file exists at: C:\Workspace\javatests\myLog.log
    Log file length: 258If I reduce the external path to:
    String path = "execute.bat \""+filePath + "\" \""+logDestination.getAbsolutePath()+"\"";Then the program returns the length of the log file instantly.
    If I remove all the code concerned with checking the STDOUT and STDERR streams of the external process, the same thing happens - it reads the log file length correctly.
    Perhaps you could use the above code to check that your batch file is actually producing a log file? Perhaps modifying the path that you're passign to the Runtime.getRuntime().exec would help?
    Cheers,
    John

  • Script... Batch file running error...

    hi.. all, i`ve created a batch file "test", but it doesn`t execute
    Following are The contents of Test File
    cd D:\oracle\ora90\BIN\sqlplus.exe
    hr/hr@ROCK
    @D:\ctas.sql
    Well... for further investigation, i went to command prompt and pasted
    D:\oracle\ora90\BIN\sqlplus.exe command prompt sql window
    Enter user-name: hr/hr@ROCK
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    SQL> @D:\ctas.sql
    SP2-0310: unable to open file "D:\ctas.sql"
    SQL>
    well... ctas is available in D directortory with name of ctas.sql
    and these are the test commands
    create table bb as select * from employees
    Surpisingly, i connected with sqlplusw and unable to execute file there too..
    SQL*Plus: Release 9.0.1.0.1 - Production on Sat Sep 22 21:46:36 2007
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    SQL> show user
    USER is "HR"
    SQL> desc dd
    ERROR:
    ORA-04043: object dd does not exist
    SQL> @d:\ctas.sql
    SP2-0310: unable to open file "d:\ctas.sql"
    SQL>
    Please do help me..

    When i was running spcreate.sql, there was an error too in running a script, but after wasting hours, I copied commands from spcreate.sql scripts and executed.
    You can check the thread that i had created for spcreate.sql script error while running.
    Statspack... error...
    Please do help me, why i m unable to run scripts..??

  • Batch file gives error "is not recognized as internal command.." after first character

    For every batch file I create, I receive the same error displaying after only running the first character in the file: ' d' is not recognized as an internal or external command, operable command or batch file.
    This occurs whether I run 'dir' cd '../..' or java.exe
    I've confirmed the path environment variable has the correct paths, cmd.exe is assigned to comspec, I'm running as admin, etc. What have I not setup correctly to run batch files. I can run these same commands directly at the command line.
    I'm running the latest version of 8.1, on Toshiba Satellite C855

    We do not have access to your computer, we cannot read your mind, and we cannot see your screen.
    Please copy and paste the exact command you are using and also copy and paste the
    exact error message.
    -- Bill Stewart [Bill_Stewart]

  • Batch file execution using user defined activity

    Can anyone please explain me what is the structure of the user defined activity in order to execute batch file. I've read like 10 post about this problem in this forum but nothing seems to work. So to finally clear it out...
    I have simple batch file d:\test_dir\test.bat that has only one line in it "echo this is test>>test.txt"
    what should i put in the user defined activity setting?
    COMMAND = ?
    PARAMETER_LIST = ?
    RESULT_CODE = ?
    SCRIPT = ?
    SUCCESS_THRESHOLD = ?
    i have the setting in the runtime.properties file to:
    property.RuntimePlatform.0.NativeExecution.FTP.security_constraint = DISABLED
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.SQLPlus.security_constraint = NATIVE_JAVA
    property.RuntimePlatform.0.NativeExecution.OMBPlus.security_constraint = DISABLED

    Did you read this blog?
    https://blogs.oracle.com/warehousebuilder/entry/how_to_use_user_defined_activity_in_owb_process_flow
    What error do you get? Did you stop/start the runtime service after changing the parameter file?
    Cheers
    David

  • Batch File Executions

    Is there any way to execute a .bat file from within the program? Or execute a program located somewhere on the computer with a set parameters?

    Runtime.getRuntime().exec("command.com /c mybat.bat");This will run a batch file in windoze 9x. For NT change the command to "cmd.exe /c mybat.bat".
    Mark

  • Schema sample execution error on Windows

    Hi:
    I finally installed Nosql, compiled example\schema, added ddl and when running the class get the error:
    D:\nosql\kv-2.0.39>java -jar lib/kvstore.jar ping -host xxx -port 5000
    Pinging components of store kvstore based upon topology sequence #14
    kvstore comprises 10 partitions and 1 Storage Nodes
    Storage Node [sn1] on xxx:5000    Datacenter: KVLite [dc1]    Status: RUNNING   Ver: 11gR2.2.0.39 2013-04-23 08:28:13
    UTC  Build id: b205fb13eb4e
            Rep Node [rg1-rn1]      Status: RUNNING,MASTER at sequence number: 57 haPort: 5006
    D:\nosql\kv-2.0.39>java -jar D:/nosql/kv-2.0.39/lib/kvclient.jar
    11gR2.2.0.39
    D:\nosql\kv-2.0.39>cd D:\nosql\kv-2.0.39\examples\schema\classes
    D:\nosql\kv-2.0.39\examples\schema\classes>java schema.SchemaExample -store kvstore -host localhost -port 5000
    java.lang.NullPointerException
            at schema.Bindings.parseResource(Bindings.java:82)
            at schema.Bindings.<init>(Bindings.java:54)
            at schema.SchemaExample.<init>(SchemaExample.java:183)
            at schema.SchemaExample.main(SchemaExample.java:134)
    D:\nosql\kv-2.0.39\examples\schema\classes>java -version
    java version "1.7.0_10"
    Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
    It is Windows 8 64, community edition Nosql.
    CLASSPATH=D:\nosql\kv-2.0.39\lib\kvclient.jar;D:\nosql\kv-2.0.39\examples\schema\classes
    Is it a setup issue or code error or something else?
    Please help me get past this Oracle Nosql example error.

    It's trying to load the .avsc files that are in the D:\nosql\kv-2.0.39\examples\schema directory (the source code directory) as resources from your classpath  Here are instructions for making sure these files are in your classpath.  I'm adding the following text to SchemaExample.java:
    * <p>When running this program, the Java classpath must include the
    * kvclient.jar and the example 'classes' directory. The .avsc files must also
    * be found as resources in the classpath, which can be accomplished by adding
    * the 'examples' directory to the classpath or by copying the .avsc files to
    * the 'classes/schema' directory.</p>
    Sorry for the less-than-informative error from the example, we'll improve that.
    --mark
    Message was edited by: greybird
    The location of the .avsc files must be in the classes/schema directory, or you must add examples to your classpath.  I had this wrong in my post.

  • Batch file execution

    hi all
    i need to execute two jsp files from html file, which has two push buttons. on click of button it should do that.how do i do this.

    <obligatory>
    Navigate yourself around pitfalls related to the Runtime.exec() method
    </obligatory>

  • Run a batch file from separate windows box to invoke DRM batch client

    I need your suggestions on the following. 
    ODI & DRM are installed on separate boxes.
    Now I want ODI to invoke a batch file (kept on DRM - Windows box, this batch file invokes DRM batch client to export the metadata). I tried using shared folder concept,but no success.
    Any pointers please?

    This should work for you-
    Create a batch file on your current server (ODI) and write in the path to the other batch file on the other server.
    //Server2completename/D$/Path/yourbatchfile.bat
    From ODI call your batch file that you created on the same machine.. which will inturn call the other batch file on a different machine to execute batch client.
    Also can you paste the errors that you may be getting.. need to check if you are getting any specific issue related to this.
    Thanks
    Denzz

  • How do I prevent windows from shutting down ITUNES with a Data Protection Execution error when trying to sync with my Iphone 4S in a 32 bit windows environment?

    I first was not able to install ITunes 10.5.  Apple upgrade installer caused a data protection execution error and windows reverted the process back to the original software.  I then removed ITunes through the control panel ap.  I removed Bonjour and quicktime.  I could not use the windows uninstaller to remove the apple upgrade installer and had to find a fix it program on the microsoft web site to fully remove this program.  After doing this, I was able to load and install itunes 10.5.  However, now when I try to sync my new 4S phone, the sync only goes to the 2nd or 3rd step before eliciting a DPE error and causing itunes to shut down.  I tried making a new user profile.  Opened I tunes in the new profile and began to search for music on my computer.  The program again elicited a DPE error.  I looked to see if quicken was still on the computer and maybe causing a hangup, but it is no longer installed.  Ok, I am at wits end and have spent much too much time on this issue.  Please help.

    I was able to finally stop ITunes from crashing after many days of searching n restarting my computer many times.
    a) First I went to this site ->http://forums.techarena.in/guides-tutorials/1119812.htm that showed me how to disable DPE. Please make sure that u have good virus...etc.. protection first before doing this. I have Avast Internet Security. RESTART UR COMPUTER..
    b) I then uninstall ITunes by following this site ->http://support.apple.com/kb/ht1923      RESTART UR COMPUTER..
    c) I then downloaded a beta version of ITunes. I happen to download beta 7 before the final of 10.5 version came out. Installed it. After installing I click on it n it said somewhere along the line of "this ITune ver. expired" I checked in my Programs n Features n notice that QuickTime was installed w that beta version.   
    d) Go online n download the final version of ITunes ->http://www.apple.com/itunes/download/ ...... After u finish dling install that. After that's done connect your IPod, IPhone...etc... n click on ITunes, it should sync all the way.
    I was finally able to sync all thru the steps insteading of it crashing on me midway. Hopefully this will work for you. Good luck !
    IPhone4, Gateway Windows Vista 32bit

  • Using a Variable to Substitute the path\filename of a Batch file in the Start_Process Command

    I am trying to write a script that will execute a batch file on a remote Windows server.
    This line below is basically what I'm trying to do and it works without error, however I would like to use a variable for the path\filename of the batch file.
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "\\qsc-a-ice01\D$\Test\RunThis.bat" }
    If I try to use a variable as in this example below I receive the error below. The error seems to indicate it's it expecting a "FilePath" parameter. Is this true? How would I change this script to make it work when substituting a variable.
    $MyProcess =  "\\qsc-a-ice01\D$\Test\RunThis.bat"
    Write-Host $MyProcess
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "$MyProcess"}
    This is the error text I receive when using a variable:
     PS C:\Windows\system32> D:\Test\ThisWorks.ps1
    \\qsc-a-ice01\D$\Test\RunThis.bat
    Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Supply an argument that is not null or
    empty and then try the command again.
        + CategoryInfo          : InvalidData: (:) [Start-Process], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand
        + PSComputerName        : QSC-A-ICE01
    PS C:\Windows\system32>

    Mike,
    Thanks for providing the link, it was very informative. The link described how to use the args in a ScriptBlock and provided me with an explaination as to why it works the way it does on a remote server. This is my 1st post to the forum and I don't know
    how the points system works yet.
    I would like to split the points , but I don't see that this is possible.
    You're very welcome, I'm glad that the information was helpful.
    You can mark as many posts as answers as you'd like, there's not a restriction on only having a single answer per thread. You certainly don't have to though, David's answer is more than sufficient to help any future people who find this thread.
    Also, on a side note, you may want to post in the thread below. Posting there will get your account verified so you'll be able to post links and images.
    http://social.technet.microsoft.com/Forums/en-US/200c33c9-abe9-494a-953a-bf53fccb3c76/verify-your-account-11?forum=reportabug
    (Future people - don't use that link.
    Click here and look for the current thread as a sticky.)
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Batch file to "Disable" un-used plug-ins etc.

    Hi Folks!!
    I've got into the habit (from the good old, small PC, WinXP days) of disabling with the pre-fix ~ (tilde) method, all the presets and plug-ins that I never use as soon as I install Photoshop.
    Doing it manually in those days was not too much of a hardship as maybe, at worst twice a year.
    Now that I've upgraded(?) to Win7, I must have done a "clean" system re-install at least once a month, the manual method is getting a bit tedious.
    I'd like to have batch script(s) to automate/semi-automate the process so that I could open a command prompt at the root (C:\) and tell it to go to the swatches folder and prefix A, C, and D leaving B, E, and F untouched, then move on to the brushes folder, patterns folder, plug-ins folder etc. etc..
    I've got a list of my usual "suspects", I've tried to write one myself (with no knowledge of what I'm doing) and so far I've managed to (luckily, but not repeated!!) get the first one on the list renamed followed by 50 or so "The *** path is not recognised/ The *** path is not a correct command/ The syntax is incorrect/ That's not your dog on your path" etc. etc.
    Is this at all possible? I'd settle for several batch files, one for each folder, that I could just type their names in whilst looking at my pretty desktop instead of traipsing through the system folders, if that's what it takes.
    HELP!!
    Yours
    Raggedy Round The Edges
    Elmer (very) B. Fuddled
    Message was edited by: Elmer B. Fuddled  Speeling Mistooks

    Thanks for your response Noel,
      A corrected link to M$ answers (maybe) 
    Originally i did do a lot of the "disabling" to save space when I was running WinXP on an old Packard Bell with a 60gb main HDD (don't laugh, that was an "upgrade" from the 20gb HDD!!) Now I've gone up in the world to Win7 with (to me) a huge 320gb HDD it's more an aesthetics / efficiency thing.
    First example, the  drop down window you get when you hit "Save As..."
    I've never yet used any of the formats in PS high-lighted in green, the yellows are "very seldom used" and the rest, yes I do use. So if I can "hide" the ones I don't use, and I know I can't hide them all, the ones I do use are not hiding in a multitude of others.
    When it comes to the Colour Swatches, not books, in the Preset Manager, after I've loaded my own "ICO" files it can get quite horrendous!!
    The Full House
    Now after I've removed all the Pantone etc. that I never touch, leaving only a couple I was "advised" to on t'interweb plus my own collection of palettes, some of which may only contain four colours..
    Oooh!! I can see me canvas again!!
    So much neater!
    Bear in mind I'm not actually deleting anything so if I ever do need them, they are only a tilde away!!
    I disable any plug-ins I don't, didn't or couldn't use when on WinXP due to hardware  restraints (well the PC was salvaged from a skip!!) and I've managed to live without them.
    The same sort of thing goes for the brushes, I've assembled my own .abr's from the supplied Adobe sets that I may only just use and disabled all the rest.
    For brushes you can also read File Formats, Actions, Custom Shapes and Gradients
    The script "Wot I Ave Wrote" looks like this (abridged)
    @echo off cls
    set windrive=%1
    echo The Adobe installed Plug-ins and Presets listed in the "Read Me" file will
    echo will be prepended with a tilde (~) which will disable/hide them.
    echo.
    echo Do you wish to continue?
    set /p choice=Please press "Y" for yes or "N" for no: 
    if %choice%==y goto moveon
    if %choice%==n goto dontmove
    :moveonren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\Cineon.8BI" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~Cineon.8BI"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\Dicom.8BI" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~Dicom.8BI"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\FastCore.8BX" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~FastCore.8BX"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\JPEG2000.8BI" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~JPEG2000.8BI"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\MMXCore.8BX" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~MMXCore.8BX"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\PBM.8BI" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~PBM.8BI"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\Pixar.8BI" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~Pixar.8BI"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\Radiance.8BI" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~Radiance.8BI"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\Standard MultiPlugin.8BF" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\~Standard MultiPlugin.8BF"
    ren "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\WBMP.8BI" "C:\PROGRAM FILES (X86)\ADOBE\ADOBE BRIDGE CS5\Plug-Ins\Import-Export\~FireWire Export.8BE"
    echo .
    echo .
    echo Whoopy Doo!!! Won't be seeing those again unless you want to! :-)
    echo . 
    pause
    exit /B n
    :dontmove
    echo .  
    echo The Batch File execution has been cancelled.
    pause
    And that's about it, all the red bits I've borrowed from elsewhere so I'm none the wiser of what they really do!!
    Any sites I've "visited" tell me that /1 /2 %WhoKnows% does "X", but not why it does!! So I gave up 
    Oh, BTW, using bridge as my guinea-pig as I never use it.
    Could never get it to run on me XP machine so I looked elsewhere and I've never looked back again.
    Regards
    Elmer (more bemused than)B. Fuddled
    Message was edited by: Elmer B. Fuddled  Resizing images

  • Use batch file to determine if computer is a terminal server

    Hello experts,
    I am trying to create a batch file that I can use to install MS Office 2013 and another software on Windows Server 2003 R2,
     Windows Server 2008 R2, and Windows Server 2012 terminal servers (Remote Desktop Services) via GPO. The installation files are NOT
     "msi" files.  Can you please tell me how I can use command line in a batch or script file to determine if a machine is a terminal server or not? I tried the Change user /query command on a Windows Server 2008 R2
    terminal server and a Windows 7 machine and both machines returned the following status
    Application EXECUTE mode is enabled.
    which will be a problem because the installation batch file would treat the Windows 7 machines as a terminal server when it's not really a terminal server.
    Basically, I want the batch file to check to determine if the machine is a terminal server. If it is a terminal server, then it would run change user /install, install the software, reboot server, then run change user
    / execute.  Your help will be greatly appreciated.

    Hi,
    For Office 2013 there should not be any concerns since it is windows installer based and things will be handled automatically.  For the other software you could simply put the session in install mode in every case.  For the servers/workstations
    where install mode doesn't apply the change user /install and change user /execute will simply fail without any harmful effects.
    You may check whether or not the machine is a terminal server using WMI, for example:
    wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TerminalServiceSetting Get TerminalServerMode
    0 = Remote Administration mode (not a RDSH/TS)
    1 = Application Server mode (aka RDSH/Terminal server)
    -TP
    When I run the command from the command line, it works, but when I try it in a "IF" statement, nothing happens.  I am I doing something wrong using the wmic code in the IF statement?

Maybe you are looking for

  • Trying to make a decision; input wanted

    some background- i'm a high end freelance retoucher by trade and my 21"crt is beginning to get tired (color issues and i feel cramped) and i would really like to upgrade to a 23/24" widescreen lcd. i don't have room on my desktop to do 2 monitors, an

  • Can't install Boot Camp Windows 7 on new rMBP

    I purchased a new rMBP and I am trying to install Windows 7 on it with a full install windows 7 disk. I have a usb superdrive with the windows disk in it.  I have downloaded the windows files to a usb flash drive through the boot camp assistant proce

  • QuickTime (recording screen with sound?)

    I have no problem making screen recordings off the web using QuickTime but for some reason QT doesn't record the sound unless I output the sound through my external speakers for the iMac mic to pick up. I've tried all of the settings (re. image)... b

  • Update required

    I have a table accounts and the data looks like: accno     cname     startdate     enddate 1     Tom     01-jan-201     null 2     Tom     01-aug-2011 null Based on date,automatically new account number will be generated for the same customer. Manual

  • Why doesn't printing use the default printer?

    I have two main printers to use at home and whenever I print a web page, Firefox automatically prints using the non-default printer. If I select the default printer from the drop down list, it works fine. I shouldn't have to select the default printe