How do you change name of the files before sending files to FTP site?

Hi guys,
my environment is SQL Server 2008 R2.
Currently, I'm trying to figure out how to tackle the following project:
I have over 100 files that I need to send via FTP on daily basis.
Before doing so, I must change the extension of the file to a specific characters stored in a sql server table, for example if the file name is Store1.txt the new name will be Store1.111
I was hoping that you guys can point me in the right directions :-)
Codernater

I would use a script task for renaming, Pass the data from the SQL table with the extension you want via a object variable to the script task iterate the files in the directory and rename as requried
this code and link would help you
http://stackoverflow.com/questions/12347881/renaming-files-in-folder-c-sharp
DirectoryInfo d = new DirectoryInfo("....");
FileInfo[] infos = d.GetFiles();
foreach(FileInfo f in infos)
File.Move(f.FullName, f.FullName.ToString().Replace("abc_","");
Abhinav http://bishtabhinav.wordpress.com/

Similar Messages

  • My messages won't say the contact name only shows the phone number, how do you change this when the contact is in my phone under that number already?

    My messages won't say the contact name only shows the phone number, how do you change this when the contact is in my phone under that number already?

    I thought that at first, but I have text this person before and had received responses in a timely manner. Its just weird that it all of a sudden removed their name.
    Would this affect the delivery of the text message?

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • How do you change orientation of pdf file to fill and sign?

    how do you change orientation of pdf file to fill and sign?

    Adobe Fill & Sign does not yet have a feature to rotate PDF pages but there are several websites that will rotate a PDF for free and then you can bring that PDF with correct orientation into Fill & Sign to fill out.  Any of the top hits when you google "rotate PDF free" will work.
    Thanks,
    Josh

  • HT5467 how do you change back to the south african store from the american store on your settings??

    how do you change back to the south african store from the american store on your settings??

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.

  • How do you change direction of the delete button from "delete backward" to "delete forward"?

    how do you change direction of the delete button from "delete backward" to "delete forward"?

    Hold the function (fn) key down while clicking delete.

  • How can you change default persmissions saving files

    Mac OS 10.5.8, intel based Mac Pro
    When I save a file it has the permissions RW RW R.  There is another 10.5.8 non-intel Mac Pro then when they save a file to the destop, it is RW R R.  How do you change the default saving permissions?  I want it always to be RW RW W.

    I found it!
    http://support.apple.com/kb/HT2202
    you need to create /etc/launchd-user.conf at noted in the URl above with umask 022 in it.
    BDAqua - Thanks for the reply.  After I created the file and logged out/ back in, I had to change the permissions on the folder also.

  • How do you change a microsoft word file back from pdf file?

    I had a document I created and switched to pdf file. How do I change it back?

    Not possible with Adobe Reader. You'll need either Adobe Acrobat or a subscription to PDF Pack to do it.

  • How do you set restriction on the files you can open?

    Hi!
    How can I set a restriction on the JFileChooser dialog? I only want to be able to open .dat files. Does anybody know how?

    Hello
    To filter out files you need to create a subclass of FileFilter and perhaps a subclass of FileView that will store an icon for the file type .dat.
    Take a look here http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html#filters
    Hope this helps
    David

  • ? How do you change default for .pdf files from Reader 6 to reader 9

    I cannot change the default for .pdf files from reader 6 to reader 9. Also I cannot remove reader 6. I am running Vista

    Normally, completely removing old versions and reinstalling the latest version will reassociate all applicable extensions for the program, but it appears to have failed in your case.  There may be something else going on with your machine that is producing this behavior.  You probably need to investigate that.  But what you can do to make sure the defaults are correct is click on the start orb and select 'Default Programs.'  Then select 'Associate a file type or protocol with a program.'  From the list of file types, select each of the following in turn: acrobatsecuritysettings, fdf, pdf, pdfxml, pdx, xdp, and xfdf.  If its default program is not Adobe Reader, click on the Change Program button and select Acrobat Reader from the list (you may need to expand the lower section to display more programs than it initially provides).  If Adobe Reader does not show up in the list, you will have to browse for it.  It should be located in C:\Program Files\Adobe\Reader 10\Reader\AcroRd32.exe or C:\Program Files (x86)\Adobe\Reader 10\Reader\AcroRd32.exe.
    This method is safer than manually editing the Root\Classes in the registry.

  • How do you change name on new ios7 games centre

    Can anyone help with how to change my name on games centre

    Go onto phone settings, scroll down to game centre, tap on it, then scroll down to game centre profile (it will show your current username) tap on that and you can change it!!
    Took me a few days to find it :)

  • How do you change tempo in the middle of a session?

    Does anyone know how to do this? please explain in detail

    A few options.
    1 - search the manual. It's explained in pretty good detail. Look for "tempo map"
    2 - open Global Tracks and go to the tempo track. There you can click to create new tempo 'events' and drag them up and down for faster/slower etc. Clicking on the points where the tempo changes abruptly, and you can turn it into an adjustable curve.
    3 - open the 'lists' window and you'll see a tempo list. You can enter in tempo events there to make precise adjustments, ie. "at bar 5.1.1.1. tempo switches to 125.4 bpm" etc.
    4 - check the manual again. Read up on 'beat mapping' and other tempo related chapters.
    WARNING: Some tempo operations in L8 are buggy or unpredictable. Don't mess around on your current project until you've saved a safety copy somewhere. Better yet, save a new copy of your project as "MySong_TempoTest" and then play around to your heart's content, knowing you have an un-messed up version of your tune you can always go back to if trouble rears its head.
    rok on.

  • How do you change a read only file?

    I copied a document to my email address but it's in the read only format and I need to make some changes but I can't. What do I need to do?

    If you save the document to your computer, using Windows Explorer you can right-click then select Properties to change the Read-only attribute.

  • How can you change all of the control codes from one  number to another?

    I'm trying to use CC11 for Dynamic Expression Control, rather than just runing the volume CC7 all the time. My problem is that I would like to do a large select of say all CC codes that are 7 and move them to be 11 rather than do it one event at a time. Is there a technique for this?

    Paul Kirk wrote:
    My problem is that I would like to do a large select of say all CC codes that are 7 and move them to be 11 rather than do it one event at a time.
    The Samplecontruct's recommendation is right and probably conformable if you want to process one or a few midi region(s) containing CC7.
    In addition, if have multiple midi regions on a track and want to process in one step then the Transform window is recommended. I.e you select that track (which will select all regions), open the Transform and create the custom template I show in the pic below). Hit the "Select and Operate" (4) button which will select the matching contend (CC7) internally of the track selected regions and operate in one step. This saves time if you must select 50-60 regions and change their CC# using the Event list technique for instance.
    !http://img695.imageshack.us/img695/3350/cc711.gif!
    !http://img59.imageshack.us/img59/4967/aglogo45.gif!

  • How do you change users on the new ipad

    Need help stwitching users on the new iPad.

    Toyworks11 wrote:
    Great answere Kappy. I will be doing this on my daughter's iPad so my son can borrow it for a while. My question is: Is there a way to restore the original owner's info back without going through all the settings again when they switch back?
    The only way to do this is to do a backup of your iPad through iTunes on a computer before you wipe it clean and set it up as a new device. Do NOT rely on iCloud backup for this. Then, you'll need to be sure you give the iPad a different name when you set it up for your son. Better yet, either sync it to a different computer or don't sync it to a computer.
    If you make sure you don't delete that backup on your computer, then you can restore from it later to return it to its current state.

Maybe you are looking for

  • Adobe Acrobat 9.3 Crashes when creating PDF

    I have started having a problem with Acrobat Pro crashing every time I try and create a PDF from a file or webpage. I have not found this on the forums previously and was curous as to what may be causing the issue. I have been doing regular updates t

  • Problem in encrypting my memory card

    hello i have nokia e71. i was encrypted my memory card with password and file. I have the file and passowrd as well. But my keyfile is fine but my password is not working for that please help me i m putting the correct password. I did not change my f

  • Syncing Mail Between My iMac and Macbook

    I am new to the Mac world (I am a PC convert) and I now have an iMac and a Macbook for work. I have a couple of questions (some of which belong in this group and some elsewhere but I figured someone here could point me in the right direction): 1. My

  • Ons Log Problem

    Dear Sir/Madam, Regarding the log file of Opmn storage at ../10gccd/opmn/logs has warning/error as below :- Local connection 0,127.0.0.1,6100 missing form factor. I don't know what those meanings ,it non-stop repeating and extend. Each log file has 1

  • How do i post Etsy pictures with imac?

    I just switched from PC to Mac. With PC I can put pictures in my Etsy shop easily because they want jpeg or similar images.  Apple apparently does not use this format. How can I add this extension to my pictures on my iMac so I can post them on Etsy?