How change the code?

how do you change the desktop to C:\Program Files\RunerBat\File-start
in this code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim path As String = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "MyBatch.bat")
IO.File.WriteAllLines(path, RichTextBox1.Lines)
Process.Start(path)
End Sub

Hi
Not sure what you need, but here is my best guess:
' myPath as root folder
Private rootFolder As String = "C:\Program Files\RunerBat\File-start"
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim path As String = IO.Path.Combine(rootFolder, "MyBatch.bat")
' Path now = C:\Program Files\RunerBat\File-start\MyBatch.bat
End Sub
Regards Les, Livingston, Scotland

Similar Messages

  • How to skip a selection screen mandatory field in debugging mode with out changing the code?

    Hi Team,
    In my report there is two fields on selection screen, one is obligatory field , but i just want to execute the report(for testing per pus) with out entering  the data for the mandatory field with out changing the code. could u let me know which event and how to debug the report. or else  in debugging mode how can i change that field as non mandatory field.
    Regards,
    Venkat.

    If the value is not of importance how come it became obligatory in your program?
    Any how you can do one thing...Put some value in your obligatory field, put a debugger point where you are interested in  and use the pencil tool to change the value of the field while debugging. 
    Regards,
    Philip.

  • How do we change the code of incoming emails?

    Prior to downloading the latest version of Firefox, we were able to access the code-changing service via the orange button in the top left corner of the screen.
    The latest version has done away with that orange button and its associated drop-down menu, wherein we used to be able to change the transmission code of incoming emails to Unicode.
    How can we change the codes now?
    It is very disappointing that you make stupid changes without any notification.
    What was wrong with the old orange button, that it HAD to be changed?
    It appears that some ignorant newbie, who is unaware of what is really going on decides to make a name for himself, making cosmetic changes – simply for the sake of making changes!!!
    Whenever changes are made, they firstly should be absolutely necessary; and secondly your users should be notified of the implications of any changes.
    The current disregard of customers is just not good enough!!!
    Since the loss of the orange button, we have been forced to perform the tedious, time-consuming task of editing each email which is to be stored, removing all the ASCI-type codes from the text. Previously, Firefox altered the transmission code on request – MUCH simpler & MUCH quicker & MUCH more convenient!!!
    How are we supposed to get Firefox to do the change?? Pray tell.

    Hi, I am sorry that you do not like the changes in Firefox 29. I would be happy to help you with the problem that you have.
    Mozilla did not completely remove the menu function that you are talking about. If you look at the top left side of the browser you will see an icon with three horizontal lines. This has the same function as the Firefox button that you talked about. It is customizable and takes up less space when configured this way. That was the rational behind the change. From this point you click on options. After that it is all the same. I hope this helps. If you are really unhappy with the changes to Firefox 29 I wold recommend that you let Mozilla know. Everyone here is a volunteer that is passionate about helping users. Here is the link [https://input.mozilla.org/en-US/feedback Mozilla feedback]

  • How to change the code page on windows 2008 r2 ?

    How do I configure a specific code page on windows 2008 r2 ?
    I understand that I can go into control panel and change regional settings but if  want to change the code page from one codege to say CP850 how do i do that ?.
    There is no option in the control panel to select  code page ?
    Thanks

    Hi,
    I have followed the below steps which did not cause any issue to my server. Have a full latest backup and then follow the below steps.
    Create a start up batch file that includes all the commands you want.
    Then edit the registry to point to your start up file.
    http://technet.microsoft.com/en-us/library/cc779439%28WS.10%29.aspx
    c:\startup.cmd
    @echo off
    chcp 437
    HKLM\SOFTWARE\Microsoft\Command Processor
    AUTORUN="C:\startup.cmd"
    Thanks,
    Umesh.S.K

  • How to change the code w/o modification assistant

    We have a scenario, where in we developed our programs on Projekt-test system.
    Now that the development is done, all the requests were migrated to actual Projekt system through transport of copies.
    Now when i try to change the code in actual projekt system's development system i cannot change it without modification assistant.
    I heard there is some Program and when we run it it changes the source system of the object to the current system on which it is running / some configurations.
    Please help asap. As it is very difficult to fix bugs using modification assistant.
    Thanks and Regards.

    as soon as you go to the change mode.
    there in menu you can find edit->modification operations->switch of assistant.

  • How do i change the code on my MacBook Air without knowing code ?

    Managed to change the code out knowing it.
    Pressed on a key where you change the code , so that code suggestions are coming up.
    Help! I logged on the PC now.
    Thanks

    Can you give us some more details please?

  • When i copy code from DW to BC it change the code inside BC

    Hi
    I'm uploaded a html page to a BC account from Dreamweaver and BC changed some of the code,
    I tryed to open the Site Manager / Pages and the page i uploaded and did a copy & past to get the code inside, but it still changes the code.
    Im trying to get the code <i class="icon-caret-down"></i> in but it change that code to <em class="icon-caret-down"></em>
    Anyone know why this is happening or how i can go about this??
    Best
    Morten Håland - Sitespark

    The editor inside BC is XHTML compliant and will edit things into that format unfortunatly. Try to avoid using it for anything other then content.

  • Please provide me how change the Materil using BAPI...?

    Hi Guru's,
    could please provide me how change the Materil using BAPI...
    please provide the BPAI name and step by step process...
    if ou provide any program logic that would be helpfull to me...
    thanks in advance
    Srinivas....

    Hi,
    THis is code .
    *& Report Zs_MATMAS_BAPI
    *& This program demonstrates how easy it is to create Material master
    *& data using BAPI_MATERIAL_SAVEDATA
    *& The program also generates a report post-execution displaying errors
    *& as well as successful uploads
    REPORT Zs_MATMAS_BAPI.
    TABLES
    FLAGS *
    DATA: F_STOP. " Flag used to stop processing
    DATA DECLARATIONS *
    DATA : V_EMPTY TYPE I, " No. of empty records
    V_TOTAL TYPE I. " Total no. of records.
    STRUCTURES & INTERNAL TABLES
    *BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    *--- Internal table to hold excel file data
    DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold Matetrial descriptions
    DATA: BEGIN OF IT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- Internal to hold the records in the text file
    DATA : BEGIN OF IT_DATA OCCURS 100,
                WERKS(4), " Plant
                MTART(4), " Material type
                MATNR(18), " Material number
                MATKL(9) , " Material group
                MBRSH(1), " Industry sector
                MEINS(3), " Base unit of measure
                GEWEI(3), " Weight Unit
                SPART(2), " Division
                EKGRP(3), " Purchasing group
                VPRSV(1), " Price control indicator
                STPRS(12), " Standard price
                PEINH(3), " Price unit
                SPRAS(2), " Language key
                MAKTX(40), " Material description
                END OF IT_DATA.
    SELECTION SCREEN. *
    SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
    PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
    'C:\Material_master.XLS'.
    PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
    PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
    P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
    P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
    P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK SCR1.
    AT SELECTION-SCREEN *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    *--- Validating file
      PERFORM VALIDATE_FILE USING P_FILE.
    START-OF-SELECTION
    START-OF-SELECTION.
    *--- Perform to convert the Excel data into an internal table
      PERFORM CONVERT_XLS_ITAB.
      IF NOT IT_DATA[] IS INITIAL.
    *--- Perform to delete Header lines
        PERFORM DELETE_HEADER_EMPTY_RECS.
      ENDIF.
    END OF SELECTION. *
    END-OF-SELECTION.
    *--- Perform to upload Material Master data
      PERFORM UPLOAD_MATMAS.
    Form : validate_input_file
    Description : To provide F4 help for file if read from PC
    FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = F_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC  0.
        MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
      ENDIF.
    ENDFORM. " validate_input_file
    *& Form CONVER_XLS_ITAB
    text
    FORM CONVERT_XLS_ITAB.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = P_FILE
          I_BEGIN_COL = P_BEGCOL
          I_BEGIN_ROW = P_BEGROW
          I_END_COL   = P_ENDCOL
          I_END_ROW   = P_ENDROW
        TABLES
          INTERN      = IT_INTERN.
      IF SY-SUBRC  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--- Perform to move the data into an internal data
      PERFORM MOVE_DATA.
    ENDFORM. " CONVERT_XLS_ITAB
    *& Form MOVE_DATA
    text
    FORM MOVE_DATA.
      DATA : LV_INDEX TYPE I.
      FIELD-SYMBOLS <FS>.
    *--- Sorting the internal table
      SORT IT_INTERN BY ROW COL.
      CLEAR IT_INTERN.
      LOOP AT IT_INTERN.
        MOVE IT_INTERN-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
        ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS>.
    *--- Asigning the field value to a field symbol
        MOVE IT_INTERN-VALUE TO <FS>.
        AT END OF ROW.
          APPEND IT_DATA.
          CLEAR IT_DATA.
        ENDAT.
      ENDLOOP.
    ENDFORM. " MOVE_DATA
    *& Form DELETE_HEADER_EMPTY_RECS
    To delete the Header and empty records
    FORM DELETE_HEADER_EMPTY_RECS.
      DATA: LV_TABIX LIKE SY-TABIX.
      IF NOT P_HEADER IS INITIAL.
        LOOP AT IT_DATA.
          IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
            DELETE IT_DATA FROM 1 TO P_HEADER.
    P_HEADER = 0.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
      CLEAR IT_DATA.
    *--- To delete the empty lines from internal table
      LOOP AT IT_DATA.
        LV_TABIX = SY-TABIX.
        IF IT_DATA IS INITIAL.
          V_EMPTY = V_EMPTY + 1.
          DELETE IT_DATA INDEX LV_TABIX..
        ENDIF.
      ENDLOOP.
      CLEAR IT_DATA.
    *--- Total no of recs in file
      DESCRIBE TABLE IT_DATA LINES V_TOTAL.
      IF V_TOTAL = 0.
        MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
        F_STOP = 'X'.
        STOP.
      ENDIF.
    ENDFORM. " DELETE_HEADER_EMPTY_RECS
    *& Form UPLOAD_MATMAS
    to upload Material Master data
    FORM UPLOAD_MATMAS .
      LOOP AT IT_DATA.
    Header
        UNPACK IT_DATA-MATNR TO IT_DATA-MATNR.
        BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
        BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
        BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
        BAPI_HEAD-BASIC_VIEW = 'X'.
        BAPI_HEAD-PURCHASE_VIEW = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    Material Description
        REFRESH IT_MAKT.
        IT_MAKT-LANGU = IT_DATA-SPRAS.
        IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
        APPEND IT_MAKT.
    Client Data - Basic
        BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
        BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
        BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
        BAPI_MARA1-DIVISION = IT_DATA-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION = 'X'.
    Plant - Purchasing
        BAPI_MARC1-PLANT = IT_DATA-WERKS.
        BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
        BAPI_MARCX-PLANT = IT_DATA-WERKS.
        BAPI_MARCX-PUR_GROUP = 'X'.
    Accounting
        BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
        BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
        BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
        BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
    *--- BAPI to create material
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
        HEADDATA = BAPI_HEAD
        CLIENTDATA = BAPI_MARA1
        CLIENTDATAX = BAPI_MARAX
        PLANTDATA = BAPI_MARC1
        PLANTDATAX = BAPI_MARCX
    FORECASTPARAMETERS =
    FORECASTPARAMETERSX =
    PLANNINGDATA =
    PLANNINGDATAX =
    STORAGELOCATIONDATA =
    STORAGELOCATIONDATAX =
    VALUATIONDATA = BAPI_MBEW1
    VALUATIONDATAX = BAPI_MBEWX
    WAREHOUSENUMBERDATA =
    WAREHOUSENUMBERDATAX =
    SALESDATA = BAPI_MVKE1
    SALESDATAX = BAPI_MVKEX
    STORAGETYPEDATA =
    STORAGETYPEDATAX =
        IMPORTING
        RETURN = BAPI_RETURN
        TABLES
        MATERIALDESCRIPTION = IT_MAKT
    UNITSOFMEASURE =
    UNITSOFMEASUREX =
    INTERNATIONALARTNOS =
    MATERIALLONGTEXT =
    TAXCLASSIFICATIONS =
    RETURNMESSAGES =
    PRTDATA =
    PRTDATAX =
    EXTENSIONIN =
    EXTENSIONINX =
        IF BAPI_RETURN-TYPE = 'E'.
          WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,IT_DATA-MATNR.
        ELSEIF BAPI_RETURN-TYPE = 'S'.
          WRITE: 'Successfully created material' ,IT_DATA-MATNR.
        ENDIF.
      ENDLOOP.
    ENDFORM. " UPLOAD_MATMAS
    Thanks
    Sarada

  • I changed the code for saving usernames and passwords, it didn't work, so I restored a backup of the code I had made, now usernames and passwords don't work at all. Help?

    I found a method online to force firefox to save usernames and passwords which the site itself requested not to be saved. I made a backup of the file on my hard drive, moved it to the desktop, changed the code and tried it. It didn't work as expected so, I deleted that file, returned the original file to it's appropriate place and restarted firefox. Now it won't save ANY passwords or user names, even on sites it previously did so. I've tried reinstalling over the existing copy, and would REALLY prefer not to uninstall/reinstall since I have a ton of bookmarks, addons etc, which I don't want to have to restore. Has anyone encountered this issue? or have a suggestion on how to fix it?

    Do you still see names and passwords in the Password Manager?
    Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    You can still reinstall Firefox. Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected.
    See also http://kb.mozillazine.org/Password_Manager (Troubleshooting)

  • Can I change the code region again after the 5th time?

    Hello! I wanted to know if it was possible to change another time the code region on the dvd player to the original one after the fifth try? Also when I put a DVD of a different zone, it says I have one last try to change the code region but when I do it doesn't  work ... Thanks for your help

    Allegedly, if you wipe out your system...per David Pogue.  Do a Google & You Tube "How To" search. 

  • HT204266 how change the app store associated with my apple id on my ipad?

    I move from canada to australia how change the app store associated with my apple id on my ipad?
    I have try to set evry thing with my new australian data but it told me the it`s not possible...
    What I can do?
    Thanks and Regards

    you could go to settings, then itunes and app stores. you should see an option caleed apple id with your apple id to the side of it. click on it and select the option view apple id. you will have to type in your password. then you will see the details of your acoount. next, select the option called country/region. you will be able to select australia from the list of stores. you willl then change your billling adress (you should be directed). Fill in your adress in australia with your zip code and you will be done.

  • I live in the UK but visit the US regularly. The price of a new MacBook Pro is much less in the US, and is where I plan to buy one. However, I have read that a US machine will not play UK DVD's. Is this true and if so is it possible to change the codes?

    I live in the UK but visit the US regularly. I plan to buy a MacBookPro in the US but have read that it will not play UK DVD's. Is this so? If so, is it possible to change the codes?

    All modern & new Macs can play both PAL and NTSC DVDs.  I do it all the time and it works perfectly.
    The DVD drive is set to its first region code when you first play a DVD in it.  So when you buy a Mac, whatever type of DVD you play first will determine the initial region code that is set.   If it's a PAL/Region 2 DVD it will set the DVD drive to region 2.
    The only thing you have to watch out for is if you have a collection of DVDs that have different region codes.  In those cases you may be faced with changing the region code in the DVD drive in order to play one or more of the DVDs; and as others have noted there is a limit to the number of times you can change the region code (most modern DVD drives allow up to 5 changes; the 5th change becomes the permanent change).  This is due to industry licensing practices.
    If you have DVDs that are Region 0 or All Regions you don't have to worry about region codes.

  • How change the graph dynamically based on pivot table.

    Hi,
    My Report having pivot table and bar chart. Organization Name column set as pivot table prompts in pivot table.So Organization Name is appear as dropdown list.If i choose the diffrent Organization Names the pivot table data is according to the Organization Name but no changes in chart.How change the Graph dynamically based on pivot table.
    Please help on this.

    ok.I created pivot table with 4 columns and created chart using pivot table chart options but all 4 columns are displaying chart.But I need only 2 column in chart ..unable to edit the only chart in pivot table.Please help on this.Thank you..

  • How change the name of iPod?

    How change the name of iPod?

    When you plug the iPod into iTunes you should see it along the sidebar (the list Library, Store, Shared, Genius and Playlists). Just click on the iPod in that list and it should allow you to edit it

  • How change the report graph color in teststand

    how change the report graph color in teststand?

    Michael,
    You might also be able to customize the style sheet associated with the report. The TestStand Help provides some information about how to customize ATML or XML style sheets to change report colors based on the status of test steps.
    Please take a look at the following topics; are these helpful?
    ATML Report Style Sheets
    Modifying Cell Background Color Based on Step Status in ATML Test Results 5.0 Reports
    XML Report Style Sheets
    Modifying Cell Background Color Based on Step Status in XML Reports
    Tom
    TestStand Documentation

Maybe you are looking for

  • Ipod will not restore or connect to itunes after back up. Itunes keeps freezing

    I backed up my ipod to delete all my old music and once i connected it back to the new itunes, it froze and stoppped working. Like it gets stuck on syncing the ipod to the computer.

  • How can I get my hard drive icon back on the desktop

    I just erased my hard drive on my Intel MacBook getting ready to give it to my daughter. I had the Snow Leopard install disc in the drive and used Disc Utility to erase the drive. I then installed Snow Leopard and everything went smoothly without a h

  • IMovie HD 6.0 LOCKS UP On Launch

    I have spotlighted everything 'iMovie' and deleted the files. I have reinstalled this several times and cannot get past the startup screen. When I click to start a new project and specify the location, a status appears, loads halfway, and never goes

  • Connecting together a Siemens router/modem and linksys E2500

    Hi: Unfortunately, I'm not good with this stuff but I think I can learn ... I have a Siemens Gigaset SE567, which was set-up by my IP. I'm using its Modem via the #1 Ethernet port to my desktop. It broadcasts wifi but I got tired of paying $10 p/m fo

  • Need advise on dual systems to use fcp and logic

    i just got a imac 27" i7, 12Gb ram, 1TB HD and 1GB vRam. i was using a imac 20" Core 2 duo 2.33Ghz, 1TB HD for video, On this machine i ran FCP studio, FCP refuses to boot on the same machine with some of my 3rd party plugs in Logic. So i then went t