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

Similar Messages

  • 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.

  • Naming output files in Windows Batch Scripts

    <p>Looking for Windows batch script syntax to autonumber,automatically name, and/or randomly name output files to avoidoverwriting output files.</p>

    I use this type of functionalithy frequently to save output logs.<BR>Here is a snippet of code that should work. It assumes that you already have the Esscmd script that performs the DBStats call and outputs the log to D:\logs\dbstats.log.<BR><BR>Let me know if you have any questions.<BR><BR>@ECHO OFF<BR>:: ==========================================================<BR>::Filename:     GetDBSTATS.bat<BR>:<img src="i/expressions/face-icon-small-happy.gif" border="0">escription:     Runs DBSTATS and rename outputfile with current date<BR>:: ==========================================================<BR>::<BR>:: Run Esscmd to get dbstats output log d:\logs\dbstats.log<BR>ESSCMD D:\script\getdbstats.ess<BR>::<BR>:: Get Current Date and Time<BR> FOR /F "TOKENS=2" %%i IN ('DATE/T') DO SET FullDate=%%i<BR> SET Month=%fulldate:~0,2%<BR> SET Day=%fulldate:~3,2%<BR> SET Year=%fulldate:~6,4%<BR><BR> FOR /F "TOKENS=1" %%i IN ('TIME/T') DO SET FullTime=%%i<BR> FOR /F "DELIMS=: TOKENS=1" %%i in ('ECHO %fulltime%') DO SET Hour=%%i<BR> FOR /F "DELIMS=: TOKENS=2" %%j in ('ECHO %fulltime%') DO SET Minute=%%j<BR><BR>::<BR>::<BR>RENAME d:\logs\dbstats.log dbstats_%month%_%day%_%year%.log<BR>EXIT<BR>

  • Copying of Batch Number and Characteristics not copying in GI

    Dear SAP Gurus,
    I have created a Stock transport order (STO). Against that STO I have created the delivery. In the delivery I enter the Batch Number/Characteristics(MM). When I do the Goods Issue against that delivery the Batch number is not being copied. Against that Goods |ssue, when I do the Goods Receipt I have to enter the batch number/characteristics manually.
    We have a two step Storage Location to Storage Location transfer.  When we do the Goods Issue the stock goes to Goods in Transit and then the GR is done against that GI.
    Please let me know how to copy the batch number/characteristics automatically. Please also mention the name of the user exit if this can be handled through a user exit.
    Thanks and Regards
    Shehryar Zuberi

    Dear All,
    Can anyone help please?
    Thanks
    Shehryar Zuberi

  • Copying of Batch Number and Characteristics in GI/GR

    Dear SAP Gurus,
    I have created a Stock transport order (STO). Against that STO I have created the delivery. In the delivery I enter the Batch Number/Characteristics(MM). When I do the Goods Issue against that delivery the Batch number is not being copied. Against that Goods |ssue, when I do the Goods Receipt I have to enter the batch number/characteristics manually.
    We have a two step Storage Location to Storage Location transfer.  When we do the Goods Issue the stock goes to Goods in Transit and then the GR is done against that GI.
    Please let me know how to copy the batch number/characteristics automatically. Please also mention the name of the user exit if this can be handled through a user exit.
    Thanks and Regards
    Shehryar Zuberi

    Dear All.
    Please help me solve this problem.
    Thanks
    Shehryar Zuberi

  • Open File dialog user can delete and rename files.

    Does any one know if there is a way to prevent a user from deleting and renaming files by right clicking on them in an Open File dialog box?

    Well, the problem is that this isn't a LV dialog box. It's the standard Windows file dialog box and this is the way they work in Windows.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • 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

  • Importing, copyping raw files as DNG files - copy to location choice, and more ???

    First:
    When I copy raw files as DNG files, the right hand pane shows where the copies will be placed.  (I use Windows 7) I do not have much of a choice, and cannot set a default.  The default choice is "My Pictures" on the C: drive.  I have an Solid State Drive, SSD, and do NOT store my photos on that small, 256Gb drive.  I store my images on an internal hard drive. 
    All i want to do is set the default "Copy To" location to where I store my images.  I would like to copy them to the original folder, in a separate folder (for example, LR DNG).  Instead, I have to open the SSD, find the files, and copy them to my preferred location.  This is very irritating.
    Second:
    Worst, it appears that the Copy function puts the copied images into multiple folders.  I had 11 images from raw files that were put into three separate folders.  That seems quite silly to me.  It causes me to do more work opening the folders and copying them to the root folder.  That is very irritating.   What is going on here?
    can these two issues be resolved? Thanks, in advance.

    My apologies.  I thought it would open the selected folder and reveal the images to be converted.  That would be the most obvious thing to do, but it does not behave that way.  I made a couple folders with test images, CR2 and RW2, and the converter converted them. 
    Again, the navigation was funky, inconvenient, but it works.  i complain because we pay a lot of money to use Adobe products, they have huge resources, and  they seem to release products that have obvious flaws, especially navigation.  Maybe they just hate Microsoft.  Sorry for the rant.
    Thanks for getting me to use DNG converter. 

  • Batch renumber and rename by time of capture

    I shoot weddings with two different cameras which have been synchronized for time (hms). Does Lightroom have the capability of sorting the files by the time of capture? Or can you advise me of any other way to get them in the correct order without spending hours sorting by hand?

    LR can on import rename the images with the date and capture time.
    If several pictures are taken during the same second, they will get numbered like -1, -2, -3 and so on.
    I rename my images like this during import: 2007-08-03_16-26-32.DNG
    /Andreas

  • How to batch processing and renaming of jpg's

    Hello,
    I am sort of new with PS CS5 Extended and I am trying to automate a bunch of JPG files by saving them as High Quality into another folder then add the following suffix _hr.jpg. Can this be possible ?
    Scenario:
    Source Folder: Original
    Original File Name: DSC_xxxx.jpg
    Target Folder: hr
    Save As: DSC_xxxx copy_hr.jpg
    Quality: 12
    Thanks for your help,
    G

    Yes, use Bridge or Camera Raw.
    Benjamin

  • How to extract row_id from PL/SQL procedure and assign that to batch script

    Hello Team,
    I am stuck with a requirement, wherein I am running a batch script and within the batch script I am calling a procedure which inserts a record in a table (Including a column named l_id).
    I need this generated l_id to be passed on as a variable to batch script after PL/SQL procedure completion. So that I can refer this same l_id to update the same record in the table again in the same batch script in the later part.
    Looking for some suggestions!!!!
    Thanks
    -Vj.

    789153 wrote:
    I am stuck with a requirement, wherein I am running a batch script and within the batch script I am calling a procedure which inserts a record in a table (Including a column named l_id). Operating system? Scripting language or command shell used?
    I need this generated l_id to be passed on as a variable to batch script after PL/SQL procedure completion. So that I can refer this same l_id to update the same record in the table again in the same batch script in the later part.
    Looking for some suggestions!!!!Don't do this using batch scripts. Batch scripts are very much inferior compared to stored PL/SQL code when it comes to managing databases processes and performing data crunching.
    Why can't this be written entirely in PL/SQL? And execution managed from either DBMS_JOB or DBMS_SCHEDULER ? And before answering that, consider the following:
    - what is the superior language, PL/SQL or shell script?
    - what provides tighter integration with the database, PL/SQL or shell script?
    - what provides proper security and access control, PL/SQL or shell script?
    As you can call SQL*Plus from a shell script to run PL/SQL, you can call a shell script from PL/SQL instead to run external commands and processes.
    Use the right tool for the job. And shell scripting is an excellent tool - but only when correctly used. Are you using it correctly? I strongly doubt that...

  • Simple Bundle file copy slow and inconsistent

    We are running ZCM 11.2.3a and are experiencing slowness with some bundles.
    We have a simple bundle to copy a small file to the workstation.
    Sometimes the file copy is abnormally long and other times it's instant for the same bundle.
    Any ideas why this would be happening.
    Thanks

    Try enabling Debug Logging and ZMD-Message logging to see if that helps.
    Also -
    Try setting up a test Location for a Device and only point that location
    to Server1 for everything. Then Server 2.....
    Look to see if one server is giving u issues.......
    On 3/11/2014 7:46 AM, markvh wrote:
    >
    > The file is uploaded to the content-repo when the bundle it created.
    > It has synched across all 4 servers and is available.
    > I then assign the bundle to my machine and open from NAL.
    > Sometimes it takes absolute ages and other times quick..
    >
    > Thanks
    > Mark
    >
    >
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Technical Support Engineer
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.

  • Running and stopping a batch script from Java

    I have a requirement in whcih I need to run a batch script which in turn calls another java progam. Now I am using following code which successfully calls batch script and consequently the batch script calls the another java program and batch script exits.
    public static void main(String[] args)
         try {
              Runtime.getRuntime().exec("cmd /c start  c:\\temp\\test.bat" );
         } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         }Now I am developing this a a client-server application on socket programming. Now after some time I need to stop that java program started by batch script. How can I do it? As per my understanding the call "Runtime.getRuntime().exec("cmd /c start c:\\temp\\test.bat" );" kick starts two processes. One the cmd command and another java command ran by test.bat. Now the how to relate the cmd window to the java cmd started by test.bat and how can i send a ctrl+C command to this cmd window so as to close the underlying running java program.
    Please advise.
    Thanks

    Hi Steve,
    Well, I'm having a quite different opinion on this: I would consider such an appraoch not nice but rather dirty...
    If you want users to execute (MaxL) commands against essbase but also would like to avoid installing the client software on each client box I would recommand using web services.
    User opens a browser, press a button, button (on the server side) calls a cmd (or sh) that calls the MaxL shell (on the server) that executes your maxl scripts.
    We have implemented this in two ways:
    1. over IIS (the older version, some years ago - but still running)
    2. over Apex (ever heard about it?) You need a Oracle DB where Apex is installed an running (latest Version is 4.1.1 and you should not use an older) and you need to install the essbase client software on the machine where th Oracle DB resides - However you only need to install it one time...
    If you only want to use the Oracle DB as a relais station (for you Apex Application and Web calls) you can simply install an XE on your essbase server and you have the prerequisites to get it work.
    Maybe it helps somehow.
    Regards
    Andre

  • OS Command batch script issue (FTP)

    All,
    I am running into a problem (i think it's simple) which I just can't seem to figure out. I have a FTP command which is in a batch script and I can run it manually (Its run in an old enviroment with Informatica) and the ftp script works just fine. When I use the OS Command to launch the bat file, it accesses the bat file but in the ftp log all I see it doing is copying the local directory into the first line of the log and then just copying the rest of the ftp script. It does nothing else!!
    Does anyone have any ideas? I have copied the script and forced it into one bat file, tried running it from a local directory, running it from the server, combining everything into a single source for lcd and script, I am running out of ideas!!
    - Another point is that I have to use this process as I am moving files from a server to a mainframe environment and need the ascii translate function in FTP.
    Thanks,
    Abhi

    Update:
    After some searching (and soul searching;) ) I was able to find a way to call the FTP file through an shell batch. So for instance I have a shell script that calls the FTP script. This seems to work but now the log does not create correctly (the ftp script is creating the log) it seems to copy the script from the ftp file and paste it in the log file.

  • How to call a batch script from DI?

    Hi All,
    I'm new to DI/DS and would like to know is there a way to call a batch sciprt (.bat file) in DI?
    What I try to do is,
    1.call a batch script to move source files from a file server to the source folder before kicking off the data flow
    2. once the data flow is completed, call a batch script to move the processed source files to the achive folder.
    In other ETL tool like informatica it can be done via the command task, is there something similar in DI?
    Any help would be appreciated.
    Regards
    BL

    Thanks Suneer.
    Just want to clarify, when I create the script task in the work flow, should I put the path of my batch file or the batch script itself in?
    e.g., my batch script is movefile.bat under folder C:\Script,
    and the command is:  move /Y "C:\Input\*.*". "C:\Archive\".
    in the script task, should I put
    exec('cmd', 'C:\Script\movefile.bat')
    or
    exec('cmd', 'move /Y "C:\Input\*.*". "C:\Archive\".')
    Thanks again for your help
    Regards,
    BL

Maybe you are looking for

  • Apple-provided Java SE 6 web plug-in and Web Start functionality - Chrome

    I have recently upgraded my work MBA to OSX 10.9.1 and need to use the Chrome browser to access several work sites.  These work sites also need Java to run.  I have followed the below procedures: http://support.apple.com/kb/DL1572 and http://support.

  • Reg. CIN related excise capture for a SRM PO and goods receipt in R/3.

    Hello Gurus, We are on SRM 4.0 and have extended classic scenario. For Country India Roll out, we want to capture excise manually in R/3 once an SRM Goods confirmation from an SRM PO is posted to R/3 system as a goods receipt. We also tried manually

  • Custom Configuration - CRM Email Center

    Details what it's occurring: 1. In Email Center Custom Configuration, I created a new server group: EMC Desenvolvimento 2. I created the Database Server: OEDES 3. The DBA confirmed that the Global Name of the Data base is "OESDES". 4. I made the Cust

  • ITS Dumps while Approving Shopping cart as Manager

    Hi, I logged into SRM system as a Manager to Approve Shopping cart. Click Start Enterprise Buyer Inbox link and then Click Approve icon for a shopping cart. The following errors displayed Error when processing your request What has happened? The URL

  • Hey plz let me know y im getting error while creating DropDownIndx

    Hi Folks, While Creating Dropdown Indx im getting error while doing Databinding with Text. error as ' Property "TEXTS" is not type-compatible with context element "TEXT" .' i mean i declared in Context a sinle Node which is having TEXT attribute type