Robocopy and same directory

Hi
With the Robocopy command of Windows 8.x, how do I do a copy of a file (renaming it) in the same directory of the source file?
Thanks
Bye
Balubeto

You cannot.
Robocopy is intended to copy folders not files.
So you cannot specify a destination file, just a destination folder.
MCP/MCSA/MCTS/MCITP

Similar Messages

  • Stop Lightroom from forcing "-edit" rename and saving in the same directory when saved from Photoshop

    After opening a file from Lightroom 5 in photoshop, is there a way to disable the function that automatically saves a file back to Lightroom in the same folder, while adding the infuriating "-edit" to the filename? I keep my files in a very tight file structure, with DNGs, PSDs, and JPGs all neatly separated. It drives me batty that when I save a file it saves it in the same directory as the DNG. Why would anyone want this as a feature. STOP IT!
    I know I can simply "Save As" but there has to be a way to turn this off.

    I know you can have Lightroom change the appended "-edit" (via Preferences) to practically anything you'd like but as far as I know, it's all by design. Photoshop/Lightroom will always save a copy and leave your original files alone. To be honest, I'd want all my edits contained to where the original file was as well. As long as they're in the same folder, I'm happy.

  • Copying files from same directory as *.java files and moving to WEB-INF/classes/ package name

    In our current application we have the following source directory structure:
              src -
              - com
              - edeploy
              - subdirs ... (many directories here)
              - jsp
              -subdirs ... (many directories here)
              In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              files). I would like to modify my build.cmd script to copy the *.gxq files
              into the same directory as the class files.
              Here's my script so far:
              @REM Create list of files to compile
              DIR /S /B /A:-D src\com\*.java >class.list
              @REM Create list of query files
              DIR /S /B /A:-D src\com\*.gxq >query.list
              @REM Compile
              javac -d stage\WEB-INF\classes @class.list
              @REM Copy query files into class directory
              .......... code needed here ......
              Can anyone help me with this?
              Thanks,
              Matt
              

    You may want to check out:
              http://jakarta.apache.org/ant/index.html
              Gary
              "Matt Raible" <[email protected]> wrote in message
              news:[email protected]..
              > In our current application we have the following source directory
              structure:
              >
              > src -
              > - com
              > - edeploy
              > - subdirs ... (many directories here)
              > - jsp
              > -subdirs ... (many directories here)
              >
              >
              > In com.edeploy.subdirs, there exists *.java files, and *.gxq files (query
              > files). I would like to modify my build.cmd script to copy the *.gxq
              files
              > into the same directory as the class files.
              >
              > Here's my script so far:
              >
              > @REM Create list of files to compile
              > DIR /S /B /A:-D src\com\*.java >class.list
              >
              > @REM Create list of query files
              > DIR /S /B /A:-D src\com\*.gxq >query.list
              >
              > @REM Compile
              > javac -d stage\WEB-INF\classes @class.list
              >
              > @REM Copy query files into class directory
              > .......... code needed here ......
              >
              > Can anyone help me with this?
              >
              > Thanks,
              >
              > Matt
              >
              >
              

  • Mac OS X disallow same folder name and filename under the same directory

    I noticed Mac doesn't allow me to create the same filename and folder name under the same directory.
    Seems like this constraint is unique only to Mac since I can do it in Unix and Windows.
    Why is this so?
      Mac OS X (10.4.9)  

    In Windows, there's probably a normally hidden extension being added to the file and/or the folder.
    In Unix, I'm NOT able to create both file "foo" and folder "foo". What version of Unix are you using that allows this? (Mac OS X is built on top of Unix.)
    One workaround would be to give the file a reasonable extension; foo.txt or foo.doc or foo.jpeg or whatever.
    Doug

  • Template instantiation and multiple binaries in same directory

    Forte C++ 5.3
    Solaris 8 w/Recommended Patch Cluster: Mar 20/03
    Several ACE [see http://www.cs.wustl.edu/~schmidt/ACE.html] Makefiles direct the creation of multiple binary executables in the same directory. My build [i.e. GNU make] of ACE test programs results in successful creation of only the first of the multiple binaries. All binaries after the first have link errors. The link errors seem to be caused by the linker's failure to pick up template instantiations the were already created when the first binary was compiled and linked.
    The $64000 question seems to be: Why does Forte's link line include the appropriate file from the template repository in the first case but not in subsequent cases? The first of the executables, MCast_Fragment_Test, links correctly because the linker picks up the singleton_ instantiation from the template repository - you can see this with the "-verbose=template" switch. However, the second of the test executables, RMCast_Reassembly_Test, fails to link because the same singleton_ instantiation [i.e. the same file] is not picked up:
    % export ACE_ROOT=/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers
    % cd $ACE_ROOT/tests/RMCast
    % gmake CCFLAGS="-verbose=template -fast -O3" exceptions=1
    shared_libs=1 static_libs=1 threads=1 distrib=1
    CC -verbose=template -fast -O3 -I..
    -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
    -I/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers
    -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c
    -o .obj/RMCast_Fragment_Test.o RMCast_Fragment_Test.cpp
    o o o
    "../test_config.h", line 314: Information: Instantiating
    ACE_Singleton<ACE_Test_Output, ACE_Null_Mutex>::singleton_.
    ccfe: Information: Invoking:
    "/tools/forte_c++/SUNWspro/bin/../WS6U2/bin/CC
    -ptd/tmp/03764.TEMPLATE_FILE.s
    -ptc/tmp/03764.TEMPLATE_FILE.ir
    -o $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_z/\
    temp.shuriken.3767.zr7WQNsTBFiWx9j3KXv3.o
    -verbose=template -fast -O3 -I..
    -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION -I$ACE_ROOT
    -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c ".
    o o o
    CC -verbose=template -fast -O3 -I..
    -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
    -I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE
    -mt -xildoff -L$ACE_ROOT/ace -L./
    -o RMCast_Fragment_Test .obj/RMCast_Fragment_Test.o
    -lACE_RMCast -lACE -lsocket -ldl -lnsl -lgen -lposix4
    CClink: Information: Invoking:
    "/tools/forte_c++/SUNWspro/bin/../WS6U2/bin/CC
    -ptl -verbose=template -fast -O3 -I..
    -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
    -I/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers
    -DACE_HAS_EXCEPTIONS
    -D__ACE_INLINE__ -mt -xildoff
    -L/tools/pkg/ace/ace5.3.1-sunc++/ACE_wrappers/ace
    -L./
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_N/ND6YV9mCPjF6W_mdb9HD.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_W/Wo599T9ON0ragDRfBzx1.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_0/0K1qNfk0TfJC_d7Uf0Iy.o
    ### SUCCESS: The following object file contains the 'singleton_'
    ### definition. Look for blahblah.zr7WQNsTBFiWx9j3KXv3.o, above.
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_z/zr7WQNsTBFiWx9j3KXv3.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_L/LLYlbLynG-qBErnxnavz.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_2/2nXCDDGsUTu5P0ypRsj6.o
    .obj/RMCast_Fragment_Test.o -lACE_RMCast -lACE -lsocket -ldl -lnsl
    -lgen -lposix4 -o RMCast_Fragment_Test ".
    CC -verbose=template -fast -O3 -I..
    -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
    -I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__
    -c -o .obj/RMCast_Reassembly_Test.o RMCast_Reassembly_Test.cpp
    CC -verbose=template -fast -O3 -I..
    -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
    -I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -mt -xildoff
    -L$ACE_ROOT/ace -L./
    -o RMCast_Reassembly_Test .obj/RMCast_Reassembly_Test.o
    -lACE_RMCast -lACE -lsocket -ldl -lnsl -lgen -lposix4
    CClink: Information:
    Invoking: "/tools/forte_c++/SUNWspro/bin/../WS6U2/bin/CC -ptl
    -verbose=template -fast -O3 -I..
    -DACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
    -I$ACE_ROOT -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -mt -xildoff
    -L$ACE_ROOT/ace -L./
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_N/ND6YV9mCPjF6W_mdb9HD.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_W/Wo599T9ON0ragDRfBzx1.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_0/0K1qNfk0TfJC_d7Uf0Iy.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_L/LLYlbLynG-qBErnxnavz.o
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_2/2nXCDDGsUTu5P0ypRsj6.o
    ### FAILURE: No blahblah/CC_obj_z/zr7WQNsTBFiWx9j3KXv3.o among the
    ### above object files pulled from the template repository.
    .obj/RMCast_Reassembly_Test.o -lACE_RMCast -lACE -lsocket -ldl -lnsl
    -lgen -lposix4 -o RMCast_Reassembly_Test ".
    Undefined first referenced
    symbol in file
    ACE_Singleton<ACE_Test_Output,ACE_Null_Mutex>::singleton_
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_L/LLYlbLynG-
    qBErnxnavz.o
    [Hint: static member
    ACE_Singleton<ACE_Test_Output,ACE_Null_Mutex>::singleton_ must be
    defined in the program]
    ld: fatal: Symbol referencing errors. No output written to
    RMCast_Reassembly_Test
    gmake: *** [RMCast_Reassembly_Test] Error 1
    FYI - A manual relink of RMCast_Reassembly_Test while explicitly
    specifying
    $ACE_ROOT/tests/RMCast/.obj/SunWS_cache/CC_obj_z/zr7WQNsTBFiWx9j3KXv3.
    o successfully created the executable.
    Additional Info: If I swap RMCast_Fragment_Test with RMCast_Reassembly_Test in the build order, i.e.:
    BIN = RMCast_Fragment_Test \
    RMCast_Reassembly_Test \
    becomes
    BIN = RMCast_Reassembly_Test \
    RMCast_Fragment_Test \
    then RMCast_Reassembly_Test links correctly, but RMCast_Fragment_Test
    doesn't.
    Generalization: In all cases, the first binary links successfully
    while subsequent binaries fail to link successfully.
    Regards,
    ... Dave

    Thank you for your reply, but it raises some questions:
    (1) There are people doing regular builds of ACE [see http://tao.doc.wustl.edu/scoreboard/ace.html] using Solaris-8/Forte, but my particular issue is not one that they see. They use the same Makefiles, so why do they not experience the same problem?
    (2) You acknowledge that my observations are consistent with expected behaviour, but who expects that behaviour? Does Sun not accept that this behaviour amounts to a bug?
    (3) Your suggested workarounds are appreciated, but there may be additional options. The more I know about the template related mechanisms employed by the compiler and linker, the better I am able to identify alternative workarounds. For example, after linking a binary, could I touch(1) one or more files in the template repository to positively effect the outcome for building the next binary?
    Regards,
    ... Dave

  • Problem in package and accessing classes in the same directory

    i have a class JApplet1 which calls other classes from the same directory.ALL the other classes have a main within them whereas JApplet1 has an init method within it...the problem is this JApplet1 class is not able to call the other classes. there r no compile time errors but at runtime the classes are not being called...what should i do....suggestions plz..

    What exception are you getting?

  • Can't figure out how to change username, shortname and home directory?

    Hello,
    Trying to change the username, shortname and home directory on a new Macbook.
    I tried the following article to do this:
    http://www.macworld.com/article/132693/2008/03/changeshortusername.html
    This is my problem after trying the above article:
    I tried this but got stuck when it came to entering my password into terminal. After entering in the sudo command I hit return and saw the password prompt but when I tried to type my password in nothing happened at all as cursor never moved. I hit return again terminal tells me that there is no folder named "new user name" I restarted my Mac and tried it all over again and got the same message. When I go into the original account I see the shortname and home directory are changed but the username is the original one I started with.
    How do I make the password cursor move. Have I missed something?
    My Macbook if very new and I don't care what I lose on here. Thinking of doing a complete reinstall and updating all over again. Is there a way to fix this?
    Help anyone?

    After entering in the sudo command I hit return and saw the password prompt but when I tried to type my password in nothing happened at all as cursor never moved.
    This is intentional.
    I hit return again terminal tells me that there is no folder named "new user name" I restarted my Mac and tried it all over again and got the same message.
    Enter the actual old and new names into the Terminal instead of 'new user name'.
    (35525)

  • Class can't find anothe class in same directory.

    Hi
    I'm using javac and appletviewer and I keep getting this strange reaction.
    I've got a couple of classes, one extends the other. ie:
    class a
    class b extends a
    Now when I compile b it says it cannot find class a. Both of these java files are in the same directory. Class a compiles fine on its own but I can't compil b.
    Also, when compiling a with the statement:
    package c
    as the first statement and then trying to run the compiled class in the appletviewer, I get the following error:
    java.lang.NoClassDefFoundError: a (wrong name: c/a)
    The Applet window comes up but with applet not initialised.
    Can anyone help with this? I purposely didn't put up the code because I figured it would be unnecessary.
    Thanks
    allan

    Yep, that solved the compiling error. Thanks.
    Any ideas about the applet viewer problem? Or where I can look for an answer?
    allan

  • Creating a Standby Database with the Same Directory Structure

    Hello gurus,
    I am self-learning the feature Oracle Data Guard, so I am testing it on Oracle 10g R2.
    At Oracle documentation there is a section F.4.: Creating a Standby Database with the Same Directory Structure*, that explains how to create a standby database with RMAN but there is something that I don´t understand:
    In the standby server, I created a database with the SID equal to production database* with the objetive to have the same directory structure, but when I try to startup nomount the standby database with pfile appear this expected error:
    ORA-16187: LOG_ARCHIVE_CONFIG contains duplicate, conflicting or invalid attributes
    So my question is: Is possible have the Same Directory Structure on both: Production and StandBy server?
    Thanks in advanced.

    Uwe and mseberg: thanks for your quick answers
    I have a doubt: How can you have the same directory structure if you have differents SIDs?, for example if you follow the OFA suggestions you would must have:
    On Production server: */u01/app/oracle/oradata/PRIMARY/system.dbf*
    On StandBy server: */u01/app/oracle/oradata/STANDBY/system.dbf*
    Or you created the directory structure manually on StandBy server? For example replacing the string STANDBY* to PRIMARY* before create the database using dbca.
    Do you understand my doubt? Excuse me for my english.
    Thanks.

  • How to Save XML file in the same directory as the swf file automatically?

    Hi all,
    I'm really new here with flash and actionscript 3, so i might not make any sense, probably. Any input is greatly appreciated.
    So here's my problem, i'm trying to make a Top Score history for a flash game, which i load from an XML file. The problem comes to when i want to update the XML file. how do i do that automatically without prompting the user (ofcourse). I want it to be saved automatically to the same directory as the flash file.
    here's my code right now, but it prompts the user where it wants to be saved, which i don't want to happen:
    var xml:XML = <XML>
                        <topScoreList>
                        </topScoreList>
                  </XML>;
    for(var i:Number=0; i<10; i++)
         var Record:XML = <Record>
                             <score></score>
                             <playerName></playerName>
                        </Record>;
         Record.score.appendChild(topScores[i].toString()); //topScores[] -> class variable containing scores
         Record.playerName.appendChild(topNames[i].toString()); //topNames[] -> class variable containing names
         xml.topScoreList.appendChild(Record);
    var ba:ByteArray = new ByteArray();
    ba.writeUTFBytes(xml);
    var fr:FileReference = new FileReference();
    fr.save(ba, "topScoreList.xml");

    yeah that makes sense, actually - after reading a dozen more forums. It's really weird tho that flash doesn't have a Buffer writer, unlike other programming frameworks.
    But yeah, thanks. i'll start reading on flash.net.SharedObject, correct ? Thanks.
    Anyways, if anyone out there has a different input, will be greatly appreciated!!

  • Accessing a file not in the same directory

    I would like to get the first line of a txt file and perform certain analysis on it, I can do this when the file is located in the same directory but i'm experiencing problems when it comes to trying to get a file outside of my current folder .
    What do I need to do when I recieve the string from the user containing the directory and name of the file (e.g. C:\Test\file.txt).
    Any help would be appreciated

    refer following code.
    String path = "C:\\Test\\file.txt";
                   BufferedReader reader = new BufferedReader(new FileReader(new File(path)));
                   System.out.println(reader.readLine());     

  • How to go back to the same directory after opening one bookmark instead of having to browse the directory tree again to open another bookmark from the same dir

    I regularly need to check several bookmarks that are stored in the same directory, which usually is a couple of clicks from the main bookmarks menu.
    When I select a bookmark in the tree that I created to organize my bookmarks and it does not give met the web-page/information I was looking for, I want to try another bookmarked web-page in the same directory.
    So I have to click my way through the whole tree again.
    I would highly appreciate if it could be made possible that hovering over the bookmarks menu automatically will unfold the whole tree to the directory where I have been last. That would be a real time saver.

    Try using the Bookmarks Sidebar. '''{Ctrl + B}''' to open and close it. It will stay open until you close it, and when you do close it, the scroll position will remain until you close Firefox.

  • Connect to multiple drives in the same directory?

    Please pardon me for not using correct terminology. I cannot mount (map) two drives in the same directory. I use "Go >Connect to Server >smb://fs.domain.edu/~directory/folder1" and the folder1 icon pops up on my desktop. Then if I use the same structure with /~directory/folder2, the Finder window opens to the same folder1 I originally mounted. I have to disconnect from the first before I can successfully mount the second. Since I sometimes need to work on documents in both simultaneously, it is VERY inconvenient. Is there a solution, and is it on my machine or do I need to bug our techies (again)??

    No. In the Go >Connect to Server dialog they show as:
    smb://fs.domain.edu/~directory/folder1
    smb://fs.domain.edu/~directory/folder2
    I have access also to another directory:
    smb://fs.domain.edu/~directory2/folder1
    smb://fs.domain.edu/~directory2/folder2
    And can simultaneously mount a drive in that directory with a drive in the other directory, but cannot simultaneously mount two drives in the same directory.

  • Does a wrapper html file need to be in the same directory? Need advice

    I'm doing some RnD experiments for an upcoming project and I would like to use Edge.
    What I'm trying to do is load 2 different compsites in a wrapper.html file that is level above the compsites. For instance my setup is
    project/wrapper.html
    project/product1/product1.html
    project/product2/product2.html
    In my wrapper file I have this, but this doesn't work
    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
        <title>Untitled</title>
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="product1/product1_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-68005601 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </head>
    <body style="margin:0;padding:0;">
        <div id="Stage" class="EDGE-68005601">
        </div>
    </body>
    </html>
    But when I move the wrapper.html file into the same directory as product1 and modify .js path and it loads fine? So my question is how do people normally load multiple compsites that resided in a different directory? What is the best method for accomplishing this? If anyone can point me in the right direction please. Thanks in advance.

    You will need to update the new loction for even the product1_edge.js file and the product1_edgeActions.js file in the product1_edgePreload.js file.
    Open up the product1.edgePreload.js file.
    Search for 'aloader'.
    Under this there should be a ' load: "product1_edge.js" '  change it to  ' load: "product1/product1_edge.js" '
    and do the same for product1_edgeActions.js file too.
    Bascially when you update the location of the edge preload file you will have to update the location of the animate assets like the edge file,edge actions,images etc.All these file locations work relative to the html file loading them.

  • Does the SWF need to be in same directory as the HTML?

    I'm relatively new at Flash, so apologies if my question has
    an obvious answer... I've searched the newsgroups and other forums
    and haven't found anything similar. Here's my problem:
    - when my html doc is in the same directory as the swf file,
    the movie appears and plays fine in my browser
    - when my html doc is in a different directory as the swf
    file (but calls the swf using the correct path), the movie doesn't
    appear.
    The exact html file that works when it's in the same
    directory as the swf doesn't work when it's moved out of the
    directory(and the path to the swf modified correctly)... This
    problem doesn't occur with a different swf file (inherited from
    another designer).
    I use Flash MX2004 for Mac.
    I've tried publishing to Player 6, 7, actionscript 1.0,
    actionscript 2.0 with no difference in results.
    Is this strange situation a Flash-on-Mac thing, or is there
    some setting or parameter that I can set to resolve this?
    Leif

    1) the swf is not neccesary to be at same directory with html
    2) when you load a swf from different directory, and you load
    other swf into the main swf, all path are relative to the html, but
    not swf.
    3) it is nothing about what version of flash or what platform
    you are using.

Maybe you are looking for