Calling batch file. SQL file with parameters

Hi all:

I may / may not have correct code, because I can't find a Google result for answering the question and cannot test this solution until it goes live, so I want to make sure I have it correct.

I have a batch (file1.bat) file that implements some variables. Inside this file, I call a .sql like this procedure:
sqlplus username/password@environment @c:\sql\export.sql cID %%d sID % % exportFilename %

How do I use these settings within the export.sql so they are passed to the oracle procedure?

I am currently using the following code:
BEGIN
sinterface. Export (1, 2 & 3);
EXCEPTION
WHILE OTHERS
THEN NULL;
END;

This code will work? I know that if I call another code file1.bat .bat file, I can get the settings such as:
SET of cID = %1
SET sID = %2
SET exportFileName = %3

OR

SET CompID = compID %
SET SiteID = siteID %
SET exportFileName = % exportFilename %

But I have no idea if / how this translates an oracle .sql file to call a stored procedure. I got a result of Google to show using the & 1 & 2 & 3 to set the parameters of this batch file, but as I can't test it, I have no idea if it would work.

Anyone would be able to confirm the correct method?

Thank you
Andy

Andy,
Welcome to the Oracle Forums. Please take a few minutes to review the following:


This forum is for general issues Oracle Forms. Please post your question in the forum SQL and PL/SQL . If you have a general question of forms, by all means, ask it here! ;-)

That said, you asked...

How do I use these settings within the export.sql so they are passed to the oracle procedure?

I am currently using the following code:

BEGIN
sinterface.export(&1, &2, &3);
EXCEPTION
WHEN OTHERS
THEN NULL;
END;

Since you simply call a Script SQL of your batch file file is not really necessary to use an anonymous block to call your stored procedure. In addition, as you use the OTHER generic exception - you never know if there was a mistake. Really, you shouldn't use SO that OTHERS value NULL. This isn't a very good programming practice. As for your variables, I would recommend that you set the substitution variables in your script and set your settings to access these variables. For example:

DEFINE c_id = &1 (CHAR)
DEFINE s_id = &2 (CHAR)
DEFINE f_name = &3 (CHAR)

Execute sinterface.export(c_id, s_id, f_name);

I would not include an exception handler at this level that any exception must propagate to the calling program.

Craig...

Tags: Oracle Development

Similar Questions

  • Run SQL through batch file, with parameters

    Hi all

    I run SQL through Batch files before, but I am a little confused with the execution of the sql with parameters. For example, if I have a named sql file:
    insert.sql
    
    Insert into TableA
     select * from TableB
     where service_dt >= '&&x_start_dt' and service_dt <= '&&x_end_dt';
    I can run this problem normally, but including the substitution variables, as in the batch (.bat) file called Execute_insert.cmd is a bit annoying... I played a little with it and cannot operate.

    Any help would be appreciated.

    Thank you
    Ed

    Change your insert.sql to something more like:

    Insert into TableA
     select * from TableB
     where service_dt >= TO_DATE('&1', 'format mask') and
           service_dt <= TO_DATE('&2', 'format mask');
    

    Then, would you call it:

    sqlplus user/password @insert.sql 01-oct-2012 31-oct-2012
    

    John

  • Call the PL/SQL procedure with in out parameter of OIC clob

    Hello

    For a few days, I am facing a problem. I have to call the pl/sql procedure with colb parameter out. I use c ++ and OIC (don't ask me why :)).

    I use a pl/sql problem test procedure:

    create or replace function Test (longField outside clob) return number is
    Number of result;
    Start
    longField: = 'prefix ';
    Result: = 12;
    Return (result);
    end Test;

    So I do all the stuff with the connection to the DB,

    I prepare the statement: "start: res: = test(:param); end; »
    So I OCIHandleAlloc (m_pCtx-> hpEnv,
    (void *) & m_hpStatement,.
    OCI_HTYPE_STMT,
    0,
    (NULL);
    and
    OCIStmtPrepare (m_hpStatement,
    m_pCtx-> hpErr,
    (...),
    (...),
    OCI_NTV_SYNTAX,
    OCI_DEFAULT);

    Before the binding I prepare parameters. For a clob I devote to the lob Locator:

    OCIDescriptorAlloc ((dvoid *) m_pCtx-> hpEnv, (dvoid *) & m_pLobLocator,)
    (ub4) OCI_DTYPE_LOB (size_t) 0, (dvoid *) 0);
    OCILobEnableBuffering (m_pCtx-> hpContext, m_pCtx-> hpErr, (OCILobLocator *) m_pLobLocator);

    that I bind parameters using OCIBindByName and OCIStmtExecute statement execution.

    I get an error
    ---------------------------
    Microsoft Visual C++
    ---------------------------
    Unhandled exception in... (ORAOCIEI11. (DLL): 0xC0000005: Access Violation.

    My question is: is it possible to call the pl/sql procedure with parameter BEAK clob?
    If Yes, what steps I need to do to succeed?

    Thank you for your response.

    Hello

    Of course, it is possible :)

    Show that you are your piece of code that is binding.
    Are you sure you had correctly the lob descriptor in the call to bind?

  • Call the PL/SQL procedure with different parameters?

    I use PL/SQL for web development. I have a page of PL/SQL which collects information and returns the user off site with one return url (another PL/SQL procedure).

    I have the return procedure with every documented return variable (default null) in order to always take the return. However, there are (reported... cannot reproduce because of the nature of the business) cases where a 404 error is returned because of the incompatibility of parameter.

    Is it possible to proceed regardless of the parameters? Someone at - it suggestions?

    Thank you!

    user2960509 wrote:

    My problem is that they sometimes send back of settings that do not match what I expect.

    Use the interface "+ flexible +" mod_plsql - see the Oracle® HTTP Server mod_plsql user's Guide for the documented details.

    The signature of the procedure parameter is as follows (it is called by mod_plsql using tables of name value pairs):

    create or replace procedure Scott.MyWebProc( name_array owa.vc_arr, value_array owa.vc_arr) is
    ...
    

    In your code, you just browse the berries to get the name values passed query string. You can even filled an associative array in your code (a table indexed by string and no number, where the index string represents the name of param)-this approach can make it pretty easy for the code make reference to a parameter, with little effort on your part to provide an interface to query by name for code to get the value of a parameter name.

    To enable the flexible (aka parameter 2) call interface, precede the call to web with an exclamation character. For example

    http://my-webserbver.my-domain.com/pls/dad/!scott.mywebproc?name-1=val-1&name-2=val-2..,name-n=val=n
    
  • FND_REQUEST PL/SQL procedure with parameters

    Hi guys

    I created a concurrent program, using the PL/SQL procedure that has 2 parameters. I try to call the concurrent program to help

    v_req_id: = FND_REQUEST. SUBMIT_REQUEST ('INV', 'OMS_POP_INVVALUES_P',

    NULL, SYSDATE, FALSE, l_on_date, l_org_id,.

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL

    );

    COMMIT;

    However, the competitor programming always fail with

    * Starts * August 26, 2013 14:02:31 error ORACLE 6550 for Cause of FDPSTP: FDPSTP failed due to the ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in the call to 'OMS_POP_INVVALUES_P' ORA-06550: line 1, column 7: PL/SQL: statement ignored

    and I doubt that it is because the database procedure call is not correct.

    I put four parameters with the simultaneous program, as they were with the procedure itself, which are

    p_on_date BY DATE, NUMBER, errbuff OUT VARCHAR2, OUT VARCHAR2 retcode p_org_id

    Help, please

    Kind regards

    REDA

    Okay I solved the problem of

    1. change the order of the parameters in the procedure

    CREATE OR REPLACE PROCEDURE OMS_POP_INVVALUES_P)

    errbuff OUT VARCHAR2, retcode ON NUMBER, p_on_date AS, p_org_id in NUMBER)

    IS

    and by changing the call of simultaneous program as follows

    l_req_id: =.

    fnd_request.submit_request ('INV', 'OMS_POP_INVVALUES_P',

    NULL, SYSDATE, FALSE, l_in_date, l_org_id, CHR (0));

    : SYSTEM. Message_Level: = '25';

    COMMIT;

    After removing all the parameters of the list of program parameters. No need to pass a value for errbuff and retcode, just pass other parameters and put an end to the list of parameters with CHR (0). Hope it's useful for someone else there.

    Kind regards

    REDA

  • MaxL Script and batch file

    I have a MaxL script that exports data from different cubes Level0. I have a batch file to call this script at daily intervals.

    I want to name something out of different every day (preferably NAMEmmdd type format). I know that I can add a rename or move the lot but wonder if there is a MaxL method that will allow me to export to another name?

    Current MaxL is simply
    export database APP. Level0 data_file DB database ' ' $Arborpath\am1119.txt "";

    Ideas or direction to go learn the answer?

    T,
    J

    Hello

    You can enter variables in maxl, so you the calling batch file can pass in a variable that contains the name of the file with the current date...

    For example, you have a batch file
    essmsh c:\temp\export.mxl "C:\temp\output%DATE:~3,2%%DATE:~0,2%.txt".

    If that was run today it would pass in ' C:\temp\output1118.txt

    Now in your maxl you just refer to the variable with

    export data from database sample.basic Level0 to data_file $1;

    $1 refers to the variable which has been adopted, the 1 being the position, in which it was adopted.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • 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

  • call a batch file in the sql scripts

    Hi friends,
    I'm looking for a way to call any batch file in sql scripts. I avoid using the DBMS_SCHEDULER package because my application server and database server are deparaments.
    I use the sql script using the server.plz application.


    Ah, I see. Of course, this explains everything.

    Now to be serious: there is no way to run a batch SQL script. The Tools that present SQL statements to the database are often able to do; host in SQL * Plus may issue commands to the OS, the host of builtin forms is it too and with dbms_scheduler , you can run a shell script on the database server.

    So depending on the tools you use, there are several ways to run the OS commands. So far you didn't tell us what you want to do with what tools in the version you want to do. So to only answer is: it is not possible. You cannot run a simple SQL command script.

    see you soon

  • Problem with 2 updates, called from a batch file

    Hello everyone,

    I use Oracle 10 G and SQLPLUS to generate an export file on a Windows platform from a batch file.

    Everything seems fine, except for the part where I'm doing two consecutive updates. Whenever I do it with SQL anymore, only the two updates is committed, which means that I only have half of the data that I need to export. When I do it in an anonymous PL/SQL block, it works fine. I have not understant where is my mistake:
    UPDATE ITEM SET I_TRANSACTION = 'Y', I_TRANSACTION_DATE = SYSDATE WHERE I_ITEM_NUMBER IN (  SELECT I_ITEM_NUMBER
                                                             FROM ITEM
                                                           WHERE  I_TRANSACTION = 'N'
                                                                                                                                                                  AND  I_SALE_DATE >= (SYSDATE - 30));
    
    UPDATE SERVICE SET S_TRANSACTION = 'Y', S_TRANSACTION_DATE = SYSDATE WHERE S_SERVICE_NUMBER IN (  SELECT S_SERVICE_NUMBER
                                                             FROM ITEM
                                                           WHERE  S_TRANSACTION = 'N'
                                                                                                                                                                  AND  S_SALE_DATE >= (SYSDATE - 30));
    COMMIT;
    EXIT
    /
    Why is only one of these two update is committed? When I do my reel, I see either items or services, but never both. I have the same executed in a PL/SQL block and it works properly.

    I need to split updates into separate files?

    I made more complex stuff with SQL Loader, I wonder why this thing is annoying me.

    I'm sure it's only something trivial, but I don't see it right away.


    Thank you for your help.

    Bodart

    If it works in a PL/SQL block, then why not do it this way in your file?

    BEGIN
      UPDATE ITEM ...;
    
      UPDATE SERVICE ...;
    
      COMMIT;
    END;
    /
    
  • How to call sql loader control file with in the pl/sql procedure

    Hi friends,

    I am doing a project in relation to the transfer data using queues. In the queue, I'll get a data delimited by tabs in the form of CLOB variable/message. I don't want to keep this dat in the oracle table.
    During the updating of the data in the table.

    1. don't want to write data to a file. (You want to access directly after the specific queue).

    2. as the data is in the form of delimited by tabs, I want to use sql loader concept.

    How can I call the ctrl charger sql file with in my pl/sql procedure. When I searched, most forums recommending the external procedure or a Java program.

    Please guide me on this issue. My preferrence is pl sql, but don't know the external procedure. If no other way, I'll try Java.

    I'm using oracle 9.2.0.8.0.

    Thanks in advance,
    Vimal...

    Or SQL * Loader, or external tables are designed to read data from a CLOB stored in the database. They both work on files stored on the file system. If you don't want the data to be written to a file, you have to roll your own parsing code. It is certainly possible. But it will be much less effective than SQL * Loader or external tables. And it is likely to lead to a little more code.

    The simplest possible thing that might work would be to use something like Tom Kyte string tokenization package to read a line in the CLOB, divide the component parts and save the different chips in a significant collection (i.e. an object type or a record type that matches the table definition). Of course, you need manage things like the conversion of strings to numbers or dates, rejecting the lines, writing to log files, etc.

    Justin

  • Call the batch file and not the shell script using measures of the event

    Can I use EVENTACTIONS at the door of gold like

    eventactions (SHELL, /path-to-batch-file/test1.bat)

    will this work? I am on a windows machine, so I need to run a batch file and not a shell script

    In GGSCI, you can shell OUT to the BONE and call a command/executable file.

    For example on Windows:

    GGSCI (WIN2003) 2 > shell dir

    Volume in drive C has no label.

    Volume serial number is 8CCC-9E58

    Directory of C:\ggs

    18/08/2012 07:23

    .

    18/08/2012 07:23

    ...

    2010-10-15 06:37 bcpfmt.tpl 426

    2010-10-15 06:37 bcrypt.txt 1 725

    22/04/2011 03:41 2 560 category.dll

    05/11/2011 10:43

    cfg

    2010-10-15 07:15 739 chkpt_ora_create.sql

    ...

    What were the results when you tried this in an EVENTACTIONS clause?

  • Passing parameters to a batch file in FDM

    Greetings,
    is it possible to pass specific parameters such as the user name, password, server, database, etc. in FDM for a batch file that I created. This batch file is called from the AftExportToDat event using the ShellandWait call. Thank you very much.
    CG

    You can call the API. DataWindow.Connection to retrieve these values. You can certainly get the user ID curent by calling pstrUserID. I never tried to recover the password, it can be encrypted during execution?

    The API guide and the workbench has more information.

    -Nate

  • Call a visual basic executable file with arguments command line using LABView

    Hi all

    I try to call a visual basic executable file with a command line using LABView 2014 argument. What I'm trying to accomplish executes an executable file that communicates with a device via a COM port. So, I would open the .exe with a command line argument to communicate via com 3 using the SYSTEM Exec VI. It seems that the command prompt window flashes and closes and then nothing happens. Not a lot of discussions about this on the forum. Any help would be greatly appreciated. Thank you.

    With some programs, instead of passing in the string:

    Somefile.exe

    Instead, you can use:

    cmd /c "C:\Full Path\to the EXE\Somefile.exe"

    Can you tell us what exactly you are trying to run?

  • help with a simple batch file to open files or folders in command prompt

    Read the article HERE. It should guide you to accomplish what it is you want.

    @ Daavee... I am a supporter of the Holiday Inn Express. I feel always smarter after a stay... hahaha

    OP.

    Use the following syntax to open a folder

    Start "" "File path".

    Example: start "" "C: \Documents and Settings\ username to open \My Documents\File name.

    The article HERE can be useful too.

    "No, I do not use the batch files. Just thought I'd share with you what I know. :-)"  Thanks again Daavee

  • I need help doing things with batch files

    This applies to All THE VERSIONS OF WINDOWS and probably relates more to MSDOS than any other.

    cmd.exe or notepad.exe and comand.com applications

    I'm doing some kind of Setup.

    I have a tool nice lottle I did that works with a batch file. and he has 3-4 text file sthat go with it. I wanted to make a batch file which would act as an installer. make the MainMenu.txt, ReadMe.txt, Credits.txt, DISCLAIMER.txt fill them with the correct values, then make the .bat file that acts as the user interface. and when this launch the batch file under its weight made it has created (and not as a child of cmd window) then delete itself so all that remained was the new files...

    I tried the command IF [NOT] EXIST filename command because it's the only IF the syntax I have any slight understanding of

    EXAMPLE OF

    mkdir EXAMPLE

    EXAMPLE of CD

    IF [NOT] EXIST MainMenu.txt GOTO CMAIN

    : CMAIN

    ECHO the text I want to be in the lead > MainMenu.txt

    pause

    EXAMPLE OF

    but when I run the command 'Betainstall.bat' file, it opens and then closes immediately. What would be nice if it was the CASE of WAT I TOLD it to. it doesent need to be opened, because it only creates a directory then makes em fills with files on and its done... but it doesent do anything. and since it closes too quickly it's a bit hard to read all the messages that appears. (im not fast enough for print scrn) and addition of the pause at the end did not a thing. and / k has ever helped me before

    so someone who knows nothing about MS-DOS or command prompt this is a great opportunity to showcase the prowess of youre

    I just need to find how to get cmd to delete the last entry of Y.

    If I could get the Y equal to NULL it should write the %M % and not okay right?

    For the first part of what I mentioned above, you can simply do:

    SET M =

    The M variable will then to null.

    However, for what is in quotes: No. get M set to null will do what you want.  Use the command I mentioned in my previous post.  Note the signs double% to get the result of %M % in the command of the user file.

    IF the echo % M %! == 1 ! Goto: whatever > USER - X 2. 0.Bat

    Then the USER - X 2. 0.Bat will contain the line:

    IF M %! == 1 ! Goto: whatever

    Now, from your original:

    SET /p M = type OK or CANCEL, and then press ENTER:
    IF %M % IS INSTALL OK GOTO
    IF %M % IS CANCEL LEAVE
    : INSTALL

    You can see that if the M variable contains not exactly the capitals OK or CANCEL capitalized (that you specified), then the second half of each IF statement will not be executed. Your sample of what is getting written to the file USER - X 2. 0.Bat, you typed tiny ok and it works again the part of the installation of your batch file because he simply fell thru to the: part of the INSTALLATION.

    What you want is a batch program that allows to anticipate all possible ways that the user could answer "correctly". When you check if the variable M is equal to OK, it checks that specifically. All other cases the letters will not be the exact match.  That's why I ran three different lines looking for okay, okay, then OK.

    The fall same thru happen here:

    SET /p M = press on, then ENTER:
    IF %M % == y GOTO RUN
    : RUN

    Because the only thing you're looking for is there it will be Goto: EXECUTION of the IF statement , if (and only if) M is exactly there, but if it is equal to anything else it will fall through to the next line which is your: block RUN. As you have, any response is typical for the "SET/p M = press on, then ENTER", it's going to fall through and get to the: RUN block. The only exception is that if the user presses the enter only key, it will then generate the error message that I mentioned and end the batch file. That's why I used the! at the end of the two %M % and on the end of what we test, such as OK! This test if the user pressed the key entry in itself without the batch file, which gives an error.

    So, instead of this:

    IF the ECHO %M % == 1 GOTO RUN > USER - X 2. 0.bat
    IF the ECHO %M % == 2 GOTO README > USER - X 2. 0.bat
    IF the ECHO %M % == 3 CREDITS GOTO > USER - X 2. 0.bat
    IF the ECHO %M % == 4 GOTO WARNING > USER - X 2. 0.bat
    IF the ECHO %M % == 5 GOTO EOF > USER - X 2. 0.bat

    Use this:

    IF THE ECHO % M %! == 1 ! GOTO RUN > USER - X 2. 0.bat
    IF THE ECHO % M %! == 2 ! GOTO README > USER - X 2. 0.bat
    IF THE ECHO % M %! == 3 ! GOTO CREDITS > USER - X 2. 0.bat
    IF THE ECHO % M %! == 4 ! Disclaimer GOTO > USER - X 2. 0.bat
    IF THE ECHO % M %! == 5 ! GOTO EOF > USER - X 2. 0.bat

    Or use which does the same thing, but look more pretty:

    IF the echo % M %! == 1 ! Goto: run > user - X 2. 0.Bat
    IF the echo % M %! == 2 ! Goto: ReadMe > user - X 2. 0.Bat
    IF the echo % M %! == 3 ! Goto: credits > user - X 2. 0.Bat
    IF the echo % M %! == 4 ! Goto: warning > user - X 2. 0.Bat
    IF the echo % M %! == 5 ! Goto: EOF > user - X 2. 0.Bat

    (Upper and lower case for the block names all answer the same, whereas they are not nit-picky as the tests within the statement itself. I put the: before the labels of block in the IF statement so I know it's a label. I left the uppercase EOF because it is an acronym for end of file. And I use IF instead of If since it's a small order and I like it to stand. This bit is just my personal preference.)

    Another thing, you can make is for your first redirection in User - X 2. 0.Bat is to use the single > crush entire previous existence of this file. Then for forwarding the following him, continue the > who is the operator 'Add file '.

    Better yet would be first to check if the file of the user - X 2. Bat is and give the user the possibility to replace, rename, or to have an abortion.

    Clear as mud now? :)

    Edit: I just looked and I see that you are already doing the single > for the first time. Pass over my hikes on this part. Laughing out loud

Maybe you are looking for