Increment the version and current date in .ver file

Hi All,
I have the version.ver file and it looks like
[version]
BuildDates=2014.10.01
Script=01
MainVersion=1.00.00.00:01
I want to increment the values and current date if i trigger the build using batch script. The output i need is like this
BuildDates=yy.mm.dd (current date)
Script=02
MainVersion=1.00.00.00:02
Thanks in advance

Thanks for your reply. This is my script
@echo off>newfile&setlocal enabledelayedexpansion
:: set up your date here. It probably won't match my format so you'll need to adapt:
set dt=%date:~10,4%.%date:~7,2%.%date:~4,2%
for /f "skip=2 tokens=2,3 delims==:" %%a in ("filename") do (
set v= %%b
set v= !v: 0=!
set /a v+=1
set v=0!v!
set v=!v:~-2!
>>newfile echo SCRIPT=!v!
>>newfile echo BuildDates=%dt%
>>newfile echo MajorVersion=%%a:!v!
goto :aa
:aa
more +3 "filename" >> newfile
del "filename"
ren newfile "filename"
Before execute the script my file will be look like:
version]
BuildDates=date
Script=09
MainVersion=3.00.00.00:09
after executing i am getting the output value as
BuildDates=date
Script=01
MainVersion=19:01
MainVersion=3.00.00.00:09

Similar Messages

  • How to display the username and current date in OAF  page Footer region

    Hi,
    I need to display the username and Current-Date in footer region.If anybody knows the procedure then please share with me.
    Thanks
    Divya Agarwal

    Hi,
    Read this Thread:--
    You have to capture the UserName and Date in the Process Request Method of page Controller and invoke a method which will subsequently get and set the value in some attribute.
    String userName = pageContext.getUserName();
    How to populate Current Date and Time in OAF page through CO
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I have a 27 inch iMac with maverick os.  my current version of iMovie (10.0.6) will not open older projects i created in iMovie 9.0.9.  I can find the projects and they have a ".rcproject" file extension

    I have a 27 inch iMac with maverick os.  my current version of iMovie (10.0.6) will not open older projects i created in iMovie 9.0.9.  I can find the projects and they have a ".rcproject" file extension

    Thank you GeeD. I'm still stymied.
    I have moved the Event and Project Folders to the "top-layer of the drive" as the instructions state, right alongside the System Folder, Users Folder and Applications Folders.
    When I open iMovie 10.0.8, the Events and Projects Folders are empty:
    When I select File/Update Projects and Events, I get an alert box that says iMovie couldn't find any:
    Not knowing exactly what is meant by the "top layer" in the instructions, I moved the Events and Project folders back inside the "Movies" folder where I found them (but then not where I would call the "top" layer, but rather "iMac/Users/Home/Movies/iMovieProjects". Then I tried to "Update Projects and Events" and received the same alert: "iMovie could not find any projects or events to update."
    Then I tried to update iMovie 9.0 (iMovie '11 version 9.0 (1073)) to version 9.0.9 .
    [As an aside, the nomenclature of iMovie drives me nuts. The latest version is 10.0.8, which us newer than iMovie '11.]
    Back to the update of version 9.0 to 9.0.9.
    Presumably because I have version 10.0.8 installed, I got this alert box:
    So, I cannot update version 9.0
    and I cannot "Update" the Events and Projects created in version 9.0.

  • I have a new computer. I've installed iTunes. I don't want to lose the calendar and contact data nor the apps currently on my iPod Touch. Will that happen when I sync?

    I have a new computer. I've installed iTunes. I don't want to lose the calendar and contact data nor the apps currently on my iPod Touch. Will that happen when I sync?

    I don't think so. When you open iTunes, go to "Store" on the top and click "Authorize this Computer." Type in your email and pass, and click authorize. Then, when you connect you iPod for the first time, it should tell you "this iPod is synced with another computer, blah blah." It should give you the option to either "Erase and Sync," or "Transfer Purchases." Click "Transfer Purchases and your content should go into your new iTunes.
    If this doesn't work and you still have your old computer there's another thing you can do. I know this works on windows, but I'm not sure how to do it on a Mac, maybe someone can offer some help. Assuming you have Windows, go to Start>Music>iTunes Media and you should see Music, Apps, Movies, etc. This is all the stuff in your iTunes. If you have an external hard drive or your iTunes library is small in terms of file size, you can do this in one go. Transfer the content (as much as you can fit at one time) onto the external storage. Then, put that content on your new computer on the desktop or somewhere where you can find it again. Open iTunes, and folder by folder highlight everything in the folder and drag it into the iTunes library. It should say "importing (content)" or something and then it should be in your library. If you look in your Music folder again, there should now be another "iTunes" folder there with all of your content back in it.
    Hope one if these options works for you. Best of luck!

  • Hi I have iPhone 4 with iOS 6 and a week ago I stop ressiv or send SMS. I tried everything but I still can't send.. I erase the version and all the data on the iPhone and now I can send SMS. But when I'm downloading my buck up the problem happened againI'

    Hi I have iPhone 4 with iOS 6 and a week ago I stop ressiv or send SMS. I tried everything but I still can't send.. I erase the version and all the data on the iPhone and now I can send SMS. But when I'm downloading my buck up the problem happened again
    Please help me cuse I don't know what to do and my cellular company don't have an answer
    Thank u

    I have to ad that its not an easy problem I did all the action in the book.
    It's something with my back up

  • Historic and Current data for Master data bearing objects

    Hi All,
    We are trying to implement type 2 dimensions for all the master data bearing characteristics, where we require historic and current data available for reporting. the master data can have a number of attributes and all of them can be time dependent. We are not getting any 'datefrom' or 'dateto' from the source system.
    For example:
    For Example: The table below shows data entering BI at different dates.
    Source Data day of entering BI
    MasterID ATTR1 ATTR2
    123506 Y REWAR day1
    123506 N REWAR day4
    123506 Y ADJUST day4
    123506 N ADJUST dayn
    The field 'day of entry into BI' is only for your understanding; we do not get any date fields from the source. SID is the field we are generating for uniqueness. It is a counter. EFF_DATE would be the current date for all the data. EXP_DATE would be 31.12.9999 until the attributes change. SID and MasterID together would be the key.
    On day 1 the following data enters BI,
    day 1
    SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
    1 123506 Y REWAR 2/10/2009 12/31/9999
    On day 4, 2 data records enter with same PID,
    SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
    2 123506 N REWAR 2/13/2009 12/31/9999
    3 123506 Y ADJUST 2/13/2009 12/31/9999
    the EXP_DATE of the record of day 1 needs to be changed to current date.
    Also there are two records entering, so latest record would have EXP_DATE as 31.12.9999. And the EXP_DATE of the first record on day 4 should change to the current date.
    so the following changes should happen,
    CHANGE
    SID MasterIDATTR1 ATTR2 EFF_DATE EXP_DATE
    1 123506 Y REWAR 2/10/2009 2/13/2009
    CHANGE
    SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
    3 123506 Y ADJUST 2/13/2009 2/22/2009
    On day n, one data record enters with same PID,
    SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
    4 123506 N ADJUST 2/22/2009 12/31/9999
    The change is ,
    CHANGE
    SID MasterID ATTR1 ATTR2 EFF_DATE EXP_DATE
    3 123506 Y ADJUST 2/13/2009 2/22/2009
    The data expected in P-table is as below, on Day n or after Day n, untill any other record enters for this MasterID,
    1 123506 Y REWAR 2/10/2009 2/13/2009
    2 123506 N REWAR 2/13/2009 2/13/2009
    3 123506 Y ADJUST 2/13/2009 2/22/2009
    4 123506 N ADJUST 2/22/2009 12/31/9999
    Has anyone worked on type 2 dimensions earlier? Or any ideas to implement this logic would be appreciated.
    Regards,
    Sudeepti

    Compound the Master ID with eff date and other attribute as superior objects
    so you will get P-table as
    ATTR1   ATTR2   MAT ID  
    1 2/10/2009 2/13/2009 123506 Y REWAR
    2 2/13/2009 2/13/2009 123506 N REWAR
    3 2/13/2009 2/22/2009 123506 Y ADJUST
    4 2/22/2009 12/31/9999  123506 N ADJUST

  • How to create the Export Data and Import Data using flat file interface

    Hi,
    Request to let me know based on the requirement below on how to export and import data using flat file interface.....
    Please provide the steps involved for the same.......
    BW/BI - Recovery Process for SNP data. 
    For each SNP InfoProvider,
    create:
    1) Export Data:
    1.a)  Create an export data source, InfoPackage, comm structure, etc. necessary to create an ASCII fixed length flat file on the XI
    ctnhsappdata\iface\SCPI063\Out folder for each SNP InfoProvider. 
    1.b)  All fields in each InfoProvider should be exported and included in the flat file. 
    1.c)  A process chain should be created for each InfoProvider with a start event. 
    1.d)  If the file exists on the target drive it should be overwritten. 
    1.e)  The exported data file name should include the InfoProvider technical name.
    1.f)  Include APO Planning Version, Date of Planning Run, APO Location, Calendar Year/Month, Material and BW Plant as selection criteria.
    2) Import Data:
    2.a) Create a flat file source system InfoPackage, comm structure, etc. necessary to import ASCII fixed length flat files from the XI
    ctnhsappdata\iface\SCPI063\Out folder for each SNP InfoProvider.
    2.b)  All fields for each InfoProvider should be mapped and imported from the flat file.
    2.c)  A process chain should be created for each InfoProvider with a start event. 
    2.d)  The file should be archived in the
    ctnhsappdata\iface\SCPI063\Archive directory.  Each file name should have the date appended in YYYYMMDD format.  Each file should be deleted from the \Out directory after it is archived. 
    Thanks in advance.
    Tyson

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • Getting the lowest and highest dates from a column

    <Praise>Numbers is absolutely incredible. Kudos to the Apple team. From the first time I've used it, it has enabled this average spreadsheet user to create awe-inspiring layouts from average data. I'm extremely excited to see where Apple brings </Praise>
    What I am trying to do though is this. I have a column with dates in it. I'm trying to get the lowest and highest dates in that column for a report. For instance, "Date range between 7/1/2007 and 9/11/2007".
    Any help would be very much appreciated

    Let me also pose this. I've been asked to create a two date ranges for this from the same data. This report will need to be updated every two months. Is there a way to specify the spreadsheet to select only rows with a date between X and Y for processing?
    Or, more likely, is there a way to access a cell name by reference from another field? Such that I have a "Current From", "Current To", "Historic From", and "Historic To" column. The value of these fields could be references to a row number that has the beginning and ending date, so that it selects all of the rows in between.
    So I would have something like SUM(SourceSheet :: SourceTable :: A{CurrentTable :: A2} : SourceSheet :: SourceTable :: A{CurrentTable :: A3}) where CurrentTable A2 and A3 are "2" and "6" for rows A2:A6. Is this even possible? Hopefully I'm overcomplicating it and there's a magical function out there that I've missed.

  • Pre-populate data and current date only when it routes to that person

    Hi,
    Can  any one please advise how to pre-populate the manager's name when it routes to the manager but not when the user fills the form.
    Example: user fills the form and submit it to the manager, the process has the query to look up for the manager to route it to him for approve/deny. How can I have the manager's name to pre-populate so he/she does not have to type their name and current date to approve/deny the form.
    Thanks in advance,
    Han Dao

    Paul,
    If I have the codes to execute the WS at the initialize event then it does populate the manager info when the user fills the form but when I try to move the code to the pre-submit event which try to execute WS when it route to the manager. I know I did not do it right but have no idea how to make it work.
    Is there a way to execute the WS when it routes to the next person rather than when the user fills the form?
    Thanks,
    Han

  • I have an iphone 4 and trying to upgrade ios 6, downloaded the version and when trying to install get an error that i need internet, i have internet of course... please help...

    I have an iphone 4 and trying to upgrade ios 6, downloaded the version and when trying to install get an error that i need internet, i have internet of course... please help...

    C Mawle wrote:
    Thanks.  I have followed all the instructions as recommended and nothing has worked so it looks like the restore/update may have been interrupted - would loss of internet connection do this?
    Yes it would, possibly even brick it.
    Have successfully connected my ipod nano with iTunes so looks like the device driver is working.
    Can I use my ipod nano USB connector to check?
    It is not much help to you, since the device that you need still not recognized.
    Anyway looks like I may have to swallow the loss of data.  Have set-up a call for tomorrow with Apple support so will wait until after this before doing the factory restore!
    Good luck, but if you expect miracle from that call good luck again.

  • I bought my 'air' in Australia the keyboard has a dollar sign, is there a way to change the setting so that a pound or a euro sign appears? I am from the UK and currently live in Spain!

    I bought my 'air' in Australia the keyboard has a dollar sign, is there a way to change the setting so that a pound or a euro sign appears? I am from the UK and currently live in Spain!

    Hi colin the card,
    Welcome to Apple Support Communities.
    It sounds like you purchased your device in a different country than the one you reside in and want to change the currency symbol typed from the keyboard. The article linked below will provide details about changing your MacBook Airs region and currency format.
    OS X Mavericks: Customize formats to display dates, times, and more
    http://support.apple.com/kb/PH14227
    I hope this helps.
    -Jason

  • Welcome to the Solutions and Architectures Data Center & Virtualization Community

    Welcome to the Solutions and Architectures Data Center & Virtualization Community. We encourage everyone to share their knowledge  and start conversations related to Data Center and Virtualization  Solutions and architectures.All topics are welcome, including  Servers – Unified Computing, Data Center Security, Data Center  Switching, Data Center Management and Automation, Storage Networking,  Application Networking Services and solutions to solve business  problems.
    Remember,  just like in the workplace,  be courteous to your fellow forum  participants. Please refrain from  using disparaging or obscene language  or posting advertisements.
    Cheers,
    Dan Bruhn 

    Hi,
    I have a question...
    I going to install two Nexus 7009 with three N7K-F248XP-25  modules on each one, I am planning to create 3 VDC, but at the initial configuration the system does not show the ethernets ports of these modules, even with the show inventory and show module I can see tah the modules are recognized and its status is OK. There is something that I have to do before start to configure these modules...? enable some feature or license in order to see the ports with show running CLI...?

  • My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to display the data?

    My iPhone 5 has broken and is being replaced with a new iPhone tomorrow. However, My carrier (orange) will b picking up my broken iPhone and I am unsure how to secure the content and icloud data on the broken phone. Is there a way to disable the data held on it and ensure that if it is fixed, nobody can use/see my data and access my account?

    Hi Gazpan,
    Thanks for visiting Apple Support Communities.
    I recommend using the steps in this article to back up your iPhone if possible:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    You may also find this advice helpful for your situation:
    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5661
    If you no longer have your iOS device
    If you're using iCloud and Find My iPhone on the device, you can erase the device remotely and remove it from your account by signing in to icloud.com/find, selecting the device, and clicking Erase. When the device has been erased, click Remove from Account.
    If you're unable to complete either of the above steps, you should change your Apple ID password. Changing your password won't remove any personal information that is cached on the device, but it will make sure that the new owner can't delete your information from iCloud.
    Cheers,
    Jeremy

  • The contacts and calendar data on my iPod touch will not sync with my Mac

    I have a 2nd generation ipod touch, and an iMac running iTunes 8.2.1.
    I have been away from my mac for a few months and have entered a lot of contact and calendar info into my ipod touch.
    Now, when I try to sync the contacts and calendar data on my ipod touch with my mac, the data will not sync to my mac.
    Similarly, for the last couple months, the contact and calendar data on my ipod touch has not been able to sync with my mobileme account.
    I cannot afford to lose the contact and calendar data on my ipod touch.
    Can anyone kindly inform me how to fix this syncing problem without losing such data?

    DGKSA wrote:
    I ended up entering the data onto my Mac, then nuking my iPod touch with a restore.
    So, there is no need to respond to my question.
    You can also mark your post as "solved" if you solved your problem on your own.
    Only the original topic poster has the option to mark replies as either Helpful or Solved or to not mark a reply at all. The originator can also end the discussion by marking the topic as "answered," which displays a green star at the top of the topic page to let everyone know that the topic contains valid helpful information.
    copied from "Terms of Use"

  • I don't see the BLStart and BLFinish Dates

    Hello
    I have project A and the time to assign as a project baseline B newly imported, I can't see the BLFinish and BLStart dates.
    Project B has a start and end dates, but when he is assigned as the project BaseLine A, no dates are displayed.
    See the screenshot: http://img213.imageshack.us/img213/7217/blproblem.jpg
    Thanks
    AHR

    Hi.
    The baseline is correct assigned.
    See the screenshots.
    Maintain Baseline: http://img411.imageshack.us/img411/2231/maintainbl.jpg
    Assign Baseline: http://img440.imageshack.us/img440/3105/assignbl.jpg
    I´m schedule with date 02Aug10
    any idea?
    Thanks

Maybe you are looking for

  • Issue while clearing open line items

    Hi team, While clearing open line items for vendors, customers, and GL's system is posting new line items. It should post without new line items. Example Customer is having debit and credit line items with same amount i am going to clearing manually

  • My 15"MBPr goes dead when I plug in a TV over HDMI

    I have a 2014 15"MBPr. It is the version with the 750M. All firmware and software is up to date, all the cabling has been verified to be working. I use this laptop at a desk my lot. Until recently, my setup was a 24inch AOC display connected through

  • Render file reappears in time line

    I have found playback of one section (about 3 sec) my time line does not reflect the actual clips...the playback reverts to what i imagine is an old render file of a different clip. I notice the blue render bar above the new clips. a workaround is to

  • Include jsp file

    There are 2 jsp files: main.jsp, process.jsp. In the main.jsp, String name="java"; <jsp:include page="process.jsp" flush="true" /> .....In the process.jsp, String name="abc"; ....My problem is the parameter - name have not changed to "abc" . How can

  • Whenever i put my ipod in hold mode...........

    i recently got the 8gb purple nano 5th gen. i noticed my cousins(the exact one in green) is differant than mine when it comes to the hold switch... whenever she puts hers on hold the time and battery level show like a screen saver kinda. but when i p