Creating batch file for ftp

hi,
can anybody tell me how to create batch file which will have username and password for ftp.
i want copy file from remote server to local server using ftp.
i want to create batch file which will perform all this taks..
please help me.
thanks in advance,
Chetan S. Raut.

Hi Chetan,
You should use something like that:
Code Snippet
  %windir%\ftp.exe -s:SCRIPT.TXT
Look at this link for additional details: http://www.ericphelps.com/batch/samples/ftp.script.txt
P.S. Note that this forum is about extending Visual Studio IDE - not about writing batch files.
Hope that helps,

Similar Messages

  • How to create Batch file to execute sql scripts

    Hi friends,  
          i want to create batch file to execute all my .sql scripts.
    I have all table ( all table scripts in single file ) ,Udds ( all udds in single file ) ,Stored procedures( separate file for each SPs ),Functions ( Separate file for each Functions ),Triggers and views scripts in .SQL file.   
    can anybody tell me how to create batch file for executing all these scripts in sql server ?.   
       while executing, it should ask Database name,server name, password. if these details are given then it should execute my all scripts in given database
    , if any error thrown then that error and procedure name alone have to move to separate log file..
    Please help me if this possible or any other easy way to do this..
    Thanks - Ravi

    Hi  Mate.
    can i save the below details in my batch file parmantly, so that i don't need to provide the details agains again in CMD while i execute this. Please help
    set /p SName=Server Name :
    set /p UName=User Name :
    set /p Pwd=Password :
    set /p DbName=Database Name
    If  i am providing the details before execution of this bat file it will throw error.

  • Create batch file

    hi all
    I want to know how to create batch file for
    java program to execute with mouse click.

    open txt file
    write these:
    @echo off
    @start java -classpath . *****
    ***** must be your main class name(dont add .class extension);
    and change file extension to bat

  • Need how to create DTD file  for database elements

    can any one write the DTD file for below query?
    SELECT TRX_NUMBER,
    INVOICE_CURRENCY_CODE,
    CTT_TYPE_NAME ,
    RAC_BILL_TO_CUSTOMER_NAME ,
    FROM APPS.RA_CUSTOMER_TRX_PARTIAL_V V
    DTD file structure For below query(data from two tables) also?
    SELECT TRX_NUMBER,
    INVOICE_CURRENCY_CODE,
    CTT_TYPE_NAME ,
    RAC_BILL_TO_CUSTOMER_NAME ,
    V.RAT_TERM_NAME
    FROM APPS.RA_CUSTOMER_TRX_PARTIAL_V V,APPS.RA_CUST_TRX_TYPES_ALL H
    WHERE V.CUST_TRX_TYPE_ID=H.CUST_TRX_TYPE_ID;
    DTD file structure For below program (Data should be come in that loop formate (1st c1 loop then 2nd loop details then 1st loop)
    DECLARE
    cursor c1 is SELECT TRX_NUMBER,
    CUSTOMER_TRX_ID,
    INVOICE_CURRENCY_CODE,
    CTT_TYPE_NAME ,
    RAC_BILL_TO_CUSTOMER_NAME ,
    V.RAT_TERM_NAME
    FROM APPS.RA_CUSTOMER_TRX_PARTIAL_V V,APPS.RA_CUST_TRX_TYPES_ALL H
    WHERE V.CUST_TRX_TYPE_ID=H.CUST_TRX_TYPE_ID;
    cursor c2(P_CUSTOMER_TRX_ID number) is SELECT CL.INTERFACE_LINE_ATTRIBUTE1 ,
    CL.CUSTOMER_TRX_LINE_ID,
    MTL.SEGMENT1,
    MTL.DESCRIPTION
    FROM APPS.RA_CUSTOMER_TRX_LINES_V CL,
    APPS.MTL_SYSTEM_ITEMS_B MTL
    WHERE MTL.INVENTORY_ITEM_ID(+)=CL.INVENTORY_ITEM_ID
    AND MTL.ORGANIZATION_ID(+) = CL.WAREHOUSE_ID
    and cl.CUSTOMER_TRX_ID=P_CUSTOMER_TRX_ID
    BEGIN
    FOR I IN C1 LOOP
    DBMS_OUTPUT.PUT_LINE(I.TRX_NUMBER||I.CUSTOMER_TRX_ID||INVOICE_CURRENCY_CODE);
    FOR J IN C1(I.CUSTOMER_TRX_ID) LOOP
    DBMS_OUTPUT.PUT_LINE(J.INTERFACE_LINE_ATTRIBUTE1 ||J.CUSTOMER_TRX_LINE_ID||J.SEGMENT1);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(I.RAC_BILL_TO_CUSTOMER_NAME);
    END LOOP;
    END;

    how to create batch file for windows application ??
    I hava 2 jar files
         1) b.jar (not have main class)
         2) a.jar (have main class and dependent on b.jar)
    so how i call main class of a.jar     ??Just set the main class in the manifest of a.jar and make sure the manifest knows about b.jar
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • Unix shell script to batch file for windows

    Hello all,
    Iam writing a program in java in unix environment and iam executing using shell scripts in unix this program is for client-server environment
    which look like this:
    For server:
    #! /bin/ksh
    export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
    #set var for filename config file
    export JAL_CONF_FILE=/user/vpp/jal/conf/JALapp.conf
    java -DJAL_CONF_FILE=$JAL_CONF_FILE jalsvr/JALTCPServer 7776for client side it is
    #! /bin/ksh
    export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
    echo $CLASSPATH
    java jalcl/JALTCPClient msoc05:7776my question is know i want to execute them in windows by creating batch files runsvr.bat, runcl.batbut how
    i gave PATH by giving JRE path but what is the replacement of export because iam having all class files
    in /jalcl for clients and /jalsvr for server but want to create this batch file in separate /bin folder how to do.please help me

    Thank you for reply ,
    And sorry by mistake question repeated twice,
    but when iam executing those batch files it is throwing some exceptions,
    in that file you did not mention to set the JRE path whether it is not necessary and also there msoc05 is the machine name of unix system that need to kept or need to be changed with window IP address .please reply.
    thanks in advance.

  • Makepkg issue: cannot create temp file for here-document

    Hi there,
    Since few weeks ago i'm not able to build aur packages. I use yaourt  but i notice the problem comes from makepkg (i searched for the output message and found fakeroot related issues). Here the complete log of, for example, launching makepgk on with the ruby-headers PKGBUILD:
    $ makepkg
    ==> Creazione del pacchetto: ruby-headers 1.9.2_p136-1 (mer 9 feb 2011, 00.27.35, CET)
    ==> Controllo delle dipendenze per l'esecuzione in corso...
    ==> Controllo delle dipendenze per la compilazione in corso...
    ==> Download dei sorgenti in corso...
    -> Download di ruby-1.9.2-p136.tar.bz2 in corso...
    --2011-02-09 00:27:35-- ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.bz2
    => "ruby-1.9.2-p136.tar.bz2.part"
    Risoluzione di ftp.ruby-lang.org... 221.186.184.68
    Connessione a ftp.ruby-lang.org|221.186.184.68|:21... connesso.
    Accesso come utente anonymous ... Login eseguito!
    ==> SYST ... fatto. ==> PWD ... fatto.
    ==> TYPE I ... fatto. ==> CWD (1) /pub/ruby/1.9 ... fatto.
    ==> SIZE ruby-1.9.2-p136.tar.bz2 ... 8819324
    ==> PASV ... fatto. ==> RETR ruby-1.9.2-p136.tar.bz2 ...
    Errore nella risposta del server, chiusura della connessione di controllo.
    Altro tentativo in corso.
    --2011-02-09 00:28:47-- ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.bz2
    (tentativo: 2) => "ruby-1.9.2-p136.tar.bz2.part"
    Connessione a ftp.ruby-lang.org|221.186.184.68|:21... connesso.
    Accesso come utente anonymous ... Login eseguito!
    ==> SYST ... fatto. ==> PWD ... fatto.
    ==> TYPE I ... fatto. ==> CWD (1) /pub/ruby/1.9 ... fatto.
    ==> SIZE ruby-1.9.2-p136.tar.bz2 ... 8819324
    ==> PASV ... fatto. ==> RETR ruby-1.9.2-p136.tar.bz2 ... fatto.
    Lunghezza: 8819324 (8,4M) (non autorevole)
    100%[====================================================================>] 8.819.324 107K/s in 1m 58s
    2011-02-09 00:30:51 (72,8 KB/s) - "ruby-1.9.2-p136.tar.bz2.part" salvato [8819324]
    ==> Validazione dei file sorgenti con md5sums in corso...
    ruby-1.9.2-p136.tar.bz2 ... Verificato
    ==> Estrazione dei sorgenti in corso...
    -> estrazione di ruby-1.9.2-p136.tar.bz2 con bsdtar in corso...
    ==> Avvio di build() in corso...
    ==> Entrata nell'ambiente di fakeroot in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Avvio di package() in corso...
    ==> Rimozione dei dati superflui in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione degli altri file in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione delle pagine man ed info in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione dei simboli non necessari dai binari e dalle librerie in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Creazione del pacchetto in corso...
    -> Generazione del file .PKGINFO in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione del pacchetto in corso...
    xz: /tmp/rb_hdrs/ruby-headers-1.9.2_p136-1-any.pkg.tar: impossibile rimuovere: Successo
    Hints?
    Thanks in advance

    That time it was in /tmp/ruby_headers (which i created) but it happens with yaourt too and for every pkg i tried.
    [miche@bob tmp]$ yaourt -S ruby_headers
    ruby_headers non trovato su AUR
    [miche@bob tmp]$ yaourt -S ruby_header
    ruby_header non trovato su AUR
    ^[[A[miche@bob tmp]$ yaourt -S ruby-headers
    ==> Continuazione dalla compilazione precedente
    ==> Scaricamento del PKGBUILD di ruby-headers da AUR...
    Comment by: hilton on Tue, 28 Dec 2010 03:51:14 +0000
    Updated to 1.9.2_p136!
    First Submitted: Sat, 13 Nov 2010 20:25:52 +0000
    ruby-headers 1.9.2_p136-1 : A package of all Ruby headers needed by some gems like ruby-debug.
    ( Pacchetto non supportato: Potenzialmente pericoloso ! )
    ==> Modificare il PKGBUILD (altamente raccomandato per ragioni di sicurezza) ? [S/n]("A" per annullare)
    ==> ----------------------------------------------
    ==>n
    ==> Dipendenze di ruby-headers
    - ruby (già installato)
    ==> Continuare la compilazione di ruby-headers? [S/n]
    ==> ----------------------------------------------
    ==>s
    ==> Install or build missing dependencies for ruby-headers:
    ==> Compilazione e installazione del pacchetto
    ==> Dipendenze di ruby-headers
    - ruby (già installato)
    ==> Creazione del pacchetto: ruby-headers 1.9.2_p136-1 (mer 9 feb 2011, 01.23.54, CET)
    ==> Controllo delle dipendenze per l'esecuzione in corso...
    ==> Controllo delle dipendenze per la compilazione in corso...
    ==> Download dei sorgenti in corso...
    -> È stato trovato ruby-1.9.2-p136.tar.bz2
    ==> Validazione dei file sorgenti con md5sums in corso...
    ruby-1.9.2-p136.tar.bz2 ... Verificato
    ==> Estrazione dei sorgenti in corso...
    -> estrazione di ruby-1.9.2-p136.tar.bz2 con bsdtar in corso...
    ==> Rimozione dell'esistente directory pkg/ in corso...
    ==> Avvio di build() in corso...
    ==> Entrata nell'ambiente di fakeroot in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Avvio di package() in corso...
    ==> Rimozione dei dati superflui in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione degli altri file in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione delle pagine man ed info in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Rimozione dei simboli non necessari dai binari e dalle librerie in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    ==> Creazione del pacchetto in corso...
    -> Generazione del file .PKGINFO in corso...
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 268: cannot create temp file for here-document: Successo
    /usr/bin/makepkg: line 272: cannot create temp file for here-document: Successo
    -> Compressione del pacchetto in corso...
    xz: /tmp/yaourt-tmp-miche/aur-ruby-headers/ruby-headers/ruby-headers-1.9.2_p136-1-any.pkg.tar.xz: impossibile rimuovere: Successo
    Error: Makepkg non ha potuto costruire il pacchetto ruby-headers.
    [miche@bob tmp]$

  • Batch file for IE settings

    Hi everybody,
    I want to make some changes to IE settings of many PCs to be able to open a tool which willl be used by all users using the systems..
    Since same settings are to be applied to different systems. I want to create a batch file for it .
    Settings are :
    1.Go to internet Options-- security--sites--trusted sites and and the site
    https://abc.com under it
    2.Set security level for this zone as Low
    3.Check enable protected mode
    4.Go to internet options--settings--privacy and uncheck Turn on Pop-up blocker
    5.Go to tools--compatibility view settings and the site
    https://abc.com under it . Check option - display intranet sites
    in compatibility view
    I did some research on net and found that all these settings are done by changing entries in registery.
    The site http://support.microsoft.com/kb/182569 gave lot of info on what various codes mean . But since I am new to creating
    batch files , it does not help me in writing commands. Little more research showed me that my commands would be something like
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /.....................
    However I cannot use trial and error as any unwanted change to registery may cause damage to my systems .
    It would really be very helpful if anyone can help me with his/her expertise in batch files and reg files.
    My target will be for IE8/9/10/11 preview . I am assuming the commands would be same for these versions which are comparitively new.
    Thanks,
    Mani
    manISRT

    Hi,
    this is a very broad topic, with quite a few scenarios, and potentially lots of complexity.
    Here are some thoughts I have written down for you to consider:
    Firstly, you really need to understand the basics of IE Zones, and how it is that addresses are categorised into each zone.
    There are default settings for each zone, and these are initially defined by MS, but you, or the user can, and may, have changed which zone is active, in which situation.
    E.g., if you are dealing with pc's in your organisation and under your control, vs pc's not in your organisation and/or not under your control.
    For pc's which are in your organisation, are they used only inside your office network, or are they also used outside your office network?
    Are the pc's under your control managed by Active Directory (are they members of your organisation's AD Domain?
    Does your office network use a network firewall or proxy, and the pc's inside gain access to the internet by "traversing" this proxy?
    Is the website you mention, "inside" your organisation's network, or, "outside" your organisation's network?
    If outside, how do your organisation's pc's currently become configured for internet access?
    Do they have configurations applied to the pc's, such as proxy settings? If so, does this use Proxy Auto Configuration (PAC) or INS, such as wpad.dat or proxy.pac?
    Note that if you adjust site-to-zone settings, and/or settings for a particular zone, other websites which are categorised into that zone will also attract the adjusted settings, so you need to ensure that any changes you make, are suitable for those other
    websites too.
    Is the website address part of your organisation's domain name, or a domain name that you already have particular settings for?
    Is the website/address and the content upon it controlled by your organisation?
    For compatibility view, depending upon the IE browser version, there are different methods available, you may not need to adjust the browser settings if the webpages are suitably constructed:
    Does the website specify <!DOCTYPE  ?
    Does the website supply X-UA-Compatible metatag?
    You can deliver most settings for IE in a few different ways:
    - AD GPO (you can use Group Policy Admin Templates, or, Group Policy Preferences)
    - IEAK (you can deploy a settings package with or without deploying a version of the browser)
    - registry settings (which you can deploy using scripts or batch files)
    - get the user to manually apply the settings via the user interface
    Note that some settings may need to be applied per-user (HKCU) and some settings are per-machine (HKLM).
    If you have a multi-user or hotdesk scenario (where more than a single user, uses the same machine), this might require you to re-apply the settings for each and every user.
    E.g.:
    Your organisation is wanting to use a hosted web application, accessed from inside your organisation, but it is hosted outside your ogranisation.
    The address is http://contoso.websales.hosterxyz.com
    You examine your existing pc configurations and determine that the IE Trusted Sites zone is not currently in use by any standard configurations.
    The hosted web application requires IE Protected Mode to be disabled (because of some special functions/features).
    You examine the default settings of the IE Trusted Sites zone, and observe that the Trusted Sites zone already has Protected Mode disabled.
    You decide to categorise the website "http://contoso.websales.hosterxyz.com" as a Trusted Site.
    On a test pc, you manually add the website "http://contoso.websales.hosterxyz.com" to Trusted Sites, and test the web application is operating correctly.
    You then create an AD GPO, which adds this website address into the Trusted Sites zone, and link/apply/deploy this GPO within your AD.
    Your organisations computers automatically read, process and apply this GPO, and all computers are now configured for this website as a Trusted Site.
    Note that if you use the "classic" GPO methods (Admin Templates), users can no longer manually adjust websites in or out of the Trusted Sites zone, because when "classic" GPO is deployed, it removes the ability for users to adjust these
    settings manually.
    This may be suitable for your organisation, or, unsuitable - it depends upon the degree of "freedom" you wish/need to allow.
    Alternately, you could use IEAK or GP Preferences, to deploy the Trusted Sites settings - these two methods allow the end-user to manually adjust if they choose. This means the end-user can remove the settings you deployed.
    Again, this may (or not) suit your scenario.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Batch file for Export Job

    Hi,
    We created an OS batch file for our daily exports (backups). This file is scheduled to run daily at 7:00 P.M. A test run showed that it did not work. Can somebody find an error in the script?
    rem ***** SAMPLE BATCH FILE TO DO DAILY EXPORT ******
    @echo Export started at:
    @echo
    date /T
    time /T
    rem Here's a one-line NT command (But a long line!)
    rem one that splits all the date parts out, outting
    rem each one into it's own variable (weekday, day, month, year)
    for /f "tokens=1-4 delims=/ " %%a in('date /t') do
    (set=weekend=%%a& set day=%%b& set month=%%c& set year=%%d)
    set logfile=%year%_%month%_%day%.log
    set expfile=%year%_%month%_%day%.exp
    set ORACLE_SID=BDC
    set ORACLE_HOME=D:\oracle\product\10.2.0
    exp system/bdcadmin@bdc full=y grants=y file=D:\export\bdc.dmp log=D:\export\bdc.log compress=N
    @echo Export completed at:
    @echo
    date /T
    time /T
    rem ************* END OF BATCH FILE *********************
    Thank you!

    You can straight away use this batch file after modifying the exp line with your machine details and schema name.
    @echo off
    if %1/==:/ goto %2
    if NOT %1/==/?/ goto Begin
    for %%C in (echo. goto:End) do %%C
    :Begin --------------------------------------------------------------
    if NOT errorlevel 1 %0 : %OS%Parse MM DD
    %0 : %OS%Parse DD MM
    :Windows_NTParse ----------------------------------------------------
    for /f "tokens=1-4 delims=/.- " %%A in ('date /t') do (
    set Dow=%%A&set %3=%%B&set %4=%%C&set YYYY=%%D&goto End)
    :Parse --------------------------------------------------------------
    for %%C in (md cd) do %%C @tmp@
    %COMSPEC% /e:2048 /c ~tmp1.bat > ~tmp2.bat
    call ~tmp2
    if NOT errorlevel 1 goto Slash
    lfnfor on > "%_D%.-"
    ren "%_D%.-" "??? ?? ?? ????"
    for %%F in ("??? ?? ?? ????") do set _D=%%F
    lfnfor off
    :Slash
    for %%S in ("%3=%%%4%%" "%4=%%YYYY%%" "YYYY=%%1") do echo set %%S>>~tmp1.bat
    for %%S in (%_D%) do call ~tmp1 %%S
    if errorlevel 1 goto Cleanup
    %COMSPEC% /e:2048 /c ~tmp1.bat > ~tmp2.bat
    call ~tmp2
    :Cleanup
    for %%C in ("set _D=" cd.. "deltree /y @tmp@ > NUL") do %%C
    :End ----------------------------------------------------------------
    exp system/oracle file=D:\Backup\PERF_4.2_%yyyy%%mm%%dd%.dmp log=D:\Backup\PERF_4.2_%yyyy%%mm%%dd%.log owner=TEST
    ****************************************************************************************

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway inst

    I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway installing PSE-10 or uninstalling it. If I send the  PDF file that has been automatically converted to a PSE-10 the person I send the file to can not open it because they do not have PSE-10. What can I do to stop PSE-10 from converting my PDF files? Don't tell me to upgrade PSE-10 I tried their on-line program and  it is too advance for a hobby photographer like myself and their Help Desk is impossible to reach.

    Hi,
    Can you please share the logs?
    You can use the Adobe  Log Collector tool (Log Collector Tool) and share the corresponding zip file @ [email protected]
    Thanks,
    Shikha

  • Running a batch file on ftp server

    HI All,
    i am trying to use Command line facility of file adapter to run a batch file..
    i batch file i have a single command as
    mkdir ranjeet.
    how should i call this batch file from file adapter..
    i tried putting batch file name in the command line section. I had copied the batch file on ftp server at location of Target Directory..but in audit log of adapter i am getting error as OS command cannot be executed..

    Ranjeet,
    >>ok..but what will command to be run of ftp run..
    How do you expect any one of us to know what your ftp server is based on.
    The previous reply by Carme has answered your XI query and to the point. You acknowledge it with a <b>ok</b>!! I guess it is too rude on your part.
    Anway answering your question, that depends on your FTP server. Log in to your FTP server manally and try executing these commands and check.
    Regards,
    Jai Shankar

  • Creating setup file for java

    Somebody tell me how to create setup file for the software which is made by using java programming. We can create jar file for that purpose but I want to create setup file or exe file.

    open source
    - izpack (windows, linux, macos) www.izforge.com or org
    - nsis.sf.net (winblows only)
    commercial
    - www.zerog.com 's InstallAnywhere

  • Can i create different file for my movies

    I need to create diferent file for movies, but i don't know how to do it

    i want to creat like a play list but for movies, can i do that

Maybe you are looking for