Need to convert lab from UNIX to DOS

I need to convert this lab from Unix so that it will run as a batch file in Windows (substitute with the appropriate commands). (I will definitely be starting some UNIX classes soon).
FILE=${1:?'Parameter 1 should be set to file name'}
BLOCK=${2:?'Parameter 2 should be set to block to be corrupted''}
BLOCKSIZE=${3:?Parameter 3 should be set to blocksize'}
dd of=$FILE bs=$BLOCKSIZE conv=notrunc seek=$BLOCK <<EOF
CORRUPT
EOF
dd of=$FILE bs=$BLOCKSIZE conv=notrunc seek='expr 1 + $BLOCK' <<EOF
CORRUPT
EOF
dd of=$FILE bs=$BLOCKSIZE conv=notrunc seek='expr 2 + $BLOCK' <<EOF
CORRUPT
EOF
dd of=$FILE bs=$BLOCKSIZE conv=notrunc seek='expr 3 + $BLOCK' <<EOF
CORRUPT
EOF

Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
Arwinder wrote:
This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
----------------------------------------------------------------

Similar Messages

  • Need to convert  Date from calendar to String in the format dd-mom-yyyy

    Need to convert Date from calendar to String in the format dd-mom-yyyy+..
    This is absolutely necessary... any help plz..
    Rgds
    Arwinder

    Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    Arwinder wrote:
    This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Need to convert language from English to Thailand

    Hi Gurus,
    Can any one let me know the procedure of language conversion,
    like i need to convert the available statement in report from English to Thailand.
    Is their any function module to convert, please let me know.
    thanks
    balu.

    Hi,
    Do you want text in Thailand , when your logon language is English that to dynamic text ? is it so.
    If not  I think  you can do this using Translation  .
    Mintain text-elements and then GOTO -> Translation.
    When you logon in that particular language then it will be displayed in that language only.
    Regards,
    Rajitha.

  • Converting labview from unix into windows

    I need to convert some labview programs that were written in a UNIX environment to a PC windows operating system. I have converted the files over to my PC desktop. The problem is I am trying to run libraries that were compiled in unix and have the extension .so at the end. When I open the labview program it can not find these .so libraries and when I point to their location it states that this is not a valid windows image. Is there anything I can do to convert these .so libraries into something labview can read.
    Thanks  

    As far as I know, the equivalent of a shared object in windows is a DLL - DLLs are very common in windows and are also called through the Call Library Function node. You will presumably need to take your C code and compile as a DLL using a windows compiler. I'm not sure how many modifications you will need to make to the C code.
    Try to take over the world!

  • Need to convert VI from 8.0 - 7.1 - 7.0

    I have an 8.0 VI that I need to convert to version 7.0.  Looks like 8.0 can only convert to 7.1. Does anyone know where I can download the evaluation for 7.1 so I can do the 7.1 -> 7.0 conversion?
    Thanks.

    There is no evaluation version for 7.1.  Typically you only get eval versions for the ".0" releases...6.0, 7.0, 8.0, etc.  If it's only a few VIs, you can post your 7.1 VI(s) on these forums and someone will surely convert them for you.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Help needed in converting Excel from XML file

    Hi Can anyone help me in converting XML in to Excel.
    Thanx,
    Ananth.

    well, that still isn't much to go off of. I give it a try though.
    I guess you want to parse out the relevent data out of the xml file and then decide on your favorite delimated file format for Excel. Two popular formats are comma delimated:
    "info1","info2","info3","info4"
    and tab delimeted:
    info <tab> info2 <tab> info3 <tab> info4
    Excel should be able to unsestand either of these formats.

  • Need Help Converting iPod from Mac to Windows

    Hi, I have a 3rd Gen iPod and I just gave it to my friend who has a windows xp machine. I had a Mac OS 10.3.9 system. When he plugged the iPod into his windows, it told him that it needed to be configured to windows and that he should connect it to a power adapter. When he did this, the iPod just gave an icon resembling the plug that connects to the bottom of the iPod. Now his iPod won't turn on and when plugged into his computer, it says that there has been a malfunction and his computer does not recognize the USB device. Any suggestions on how to fix this?

    That generation iPod requires a combo USB/Firewire cable. It simply won't work with USB alone. It also needs to be re-formated for Windows and that can be done within iTunes. Along with that cable, he will need the A/C power adapter.

  • Need help converting from 4.0 to 2011

    hello,
    Need help converting files from 4.0 to 2011.
    thank you
    Solved!
    Go to Solution.
    Attachments:
    noise source.vi ‏73 KB
    8673D.vi ‏30 KB
    8970 FREQ.vi ‏26 KB

    attached as 8.2, which you can open
    missing some subVIs - not sure if you already have them
    Attachments:
    8673D.vi ‏13 KB
    8970 FREQ.vi ‏11 KB
    noise source.vi ‏24 KB

  • Unix to Dos conversion

    Hi -
    I am getting files from Unix server. I am currently manually changing the file format from Unix to Dos. Whats the way to automate this process? Whats the command in windows to do this?
    -app

    I don't know what you mean by 'normal DOS format' But Calendar has a method setTimeInMillis(), that might help you.
    http://java.sun.com/j2se/1.4.1/docs/api/java/util/Calendar.html
    Also there is the class SimpleDateFormat which might help you:
    http://java.sun.com/j2se/1.4.1/docs/api/java/text/SimpleDateFormat.html

  • Convert mails from apple mail to outlook for mac 2011

    Hello, 
    need to convert mails from apple mail to outlook for mac 2011. have gone through Imap procedure and am tired of transferring mails manually coz there are thousands of'em. can anyone suggest any simple solution to this problem?
    thanks.

    Create a IMAP account (GMAIL icloud etc.)
    add account to Apple mail and Outlook 2011
    Drag emails into a folder on the imap server and then go back to Outlook 2011 and drag the emails from the imap into your email. and your done all your emails
    are there.
    There are third party tools available now-a-days for this kind of problems and they are pretty useful. You have just to select the files from the apple mail
    that you want to convert and your mails are transferred within no time.
    Convert Apple Mail to Outlook for Mac 2011

  • Converting account from personal to business

    It seems that my own account as the Manager has been set up as a personal account, not a business account. 
    Is there a way for me to convert a personal account to a business account? 
    I obviously can't set up a new business account with the same account name, so the naming scheme I have been using for everyone is now ironically not going to work for me.
    I either need to close the personal account (I see no way of doing that) and then re-create it as a business account, or I need to convert it from a personal account to a business account. Any suggestions?

    I second this...
    As a small business i had my own skype account with a skype-in number and voicemail setup to ensure that i coudl take calls and be efficent no matter where i am.
    However as my business is growing, i wanted to add in new people and manage my services centrally. Skype Manager seemed like the tool except, you cant convert/upgrade a personal account.
    A quick chat with the LiveSupport told me that i would need to:
    - Re-Buy a new number (even though i have already paid for one)
    - Setup a new business account (loosing the name people have for me)
    - Add additional credit to the tool (which i already have)
    So in effect i need to buy everything, again. On-top of that i would need to contact all my customers and such to advise them of a new name-change on skype and a phone number change. This just seems out-right mad to me and misses the point of supporting businesses, sadly not a tool for me and something i will be migrating away from very quickly. 
    Tom

  • Need to convert to labview 11 from labview 12

    hello
    I need to convert the following Labview 12 VIs to Labview 11.
    thank you in advance
    Attachments:
    QAM Demodulation.vi ‏30 KB
    QAM Modulation.vi ‏30 KB
    rx QAM.vi ‏57 KB

    The conversion was done here: http://forums.ni.com/t5/Version-Conversion/need-to-convert-from-Labview-12-VI-to-Labview-11/m-p/3021...
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Need to Convert Comma separated data in a column into individual rows from

    Hi,
    I need to Convert Comma separated data in a column into individual rows from a table.
    Eg: JOB1 SMITH,ALLEN,WARD,JONES
    OUTPUT required ;-
    JOB1 SMITH
    JOB1 ALLEN
    JOB1 WARD
    JOB1 JONES
    Got a solution using Oracle provided regexp_substr function, which comes handy for this scenario.
    But I need to use a database independent solution
    Thanks in advance for your valuable inputs.
    George

    Go for ETL solution. There are couple of ways to implement.
    If helps mark

  • Need to convert PageMaker 6.5 Plus files from Windows XP to PDF for Windows 7.

    I need to convert PageMaker 6.5 Plus files into PDF from a Windows XP operating system to a Windows 7 operating system. It tells me I need a postscript printer. I don't have a postscript printer and really don't want to print them. I just want to transfer the files from Windows XP to Windows 7. Help!!

    No, it isn't telling you that you need a PostScript printer. It's telling you that you need a PostScript printer DRIVER, which is software, not a printer.
    Use the Add Printer function to add an Apple LaserWriter IINTX. That's a PostScript printer. Then try again.
    I don't quite understand the Windows 7 connection, though. What are you hoping to achieve by making a PDF. You WON'T be able to edit them, if that's the idea.

  • Need to convert App Store from Swiss to uk?

    I need to convert the App Store from Swiss to uk?

    Change iTunes Store Country on an iDevice
    1. Tap Settings;
    2. Tap iTunes & App Stores;
    3. Tap View Apple ID;
    4. Enter your user name and password;
    5. Tap Country/Region;
    6. Tap Change Country/Region;
    7. Select the region where you will be located;
    8. Tap Done.
    Also, see How to Change Your iTunes Store Account Location | eHow.com.

Maybe you are looking for