Pass parameter with fscommand exec

Hi,
I am writing a text file with batch file and this batch file which is called from fscommand.
I need to pass a parameter from fscommand. Is is possible ?
Following is flash and batch file code.
Flash Source
import flash.events.Event;
bt.addEventListener(MouseEvent.CLICK,save);
function save(e:Event){
    fscommand("EXEC","write.bat");
Batch file
ECHO This is my new text1 %1 > "temp.txt"
Thanks ------------------- Amit

As mentioned in one of your other posts you could use FileReference.save(...) this does require user interactive however and Flash Player 10.
Alternatively you could create a userId and save the data in an online database (but obviously this isn't local)
If you are using AIR you could create a local database
Otherwise I don't do not know of a way to achieve what you are after

Similar Messages

  • Passing parameter with apostrophe to sp

    Hi,
    How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
    Thanks in advance.
    Pramod

    just use double apostrophe
    SQL> var x char
    SQL> exec :x := '''';
    PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
    SQL> print x
    X
    '

  • Pass parameter with apostrophe

    Hi,
    How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
    Thanks in advance.
    Pramod

    If you are using bind variables, the string should be escaped automatically. If you are not using bind variables, you should be using bind variables.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Problem with fscommand exec

    Hi everyone ;)
    im creating a Flash Projector to use in a interactive cd.
    I need to open .doc files
    i try this:
    on (release) {
    fscommand ("exec", "test.doc");
    i put the test.doc in a subfolder named fscommand on the root
    of the
    projector.
    i try to put the .doc in the same folder of the projector
    nothing happens
    anyone knows what im doing wrong?
    I use Flash 8
    Ps.: Sorry my bad english... i'm from brazil
    Tks

    ToKa wrote:
    > Hi everyone ;)
    >
    > im creating a Flash Projector to use in a interactive
    cd.
    > I need to open .doc files
    > i try this:
    >
    > on (release) {
    > fscommand ("exec", "test.doc");
    > }
    >
    > i put the test.doc in a subfolder named fscommand on the
    root of the
    > projector.
    > i try to put the .doc in the same folder of the
    projector
    Unfortunately you can't do that. EXE is for executable type
    of files only.
    Such as EXE, COM or BAT, not doc, gif, rtf, jpg etc...
    You could use BAT file to open it but that's not very neat
    solution.
    Another way would be with 3rd party tools.
    Try Jstart. I have been using Jstart for many years now, very
    reliable tool,
    here is the url.
    http://flashjester.com/?section=tricks_jtools_jstart
    JStart will allow you to not only launch a program, but use
    parameters to make
    the program open files, perform special actions and just
    about anything you can
    use parameters for. You can also choose to launch files with
    their default
    associated program.
    Another solution is provided by Rick Turoczy, it's pretty old
    but it should
    still work. Perhaps give it a try.
    http://www.flashgeek.com/tutorials/07_launchapp_01.asp
    Easy to use tool that allow you to launch basically anything
    from the projector.
    As long as there is system default application supporting
    particle file.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Pass parameter with blank space for report ver 6

    Hi,
    I face a problem that i willing to pass the acno where it's value with blank space, for example ' 9' as parameter into my report, and assign it as v_acno. Inside the report query i add a where condition, acno >= :v_acno. When i run the report and pass acno without ' , it do not show any record. But when i run the report and pass acno with ' then able to show the records.
    for example the value i key in
    with ' = ' 9'
    without ' = 9
    So how i can solve it by pass the acno without ' but the record still able to show?
    thks
    Message was edited by:
    user569740
    Message was edited by:
    user569740

    Hi Nick,
    It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
    dtexec Utility (SSIS Tool) document, we can see:
    All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
    An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
    Doubled quotation marks within quoted strings represent escaped single quotation marks.
    Options and arguments are not case-sensitive, except for passwords.
    So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
    Regards,
    Mike Yin
    TechNet Community Support

  • Passing parameter with space?

    How does java pass parameter value with spaces? e.g. url?param1=value with space .
    Is there any built in method like PHP's addslashes?
    Thanks.

    URLEncoder.encode("value with
    space","UTF-8")Also the core JSTL tag c:url will encode parameters with spaces, and of course there's the crude way of just using the + sign.

  • How to write c# to pass parameter with craxddrt.dll?

    any example provided to open crystal report by passing parameter
    after add reference craxddrt.dll etc.
    for 8.5 report

    [Samples|https://wiki.sdn.sap.com/wiki/display/BOBJ/ReportDesignerComponentSDKCOM+Samples].
    Also check your Developer Help file...
    Adn as Don said, unless you have obtained license for craxDDrt.dll, you are breaking your agreement. Use craxDrt.dll...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Pass Parameter with Form

    It is a common and frequent question, but it has not been answered satisfactorily. The question is, how do I pass a parameter from a form in a Portal page to another page?
    I have discovered that using a Dynamic Page, I can read parameters passed in by referencing them as bind variables in a PL/SQL block. For example, given a parameter of "bindMe" as in "http://portal_path/object.show?p_arg_names=bindMe&p_arg_values=hello", the following code will display it:
    <oracle>
    declare
    localVar varchar2(50) := :bindMe;
    begin
    htp.print('bindMe = ' || localVar);
    end;
    </oracle>
    However, I am having trouble sending a form parameter out, in Portal format. By default, it will create the "?bindMe=hello" form, which isn't easily recognizable by Portal. I tried to setup a bind variable for an out-going parameter, but either it doesn't work that way, or I didn't set it up correctly. Any help would be appreciated.
    Not interested in the JavaScript approach.

    I've tried using the wwpro_api_parameters.get_value function, but it doesn't work. I keep getting a "not found" error for the page when trying to pass a parameter.
    Here's my code for the page. I'm trying to simply read a parameter that's passed in. Cut and paste it into your Dynamic Page, and see if you can get it to work.
    <html>
    <head><title>test</title></head>
    <body>
    You passed in
    <oracle>
    begin
    htp.print(portal.wwpro_api_parameters.get_value('empno','a'));
    end;
    </oracle>
    </body></html>
    Now use the URL:
    http://....show?empno=10
    According to the API documentation (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk3gvf.htm), this should work, but it doesn't. I know I shouldn't be surprised that Oracle's documentation is inaccurate, but I'm having trouble finding a solution.
    Help!

  • How Pass parameter with Activex Viewer

    Developper enviroment:
    - Crystal Report XI
    - Visual Basic 6.3
    - Access 2007
    Installa library : CRAXDDRT, CrystalActiveXReportViewerLib11_5
    I need to pass some Value to the parameter  field of my reports.
    I use this code that working well to show the report and I need to add the right code to pass some parameter to the Report.
        Dim CRXApplication As CRAXDDRT.Application
        Dim CRXReport As CRAXDDRT.report    
    Private Sub Form_Load()
        Set CRXApplication = CreateObject("CrystalRuntime.Application")
        Set CRXReport = CRXApplication.OpenReport("C:\GR&A_Trend\R1_analisi.rpt", 0)   
        CrystalActiveXReportViewer4.ReportSource = CRXReport      
        CrystalActiveXReportViewer4.ViewReport   
        CrystalActiveXReportViewer4.EnableSearchControl = True   
        CrystalActiveXReportViewer4.Zoom (100)    
    End Sub
    Can You help me  to add the right code to pass some parameter to the Report.
    Thank's
    Regards
    Giovanni Roi

    Giovanni,
    I would love to help you on this however I only work under 2008 environment. Saying that, I am sure if you can re-arrange your coding you will get the desired result.
    Here is the code which I used in my VS2008 to set the parameters under VB.net
    'declaring all the parameter value fields
                Dim crParameterFieldDefinitions As ParameterFieldDefinitions
                Dim crParameterFieldDefinition As ParameterFieldDefinition
                Dim crParameterValues As New ParameterValues
                Dim crParameterDiscreteValue1 As New ParameterDiscreteValue
                Dim crParameterDiscreteValue2 As New ParameterDiscreteValue
                'the two text boxes which will carry the discrete parameter value
                crParameterDiscreteValue1.Value = TextBox1.Text
                crParameterDiscreteValue2.Value = TextBox2.Text
                crParameterFieldDefinitions = _
        cryRpt.DataDefinition.ParameterFields
                'Start code parameter value
                crParameterFieldDefinition = _
           crParameterFieldDefinitions.Item("startcode")
                crParameterValues = crParameterFieldDefinition.CurrentValues
                crParameterValues.Clear()
                crParameterValues.Add(crParameterDiscreteValue1)
                crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
                'End code parameter value
                crParameterFieldDefinition = _
           crParameterFieldDefinitions.Item("endcode")
                crParameterValues = crParameterFieldDefinition.CurrentValues
                crParameterValues.Clear()
                crParameterValues.Add(crParameterDiscreteValue2)
                crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
    Hope this helps
    Regards
    Jehanzeb

  • Passing Parameter with a button vs. a Link

    I need to pass a variable value from a jsp to an action. When I use a link, it works:
    ">Delete</a>
    But I haven't been able to get the parameter to pass using a button. Stupid, I know, but I'm just blind to it...how do you do this?

    hmm ... maybe you just need something like this:
    <FORM ACTION="deleteLinkageAction.do" TYPE="POST">
    <INPUT TYPE="hidden" NAME="delLinkageNum" VALUE="<c:out value='${Row.LinkageNumber}' />">
    <INPUT TYPE="SUBMIT" VALUE="Delete">
    </FORM>success
    Jan Vervecken

  • Report with link that pass parameter with comma in it

    Hi.
    i have a Report and one of the columns is a Link to another page.
    i've set that when you click on that link, it redirect you to another page and pass the value of another column on that report to a text item on that page other page.
    the problem is that the value i want to pass has a comma in it and APEX split the value.
    although it look like a very common question, i could not find a solution for that.
    any tip?
    Thanks :)

    Dror,
    As a best practice we frequently advise against passing characters in the URL that are not numeric/simple primary key-type values, but you can pass a comma in f?p URL item values by enclosing the value between backslashes, e.g.,
    f?p=&APP_ID.:1:&SESSION.::NO::P1_ENAME:\Rejuan,Dror\
    Scott

  • Pass parameter with product to shopping cart

    I am creating a checkout for an after school program.  I have a page where parents see the list of classes that their children (could be more than one)
    are signed up for... I have a button by each class to add it to the shopping cart, and jquery to add a notice next to the button that the class was added to the cart after the button is pressed.
    But if a parent has multiple students, I would like to have the shopping cart reflect which student the class is purchased for.
    Is there any way to pass this information to the cart and order?

    There is no field in the order PER item (where the childs name would go I assume)... there is for the order itself, the only idea I could think of would be a summary of the items in the order and which child ordered what class.
    Hope that helps.

  • Passing parameter with ' ' in perform

    what i want to do is this:
    PERFORM f_alv  USING gt_fieldcat
                                          'F_USER_COMMAND'
                                          gt_display.
    This code work, now i want to put the 'f_user_command' into a variable, i've done this:
    DATA: lv_usercommand TYPE string VALUE 'F_USER_COMMAND'.
    This wont work because lv_usercommand will return me F_USER_COMMAND
    while what i want is 'F_USER_COMMAND' (between quote).
    help please

    Hi Hassim,
    Please try below(use 4 quotes to get single quote) and it works. Pass lv_cmd to your perform.
    DATA: lv_usercommand TYPE string VALUE 'F_USER_COMMAND'.
    DATA:lv_cmd  TYPE string.
    CONCATENATE '''' lv_usercommand '''' INTO lv_cmd.
    write: lv_cmd.
    Output:
    Thanks
    Sri

  • Isn't its possible to pass parameter with timer events

    helo every one,
    i have a array which i need to plot on the screen. the
    plotting should have some delay in between so that we can see the
    points being plotted. i tried using timer class but when the event
    occurs my loop index has always reached last element. any help...
    heres the code i used

    i have around 1000 data so the flash chrashes as i run your
    code.
    any suggestions to handel such case

  • Pass Input Parameter With Blank To SSIS Get Strange Result

    Hi! I stuck for a while when executing SSIS from stored procedure with input parameter. My input value is not consistent with output one. If I pass value with blank , SSIS seems gets second part. For example , if I pass "CALL FROM SP", SSIS get
    "FROM" only. 
    I use Execute SQL Task to store input parameter. Here is the SSIS snapshot.
    And here is the sp snippet
    DECLARE @Path VARCHAR(200),
    @Cmd VARCHAR(4000),
    @ReturnCode INT,
    @QUERY_STRING VARCHAR(70),
    @BATCH_NO VARCHAR(14)
    SELECT @Path = 'xxxxxx'
    SELECT @QUERY_STRING = 'CALL FROM SP'
    --BatchNo = YYYYMMDDHHMMSS
    SELECT @BATCH_NO = CONVERT(VARCHAR(10),GETDATE(),112) + REPLACE(CONVERT(VARCHAR(8),GETDATE(),108),':','')
    SELECT @Cmd = 'DTexec /FILE "' + @Path + 'Package1.dtsx" /MAXCONCURRENT 1 /CHECKPOINTING OFF /REPORTING EW ' + '/Decrypt ALCM '
    + ' /SET \Package.Variables[User::BATCH_NO].Properties[Value];' + @BATCH_NO
    + ' /SET \Package.Variables[User::QUERY_STRING].Properties[Value];' + @QUERY_STRING
    My test are
      input parameter
     write to TESTTB correctly ? 
    any error?  
     execute SSIS in design mode
     CALL FROM SSIS
     YES
     execute SSIS by sp
     CALL FROM SP
     NO
     Option "FROM" is not valid.
     execute SSIS by sp
     CALL_FROM_SP
     YES
    Anyone could give me some hint ? 
    Thank you so much!!

    Hi Nick,
    It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
    dtexec Utility (SSIS Tool) document, we can see:
    All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
    An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
    Doubled quotation marks within quoted strings represent escaped single quotation marks.
    Options and arguments are not case-sensitive, except for passwords.
    So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
    Regards,
    Mike Yin
    TechNet Community Support

Maybe you are looking for

  • Website can't access hard disk

    My mpog has 1000s of graphics files that can be stored locally, but it can't access the files, how do I allow the site to access folder on hard disk? == URL of affected sites == http://www.ferion.com but you need an account to get into a game

  • Repeating a timeline

    Hi, I have a MC with a 20 frame animation. I want its time line to repeat a couple of times but not forever. Besides copying and pasting frames, is there a way to set the number of repeats? and then just have it stop on the last frame? Isn't there a

  • Data validation in internal tables

    Hi, I am trying to map 2 internal table for my final output. but the values are differnt one contains storage location and other doesnt contain. How can we get output for all records. If i remove the logrt in loop stmt it is giving wrong values. the

  • Should I Get One?

    OK well I'm going to need a laptop for college in the future. I originally wanted a Mac but I got turned off of them when my iPod Touch wouldn't work with my dad's Mac because he was 0.0.1 versions away from what was required. I thought to myself if

  • Directory sverly damaged on external drive, other programs than Disc W.

    I have an external Lacie USB 2 drive connected to my G5, now some files refuse to open, I ran the OsX Harddrive tools and it states that there is nothing wrong with the disc and when I do a harware check with Disc Warrior it states that the disc is f