MDT Application - Running a batch file and copy file locally without absolute path??

I have an application defined in MDT along with its respective files. One of these files is an install and needs to be run locally. How do I copy this file locally then have it run? I've used a fair amount of batch scripts so I opted for that, but every
batch script I get (even empty ones or one with just an exit) returns code 1. If I enter in cmd /c directly in the command line with the commands separated by && it would not work either.
I DO not want to hardcode any IP into this which is why this is so hard. Is there no way to do this easily without a full \\IPADDY\Share?

You could make a self extracting EXE with WinZip, and then do something like..  (You would create an application with source files to do this, with the below code being your 'install.bat')
@echo off
xcopy "AppFiles.exe" %WINDIR%\Temp
%WINDIR%\Temp\AppFiles.exe
%WINDIR%\Temp\AppFiles\Install.exe
RMDIR /S /Q %WINDIR%\Temp\AppFiles
If you monitor the install and your satisfied its working correctly, you can modify the success return codes under the 'Option' tab, or just check the box 'Continue on Error' to keep the build rolling after this install is complete.  Additionally, you
may find this works better as VBS script.

Similar Messages

  • Run in batch mode and ping directory

    Hi all,
         i run the program in the backgroung mode.
       i have two parameters.one input file path name, second one output file name
    (where can i stored).
      i given input file path name like this: h:\list.txt
    and output file path : h:\jjj.txt.
    and then press F9.here pupup windoe is comeing (background job parameter) i click write tick button .the here i got popup and massage is like this "format set X_65_80".then i press enter.again popup is came start time,i click the immediate button and save it.then bachground job is schduled.
    then again i go to SM37. there i given prog name and execute.status is canceled.
    i click job log button its show the error.that error message :"error opening the server file. please help me how to solve the problem.
    i write code like this
    AT SELECTION-SCREEN.
    *.. Check if program run in batch mode and ping directory
      IF sy-batch = 'X'.
    *.. Move filename to file_name
        file_name = p_infile.
    *.. Check if path can be reached
        OPEN DATASET file_name FOR INPUT IN TEXT MODE.
        IF sy-subrc NE 0.
          MESSAGE e082(zsomerfield).
        ENDIF.
      ENDIF.
    *.. Batch check
    it urgetnt.
    Regards.
    kris.

    Krishna,
      You have to check 2 things
    1.whether you have autorization for that directory
    2.Check the file path currectly.Go to tcode AL11 try to copy the path and paste
          here.
    Pl.e reward if useful...

  • Upload and Copy files using PLSQL.

    Hi All,
    Can UTL package can be used to upload any local data file to server?
    Or is there any in-built package which can be used to upload files to servers and copy files to another directory?
    Thanks in advance.

    Avishek wrote:
    Thanks.
    But i've a requirement to upload and copy files from one directory to another.
    How can i approach?Realize we only know what you post & so far you have posted NOTHING useful.
    How exactly does end user interact with the DB?
    3-tier application?
    EndUser<=>browser<=>WebServer<=>ApplicationServer<=>DatabaseServer
    What OS name & version for client system?
    Handle:      Avishek
    Email:      [email protected]
    Status Level:      Newbie (5)
    Registered:      Jun 3, 2008
    Total Posts:      68
    Total Questions:      27 (16 unresolved)

  • Find and copy files by file name

    Hey Gang,
    I sure hope you guys can help me out. I'm looking for a piece of software that can read a txt file or spreadsheet to find specific files and copy them from one place to another.
    In other words, I have a folder with 1000 files in numerical order from 1 to 1000. I need software that can copy only selected images (ie 4, 53, 244, 456, 999, etc...) to a separate folder.
    Any Ideas?
    -Chris

    This is very simple to do with a script.
    Let's assume that the files are in /Users/cnhoward/source and you want to move particular files to /Users/cnhoward/dest. Let's say you have a text file, numbers.txt, with one number on each line, and the files are named like 'file_X.txt' where 'X' is the number. Then you could do this in terminal:
    for n in `cat numbers.txt`
    do
    cp /Users/cnhoward/source/file_${n}.txt /Users/cnhoward/dest
    done
    You don't give much in the way of details, but that should give you an idea to start from.

  • How can I extract part of a PDF file and copy it to a new PDF file?

    How can I extract part of a PDF file and copy it to another PDF file?

    You will need Adobe Acrobat for this.

  • How to read the source file and copy the entire content to the target Database field

    Hi All,
    PI system extracts the actual business content from the incoming attachment file and copy the entire format to the target Database field which is a blob data type field.
    Sender Adapter: SOAP
    Receiver Adapter: JDBC
    JDBC Structure
    Can we achived the above requirement by using UDF with out Java Mapping?
    Thanks,
    Mahi.

    Ok, in this case yo can use the conten converion of the file adapter. Therefore you first need to create a Datatype in ESR with the required structure
    Then in your file adapter you need to use this datatype and its required fields:
    The Datatype then can be used as usual within you mapping.
    regards
    Christian

  • HT201250 Can i store my files on time capsule from my ipad, and copy them back, without using itunes to sync the tablet?

    Can i store my files on time capsule from my ipad, and copy them back, without using itunes to sync the tablet? i want to buy an iPad Air and to forget my laptop and i think that even the 128 gb wont be enough some times. I am wandering if time capsule can be used as external hdd and to connect on it via wifi ...

    No. You cannot access your Time Capsule directly from an iOS device. The only way to back up an iOS device is to a computer through iTunes or to iCloud, though in some cases you can open and save files via another cloud-based service such as Dropbox.
    Regards.

  • How to run .class file and .jar file in jdev9i

    I want to run .class file and .jar file in jdev9i,what should I do?
    Also,I want to generate .class file and .jar file in jdev9i,what should i do?

    Add the .class file containing the public static void main(...) method to the project by clicking on the + toolbar button in the navigator, open the project properties and properly set the additional classpath then right click on the .class in the navigator and say run. It should work, I've just tried it.
    Doesn't work for a .jar yet, in JDeveloper 9.0.3 it works both for .class and .jar
    Michel

  • I wonder if there is an application to uninstall a logiciel and all files related to the same thanks.

    I wonder if there is an application to uninstall a logiciel and all files related to the same thanks.
    Bruno Vasques

    Another option:
    AppDelete

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • Table files and Index files 2GB on Windows 2003 Server SP2 32-bit

    I'm new to Oracle and I've ran into the problem where my Table files and Index files are > 2GB. I have an Oracle instance running version 10.2.0.3.0. I have a number of tables file and index files that have a current files size of 1.99GB. My Oracle crashes about three times a week because of a "Write Fault/Failure. I've detemined that the RDBM is trying to write a index or table files > 2GB. When this occurs it crashes.
    I've been reading the Oracle knowledge base that it suggest that there is a fix or release of Oracle 10g to resolve this problem. However, I've been unable to locate any fix or release to address my issue. Does such a fix or release exist? How do I address this issue? I'm from the world of MS SQL and IBM DB2 and we don't have this issue. I am running and NTFS files system. Could this be issue be related to an Windows Fix?
    Surely Oracle can handel databases > 2GB.
    Thanks in advance for any help.

    After reading your response it appears that my real problem has to do with checking pointing. I've included below a copy of the error message:
    Oracle process number: 8
    Windows thread id: 3768, image: ORACLE.EXE (CKPT)
    *** 2008-07-27 16:50:13.569
    *** SERVICE NAME:(SYS$BACKGROUND) 2008-07-27 16:50:13.569
    *** SESSION ID:(219.1) 2008-07-27 16:50:13.569
    ORA-00206: Message 206 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1]
    ORA-00202: Message 202 not found; No message file for product=RDBMS, facility=ORA; arguments: [D:\ELLIPSE_DATABASE\CONTROL\CTRL1_ELLPROD1.CTL]
    ORA-27072: Message 27072 not found; No message file for product=RDBMS, facility=ORA
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    error 221 detected in background process
    ORA-00221: Message 221 not found; No message file for product=RDBMS, facility=ORA
    ORA-00206: Message 206 not found; No message file for product=RDBMS, facility=ORA; arguments: [3] [1]
    ORA-00202: Message 202 not found; No message file for product=RDBMS, facility=ORA; arguments: [D:\ELLIPSE_DATABASE\CONTROL\CTRL1_ELLPROD1.CTL]
    ORA-27072: Message 27072 not found; No message file for product=RDBMS, facility=ORA
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    Can you tell me why I'm having issues with checking point and the control file?
    Can I rebuild the control file if it s corrupt?
    The problem has been going on since April 2008. I'm takening over the system.
    Thanks

  • How to Add JAR files and Config files to CLASSPATH at runtime?

    QUERY:
    During runtime, I need to load the JAR files and relevant config files( .cfg files and .properties file) into CLASSPATH and run a specific java program from one of the JAR which is available in CLASSPATH.
    Please advise me any relevant Java API details or a sample java program to implement the above use case.
    Thanks in advance.

    During runtime, I need to load the JAR files and relevant config files( .cfg files and .properties file) into CLASSPATH and run a specific java program from one of the JAR which is available in CLASSPATH.
    Please advise me any relevant Java API details or a sample java program to implement the above use case.
    You don't add to YOUR classpath once your app is launched.
    You create a NEW process for the app you want to run and provide the proper environment for it to run in - including any PATH or CLASSPATH environment variables.
    The Java API for the ProcessBuilder class has a simple example that shows how to create the arguments and launch an external application.
    ProcessBuilder (Java Platform SE 7 )
    There are also PLENTY of other examples of using ProcessBuilder; just search the net.

  • Hi All, I recently bought a Mac Book Pro and transferred all my photos from my hard drive onto the Mac. I realised that there were some folders which didn't have the camera information embedded in the files and these files refuse to open on iPhoto. HELP!!

    Hi All, I recently bought a Mac Book Pro and transferred all my photos from my hard drive onto the Mac. I realised that there were some folders which didn't have the camera information embedded in the files and these files refuse to open on iPhoto. I know that the folders that have the problem were not transferred to the hard drive via a photo transfer application (I have a Canon camera) but I simply copied them out of the photo card and onto my old PC.
    Is there some way I can open these pictures on my Mac? They work fine on a PC.

    Thanks for your reply.
    The files don't open in preview either. In preview I get the error message 'The file "xxxx_xxx.jpg" could not be opened. It may be damaged or use a file format that Preview doesn't recognize'. The folders with these un-openable pictures do not even get imported into iPhoto. When I try to import them I get an error message about the files being unreadable.
    The color profile information on the un-openable files is not visible but I see that all the other files from my old drive are RGB.

  • When opening a sealed file, are the Autosave-File and Temp-Files encrypted?

    Hi, when opening / editing a sealed file (e.g. a MS Word document), are the Autosave-File and Temp-Files encrypted?

    Hello,
    Yes they are. If they weren't, it would be relatively easy to leak an unsealed version of the file. In older versions of the Desktop IRM opened all files in browser, so theIRM Desktop had to encrypt and copy around these files manually. Nowadays, the IRM Desktop is embedded in the Office applications themselves so we leave the temporary file creation to the application but manage the encryption depending on the nature of the file. So the autosave and temp files (where content may reside) are encrypted, but the lock file (which is only for ownership, not content) is not encrypted for example.
    In fact, the autosave/temp files which are encrypted are actually treated as sealed files, so they contain all the metadata fields you would expect. For example, open a sealed document in Word and set the autosave to every minute and make some changes. wait a minute and you'll see the autosave file (which is a .asd) update automatically (the default location is C:\Documents and Settings\<youruserid>\Application Data\Microsoft\Word\). Make a copy of the file and close Word. If you open the file and Select a Program from a List and choose Word you'll see the file open as a sealed document. If you rename the extension to .sdoc or .sdocx (depending on what the original file was), then you can right click Properties and see the metadata is there too.
    Nicely secure.
    Regards,
    Frank.

  • Difference between vmx swap file and vswp file

    Hi Guys,
    Just want to know the difference between vmx swap file and vswp file. are these same files or different.
    regards
    VINAY

    The confusion is caused because of the name VMX which we take for granted as the .vmx file which stores the configuration file. First of all the VMX here stands for VM eXecutable and not the same as  the .vmx file in the virtual machine directory .
    when we are running a virtual machine , there comes some basic overheads , ie the processes required to boot the virtual machine , keep it up and running and the agents consume some amount of memory and processing power in addition to the actual load  created by the OS application running on the VM.
    the VM swap file is there to enable the VM's guest OS to consume less physical memory than the configured memory
    the VMX swap file is there to reduce the memory reserved for the VMX process , ie the overhead which we discussed right now .
    ie the VM swap is the internal matter of a VM where as the VMX swap file is the responsibility of our VMkernel
    hope it helps , correct me if I am wrong or confusing

Maybe you are looking for