COPY PASTE specific path and rename

Hello,
I am looking for a scipt to copy a file on Windows 7. I first look for ms-dos command but I need to have more complexe action run.
In fact, my source path will be always the same but I would have liked to let the user to browse his computer fron the destination as well as renaming the file.
My goal would be to have a scrtip/bat that would pop up the above description and copy the source to a choosen destination. It pretty much looks like a save as :-P
Do you know if it is possible to do thath with a script?
Looking forward te hearing from you.
Thanks,
Graig

Hi,
to copy a file from A-B use
Copy-Item -path "ENTER PATH" -Destination "Enter DESTINATION"
If you want the user to put a different path in each time use....
$destination = read-host "Enter A Destination Path"
Copy-Item -path "ENTER PATH" -Destination $destination
Give it a go

Similar Messages

  • Copy / Paste / Delete Pages and group pages

    MUSE would be great if  we could copy /paste /delete pages and / or group pages
    Regards

    Have you done much JavaScript programming in Acrobat? Are you asking for the specific code or for guidance as to what methods you need to use? All of what you listed is possible with JavaScript.
    George

  • I have an existing Ibook that I created.  I wanted to copy the whole book and rename it.  Then modify several pages.  Is that possible?

    I have an existing Ibook that I created.  I wanted to copy the whole book and rename it.  Then modify several pages.  Is that possible?

    Sure. Right click on the book in the left hand pane and choose 'Duplicate'. Then work on the duplicate.

  • Copy&paste between textedit and javachat

    I'm running a MacBook Pro 2.4GHz intel OSX 10.5.6. I moderate a java chat room and keep broadcasts and IP#'s in text edit and so copy and paste between the two. But lately I'm running into a loss of this ability. I can copy and paste within textedit or within the java chat, but not between them. When it first began happening a reboot was enough to bring that function back, but now I'm having to run onyx to repair permissions etc. to get it right again. How do i fix this? When the room's busy, i really need that function. I don't know if this is related, but got this message after the last permission repair...
    Warning: SUID file "usr/bin/setregion" has been modified and will not be repaired
    Warning: SUID file "System/Library/PrivateFrameworks/Install.framework/Versions/A/Resources/runner " has been modified and will not be repaired
    Warning: SUID file "System/Library/Printers/IOMs/LPRIOM.plugin/Contents/MacOS/LPRIOMHelper" has been modified and will not be repaired

    You can safely ignore the SUID file warnings:
    http://support.apple.com/kb/TS1448?viewlocale=en_US
    Unfortunately, I don't know how to resolve the copy & paste issue.
    Good luck!

  • Disable Copy/Paste / Ctrl-Y and CTRL-V

    Hi,
    is there any way to disable the Copy/Paste function in the SAPGUI? Especially disabling the key commands CTRL-Y and CTRL-C.
    The customer would like to disable any kind of copy function
    Thanks in advance
    hs

    I have seen this before for ALV grids, but am not sure whether it was a missing feature or infact an intended and possibly optional one.
    I suspect the former case to be true, so you will need to use SAPGui engineering to disable it and ensure that the users cannot connect from a machine they have control over to the server or an older SAPGui version. These sort of preferences have typically also been HKEY_CURRENT_USER settings so you might have trouble retro-fitting it as well.
    Which SAPGui version are you using? There is a new "SAPGui Security Center" available in 7.20 which might offer this control (amongst several others).
    Cheers,
    Julius
    @ Nishant: Personally I have used the camera on my iPhone but some installations ban cameras, so I bought a "Teach yourself photographic memory in 21 days" course and have not looked back since. I can also count cards if they let me see them...

  • Cannot Copy/Paste into Find and Replace

    Help! I used to be able to do this, but now I cannot seem to
    copy/paste source code into the Find and Replace dialog box. I am
    stumped as to why this is a problem. I am running Dreamweaver MX
    2004 (educational version). I would appreciate any help!!!

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=dd550772
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sabina" <[email protected]> wrote in
    message
    news:eqimpu$f9j$[email protected]..
    > Help! I used to be able to do this, but now I cannot
    seem to copy/paste
    > source
    > code into the Find and Replace dialog box. I am stumped
    as to why this is
    > a
    > problem. I am running Dreamweaver MX 2004 (educational
    version). I would
    > appreciate any help!!!
    >

  • Cannot copy/paste between X11 and Aqua after 10.5.7 update

    I'm stumped. After updating to 10.5.7 I am unable to cut/paste between xterm and Text Editor or any other Aqua-based app (email, browser, etc...). I can cut/paste between Aqua apps. And I can cut/paste between X11 apps, but X11 <-> Aqua just does not work. Commands pbpaste and pbcopy work great and are a temp fix, but I cannot work this way much longer. Going back to Linux is looking more and more attractive.
    Thanks.

    Put the image on a server and use the html code
    Create another user account and see if X11 behaves normally in the new account. If it does, you know the problem must then reside in your own configuration settings.

  • In Windows Explorer, I can copy and paste a path and send it to another user as a link to a file location. Is there a way to do that with Finder?

    If not with Finder, is there some other way to do it simply with Mountain Lion OS?

    Thanks for your suggestion Eric. I ended up finding a very simple way to copy a path. When you have navigated to the location for the path in Finder, simply right click on the folder and choose "get info". The path will be displayed in the info window and it can be selected and copied. Then it can be pasted into any text doc or field.

  • Xterm copy / paste with mouse, and kbd shortcuts

    Any idea what options I need enabled/disabled in Xdefaults to let me copy and paste to/from an xterm using the mouse? Also, the same question for using keyboard shortcuts (like Ctrl-a to move to start of line)?

    xterm*faceName:         Bitstream Vera Sans mono
    xterm*faceSize:         10
    xterm*eightBitInput:    false
    xterm*boldMode:         off
    xterm.scrollBar:        false
    xterm*saveLines:        1000
    xterm*Foreground:       white
    xterm*Background:       #303430
    xterm*Border:           #303430
    xterm*TitleBar:         on
    xterm*TextUnderIcon:    on
    xterm*AllowIconInput:   on
    xterm*AutoRaise:        on
    xterm*termtype:         vt100
    xterm*ttyModes:         intr ^c erase ^h susp ^@ dsusp ^@ kill ^u eof ^d
    xterm*jumpScroll:       true
    xterm*multiScroll:      true
    xTerm*cutNewline:       False
    xterm*scrollTtyOutput:  false
    xterm*scrollkey:        true
    ! Xterm Colors
    !black
    xterm*color0:           #303430
    xterm*color8:           #CDB5CD
    !red
    !aterm*color1:          #dca3a3
    xterm*color1:           #bf7979
    xterm*color9:           #f4a45f
    !green
    xterm*color2:           #97b26b
    !aterm*color2:          #afc5af
    xterm*color10:          #c5f779
    !yellow
    xterm*color3:           #cdcdc1
    xterm*color11:          #ffffef
    !blue
    xterm*color4:           #86a2be
    xterm*color12:          #98afd9
    !magenta
    xterm*color5:           #d9b798
    xterm*color13:          #d7d998
    !cyan
    xterm*color6:           #a1b5cd
    xterm*color14:          #a1b5cd
    !white
    xterm*color7:           #ffffff
    xterm*color15:          #dedede
    Xft.dpi:                96
    ! Urxvt Colors
    !black
    urxvt*color0:           #505450
    urxvt*color8:           #505450
    !red
    !aterm*color1:          #dca3a3
    urxvt*color1:           #bf7979
    urxvt*color9:           #f4a45f
    !green
    urxvt*color2:           #97b26b
    !aterm*color2:          #afc5af
    urxvt*color10:          #c5f779
    !yellow
    urxvt*color3:           #cdcda1
    urxvt*color11:          #ffffaf
    !blue
    urxvt*color4:           #86a2be
    urxvt*color12:          #98afd9
    !magenta
    urxvt*color5:           #d9b798
    urxvt*color13:          #d7d998
    !cyan
    urxvt*color6:           #a1b5cd
    urxvt*color14:          #a1b5cd
    !white
    urxvt*color7:           #ffffff
    urxvt*color15:          #dedede
    ! Urxvt Settings
    urxvt*scrollTtyOutput:  false
    urxvt*scrollTtyKeypress:false
    urxvt*loginShell:       true
    urxvt*font:             xft:Bitstream Vera Sans mono:size=10
    urxvt*scrollBar:        false
    urxvt*foreground:       white
    urxvt*background:       #303430
    urxvt*geometry:         80x25
    urxvt*saveLines:        10000
    urxvt*inheritPixmap:    false
    urxvt*fading:           40
    Aterm*transparent: true

  • File copying in Batch script and renaming

    HI,
    I am using the below batch script to copy the files from current folder to the specified location.
    (@echo off
    echo copying files to destination
    copy *.eps* \\10.10.14.13\adman\in\displ )
    I am facing 2 problems in the above script..
    1. I am not able to select a particular file and run the script, for e.g if the folder got more (eps) files it copies all the files to the location.
    2. I want to insert my user login name at the end of the each copied file.
    My file name look like (F0#CGDBANG000947532#.eps
    ) copy to F0#CGDBANG000947532#username.eps
    Thanks for all the help

    Hi,
    About this issue, I recommend you consult Script Center forum for professional help:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or
    learn from your interaction with us. Thank you for your understanding.
    Karen Hu
    TechNet Community Support

  • Copy/Paste between guest and host system

    I'm looking for the way to use the clipboard so that I can copy from host system to guest system.
    Is that possible?
    Thanks,
    Olivier.

    user7631797 wrote:
    Woow Pascal it seems to be a quite complicated task!
    I tried to install dkms with yum install dkms but it failed.
    And
    obotineau@VAIO-Ubuntu-GNOME:~$ /etc/init.d/vboxadd setup
    bash: /etc/init.d/vboxadd: No such file or directory
    So I miss two things, How to follow the Chapter 4 Guest Additions with these problems?
    Thanks,
    Olivier.
    Unfortunately, the VBOx docs can be pretty spotty.
    What is your guest OS?
    What is your host OS?
    From you example above it appears you are working with Ubuntu on one side or the other, but it it is not clear if that is host or guest.  If we can get that clarified perhaps we can offer some more assistance.

  • I have no navigation bar I cannot copy paste browse back and forth where is it

    where is my navigation bar
    == This happened ==
    Every time Firefox opened
    == I downloaded it

    I've hidden my toolbars, and now I can't find how to reactivate it.
    Many thanks
    Luc

  • Slightly distorted aspect-ratio (and missing alpha channel) when copy/paste from Photoshop

    Maybe this is an old topic (but I didn't find anything on google or this forum):
    When I copy images from Photoshop to Flash, the aspect ratio of the bitmap gets distorted. A 728x90 Bitmap becomes 727.6x90 (and so on...). The dpi is set on exactly 72 on both programs. Is there any way to JUST get a 1:1 pixel copy? (except using another program like Irfanview as a "man-in-the-middle")
    Although I selected "32 bit color w/alpha" in the clipboard settings of Flash, the alpha channel seems to get discarded when copying from Photoshop. Shouldn't it at least work with Photoshop? I mean, it's an Adobe product after all and maybe the most commonly used together with Flash.
    Would just be nice if a copy-paste between PS and FL was an easier thing.
    I know there can also be a pixel-aspect somewhere (like used for video productions and wide-screen), but I didn't find settings for that anywhere.
    I still use Flash Professional CS5.0

    I'm on windows7 with CS5.5 and transparency and size are copied over just fine. You answered what would be my first question, 72dpi. How about the image mode. Are you using RGB 8bit?
    I've had lots of issues with the OS not handling transparency very well also, such right-click on an image on a website that you know is a PNG and has transparency, then paste it into photoshop, the transparency isn't saved.
    The route that always works (but is a PITA) is of course to save it as a PNG with transparency and just import it.

  • Saving an image as PNG to a specific location, and appending the document's existing name.

    Hello
      I'm building a very complex action that references several scripts. One of the scripts needs to save the existing canvas as a .png file to a specific directory, and rename the .png with the document's existing name and adding "-SCREEN" to the end. So the name sould be "originalname-SCREEN.png"
      I found a script below that almost kinda works. It can find the directory, but it is cropping the image for some unknown reason. It also does not append the name (I have not looked into how to do that at all yet).
      Is anyone able to figure out how to fix this script, or perhaps lend some insight to how I might go about generating a new script?
      I'm not familiar with JS, but I'm learning. Slowly...
    Thank you.
    #target photoshop
    app.bringToFront();
    $.level = 0;
    // Globals
    Settings = {
      storedPaths: {},
      storedSelections: {},
      scriptName: "Save PR JPG LANDING",
      units: "pixels"
    // Main entry point
    main();
    function main() {
      var formatOptions;
      // Create JPEG save options
      formatOptions = formatJPEG(FormatOptions.OPTIMIZEDBASELINE, "10", "3", MatteType.NONE, true);
      // Save copy of document as
      docSaveAs(formatOptions, "Add After", "-LANDING", "No Change", "Path", "~/Desktop/PR/Landing Page (RGB | 105px W x 108px H | 72ppi)/", "");
    // Functions
    function docSaveAs(formatOptions, nameChange, nameText, newCase, destType, destRef, storeName) {
      var hasPath, f, name, nameArray, n, ext;
      if (!documents.length) { logErr(arguments, "noOpenDocs"); return; }
      if (!formatOptions) { logErr(arguments, "noFormatOptions"); return; }
      if (nameChange=="Replace" && !nameText) { logErr(arguments, "badNameValue"); return; }
      f = fileGetFolder(destType, destRef);
      if (!f) { logErr(arguments, "noDestFolder"); return; }
      try { activeDocument.path; hasPath=true; } catch(e){ hasPath=false; }
      name = activeDocument.name;
      if (hasPath) {
      nameArray = name.split(".");
      n = nameArray.length-1;
      ext = nameArray[n];
      switch (nameChange) {
      case "Add Before": nameArray[0] = nameText + nameArray[0]; break;
      case "Add After": nameArray[n-1] = nameArray[n-1] + nameText; break;
      case "Replace": nameArray = [nameText, ext]; break;
      name = nameArray.join(".");
      else {
      ext = {"[BMPSaveOptions]":".bmp", "[DCS1_SaveOptions]":".eps", "[DCS2_SaveOptions":".eps",
      "[EPSSaveOptions]":".eps", "[GIFSaveOptions]":".gif", "[JPEGSaveOptions]":".jpg",
      "[PhotoshopSaveOptions]":".psd", "[PICTFileSaveOptions]":".pct", "[PICTResourceSaveOptions":".pct",
      "[PixarSaveOptions]":".pxr", "[PNGSaveOptions]":".png", "[RawSaveOptions]":".raw",
      "[TargaSaveOptions]":".tga", "[TiffSaveOptions]":".tif"}[formatOptions.constructor.toString()]||"";
      switch (nameChange) {
      case "Add Before": name = nameText + name; break;
      case "Add After": name = name + nameText; break;
      case "Replace": name = nameText; break;
      if (!name) { name = "Untitled"; }
      name += ext;
      switch (newCase) {
      case "Lowercase": name = name.toLowerCase(); break;
      case "Uppercase": name = name.toUpperCase(); break;
      try {
      f = new File(f.fullName+"/"+name);
      activeDocument.saveAs(f, formatOptions, true);
      Settings.storedPaths.lastCreated = f.fullName;
      if (storeName) { Settings.storedPaths[storeName] = f.fullName; }
      catch(e) { log(arguments.callee, e); }
    function fileAppend(path, data, encoding) {
      var file;
      file = new File(path);
      file.open("a");
      if (typeof(encoding) == "string") {file.encoding = encoding;}
      file.write(data);
      file.close();
    function fileGetFolder(srcType, srcRef) {
      var path, f, msg;
      switch (srcType) {
      case "Last Created": path = Settings.storedPaths.lastCreated; break;
      case "Path": path = srcRef; break;
      case "Named Path": path = Settings.storedPaths[srcRef.toLowerCase()]; break;
      if (!path) {
      msg = "Select a folder:";
      if (Settings.lastFolderPath) { f = new Folder(Settings.lastFolderPath).selectDlg(msg); }
      else { f = Folder.selectDialog(msg); }
      if (f&&f.exists) { Settings.lastFolderPath = f.fsName.split("\\").join("/")+"/"; }
      else { f = new Folder(path); }
      if (!f||!f.exists) { logErr(arguments, "noFileSystemPath"); return; }
      return f;
    function fileWrite(path, data, encoding) {
      var file;
      file = new File(path);
      if (file.exists) {file.remove();}
      file.open("e");
      if (typeof(encoding) == "string") {file.encoding = encoding;}
      file.write(data);
      file.close();
    function formatJPEG(format, quality, scans, matte, embed) {
      var result = new JPEGSaveOptions();
      try {
      result.formatOptions = format;
      result.quality = parseInt(quality);
      result.scans = parseInt(scans);
      result.matte = matte;
      result.embedColorProfile = embed;
      catch(e) { log(arguments.callee, e); }
      return result;
    function log(v, err, msg) {
      // Initialization
      if (!Settings.debug) {
      var pathArray, date, str;
      Settings.debug = {
      delim:String.fromCharCode(13, 10),
      path: Folder.userData+ "/Script Builder Files/" +Settings.scriptName+ " - Log.txt",
      text:""
      date = new Date();
      str = "Begin debug log: " + date.toLocaleString() +Settings.debug.delim;
      str += "------------------------------------------------------------" +Settings.debug.delim;
      fileWrite(Settings.debug.path, str);
      // Error logging
      if (typeof v == "function") {
      v = "Error in " +v.name+ "(): ";
      if (err && msg) { v += msg + " " + err.message; }
      else if (err) { v += err.message; }
      else if (msg) { v += msg; }
      else { v = v.substring(0, v.length-2) + "."; }
      // Normal message logging
      else {
      if (typeof v != "string") {
      if (v == undefined) {v = "undefined";}
      else {v = v.toString();}
      if (Settings.debug.path) { fileAppend(Settings.debug.path, v + Settings.debug.delim); }
    function logErr(src, id) {
      var err = {
      badChannelValue: "Invalid channel number entered.",
      badColorValue: "Invalid color value entered.",
      badDocDimsValue: "Invalid document dimensions entered.",
      badExportValues: "Invalid file path or file name value supplied for export.",
      badNameValue: "Invalid name value supplied.",
      badNumberValue: "Invalid number value supplied.",
      badPathName: "Path name supplied is not unique.",
      badRefEdgeOuput: "Output method cannot be used when decontaminating colors.",
      badSubdivValue: "Subdivisions value must be an integer between 1 and 100.",
      badTestValue: "Invalid comparison value supplied.",
      fileError: "Could not read file.",
      fileExists: "A file of the same name already exists in the chosen location.",
      flatImagesOnly: "This function only works on flattened images.",
      layerDataError: "An error occurred while reading the layer settings.",
      logNotEnabled: "Log must be enabled in order to assign file path.",
      multiLayerOnly: "More than one layer must be selected.",
      noClipImageData: "No image data on clipboard.",
      noDocFile: "Document has never been saved.",
      noActionName: "No action name specified.",
      noActionSetName: "No action set name specified.",
      noBkgdLayer: "There is no background layer.",
      noDestFolder: "Destination folder not defined.",
      noFile: "File does not exist at the specified location.",
      noFileSystemPath: "No file or folder path was chosen.",
      noFilterImg: "Image file does not exist, or none was selected.",
      noFilterMask: "Layer has no filter mask.",
      noFolder: "Folder does not exist at the specified location.",
      noFormatOptions: "The \"formatOptions\" parameter is not defined.",
      noHTMLExporter: "The \"htmlExporter\" object does not exist or is not valid.",
      noLayerArtwork: "Layer has no image data.",
      noLayerComps: "Document has no layer comps.",
      noLayerFX: "Layer has no effects.",
      noLayerMask: "Layer has no layer mask.",
      noLogTextFile: "Log file path should point to a text file.",
      noLogFile: "Log file path does not point to a file.",
      noNameValue: "No new name entered.",
      noOpenDocs: "There are no documents open.",
      noQuicktime: "File format requires QuickTime.",
      noSelectedPath: "There is no path selected.",
      noSelection: "There is no selection.",
      noSelectionMod: "There is no selection to modify.",
      noTextExporter: "The \"textExporter\" object does not exist or is not valid.",
      noVectorMask: "Layer has no vector mask.",
      noWorkPath: "Document has no work path.",
      singleLayerOnly: "Only one layer should be selected.",
      wrongLayerKind: "Selected layer is the wrong kind for the requested action."
      }[id];
      if (err) { log(src.callee, null, err); }

    Go to  http://russellbrown.com/scripts.html
    download http://russellbrown.com/images/tips_downloads/Services_Installer_2.3.1.zip
    extract the "Services_Installer_2.3.1.zip"  do not install the extracted files instead find "Services_Installer_2.3.1.zxp" in the extracted files. This is also a zip file extract the files in it. You may need the reneme it to "Services_Installer_2.3.1.zip" first.  In the extracted files find:
    "Image Processor Pro.jsx" and "Image Processor Pro.xml" copy these to Photoshop's Presets\Scripts folder. The "Image Processor Pro: script written by Ross Huitt, [email protected] X use to contribute here but is feed up with Adobe has left. For Adobe does not fix the bugs that have been reported  in Photoshop scripting support. 
    However he will continue to support the "Image Processor Pro" script for some time.  Once installed you will find it in  Photoshop's menu File>Automate>Image Processor Pro... . This script is very powerful and configurable and is a Photoshop Plug-in that Action support so not only can use use your actions in its processing you can record its used in actions to bypass its dialog. When the action's Image Processor Pro step is played the recorded dialog setting will be used and  the script will bypass displaying its dialog.
    The Script has all the options you need to save PNG files with the original document name with custom text added.  You may be able to do what you want by just recording some simple actions and have the Image Processor Pro script include your actions as part of its processing.

  • Copy paste of components are not working properly

    Hi,I am using ADF 11.1.1.3 and dynamic components.
    I had created a page fragment which has lots of components let say 60 components.
    Now i have to create another page which will also have the same no and type of components. I want to copy paste the components and create a new page.
    But I am not able to do the same.
    When i copy paste the page fragment its not working ...(bindings are not created on new page) and other issues also...
    Just wanted to know do we have to do any thing specific should be done to copy paste fragment code or its not possible.

    Hi,
    actually bindings are not copy and pasted. What you can do is to copy and paste the fragment, edit the DataBindings.cpx file and create an entry for the new fragment .jsff and point it to the PageDef file that already existed for the fragment you copy and pasted the content from.
    Alternatively (and my recommendation to you), create the content you otherwise would copy and paste in a page template and make sure the page template has a binding file (checkbox). Then build your fragments from the page template file and thus all will have data bound components
    Frank

Maybe you are looking for

  • GTK - GLIB installation 2.6 - 2.7

    Hello... I don't know where to write or whome to ask ...maybe this is my last chance. I want to install gtk on solaris (2.7 and 2.6) but on both I got some error by glib-make. I mean - gtk needs glib - glib needs pkgconfig and pkgconfig (and all) nee

  • How to use the FM 'SCMS_TEXT_TO_BINARY'

    Hello SDNers, I need to convert ASCII table content into binary for which I have used the FM 'SCMS_TEXT_TO_BINARY'. data : GT_SDOKCNTASCS type SDOKCNTASCS,          gt_binary type table of BAPICONTEN.     DESCRIBE TABLE let_sdokcntascs LINES lv_lines

  • "send as attachment" shorcut

    I use Thunderbird as a mail client. How can I setup the "send as attachment" item in the right-button menu? I can't simple drag a item to the TB icon to send it via a new mail as an attachment, I have to open TB, create a new mail, drag item onto mai

  • ABAP Work process table is not showing in MMC

    HI , My ABAP ystem is working fine but in MMC ABAP work process table is not showing. After rebooting the server in MMC console SID is not appaeraing i have to add the entries eevry time after rebooting. Please help me any one. Thanks Nekkalapu

  • Edited AVCHD video to export in AVCHD codec

    I transfer AVCHD material from the Panasonic HDC-SD300 camcorder to Final Cut Express to edit the video. After editing in HD I would like to export the finished HD video (including audio) in AVCHD Codec to a SDHC card. The content of the SDHC card co