Pass file path through a variable

I have a script that works when I place path directly instead of variable, but I will need that path to come from java script, so I need to replace it with a variable, but when I do that, it doesn't work any more and it the same path, but running the script tells me that it can't find the file (and file is there ).
_*Working script:*_
set ScriptPath to (path to applications folder as text) & "Adobe Illustrator CS4:Presets.localized:enUS:Scripts:_NDF_ILLbasicWebTemplates.jsx" as alias
tell application "Adobe Illustrator"
activate
open file "SPACE:Marketing:webTemplatesCreation:working:template.pdf"
set Doc_Ref to the current document
tell Doc_Ref
do javascript ScriptPath
end tell
end tell
_*Not working:*_
set myTemplate to "/SPACE/Marketing/webTemplatesCreation/working/template.pdf" as alias
set ScriptPath to (path to applications folder as text) & "Adobe Illustrator CS4:Presets.localized:enUS:Scripts:_NDF_ILLbasicWebTemplates.jsx" as alias
tell application "Adobe Illustrator"
activate
open myTemplate
set Doc_Ref to the current document
tell Doc_Ref
do javascript ScriptPath
end tell
end tell
I tried different versions: like with '/Volumes' in the beginning and with out 'as alias' for the variable. And none of it helps. The file is on the server and not on my system.
Thank you very much for your help.
Yulia.

You need to use a colon-delimited path. If the JavaScript returns a slash-delimited one, run:
set myTemplate to POSIX file "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
or:
set the_string to "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
set new_string to ""
repeat with this_char from 2 to (count the_string)
if item this_char of the_string is "/" then
set new_string to new_string & ":"
else
set new_string to new_string & item this_char of the_string
end if
end repeat
(53281)

Similar Messages

  • Assign Logical file name for the physical file path through Program

    Hi all,
    I am having a physical file which is getting generated dynamically. It is having the date and time stamp in its name which is added at runtime.
    Now I need to assign a logical file name for the physical file path through the program.
    Is there any FM or any other method to assign the same.
    Gaurav

    I think it is not possible. becuase the date & time added at runtime. so if you check the table  PATH you can find filename and their definitions

  • Pass File Path into Message Box

    Hello,
    I’m building an application that is being used to create a report for whatever date range the user chooses. After the data is exported into Excel I have a message box pop up telling the user where the file has been saved to. However, as it is now, I have
    the file path hard coded. What I want to do is have the file path chosen by the user passed into the message box and display a message with the selected path. Any help with this will be greatly appreciated.
    Dave
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using ClosedXML.Excel;
    using DocumentFormat.OpenXml;
    using System.IO;
    namespace LoanOrig_FDIC_Codes
    public partial class Form1 : Form
    SqlCommand sqlCmd;
    SqlDataAdapter sqlDA;
    DataSet sqlDS;
    DataTable sqlDT;
    SqlCommand sqlCmdCnt;
    public Form1()
    InitializeComponent();
    //BEGIN BUTTON LOAD CLICK EVENT
    private void btnLoad_Click(object sender, EventArgs e)
    string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=myID; Password=myPW";
    //Set the 2 dateTimePickers to today's date
    DateTime @endDate = End_dateTimePicker.Value.Date;
    DateTime @startDate = Start_dateTimePicker.Value.Date;
    //Validate the values of the 2 dateTimePickers
    if (endDate < startDate)
    MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    return;
    //End of date validation
    string sqlData = @"SELECT AcctNbr,
    CurrAcctStatCD,
    Org,
    MJAcctTypCD,
    MIAcctTypCD,
    NoteOriginalBalance,
    ContractDate,
    FDICCATCD,
    FDICCATDESC,
    PropType,
    PropTypeDesc
    FROM I_Loans
    WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
    SqlConnection connection = new SqlConnection(sqlCon);
    SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
    sqlCmd.Parameters.AddWithValue("@startDate", startDate);
    sqlCmd.Parameters.AddWithValue("@endDate", endDate);
    sqlDS = new DataSet();
    sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
    connection.Open();
    sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
    sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
    sqlDT = sqlDS.Tables["I_Loans"];
    //Code section to get record count
    sqlCmdCnt = connection.CreateCommand();
    sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
    sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
    sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
    int recCnt = (int)sqlCmdCnt.ExecuteScalar();
    txtRecCnt.Text = recCnt.ToString();
    btnExport.Enabled = true;
    //End of code section for record count
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
    dataGridView1.ReadOnly = true;
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    //END BUTTON LOAD CLICK EVENT
    //BEGIN BUTTON EXPORT CLICK EVENT
    private void btnExport_Click(object sender, EventArgs e)
    { //ClosedXML code to export datagrid result set to Excel
    string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
    if (Directory.Exists(dirInfo))
    var wb = new XLWorkbook();
    var ws = wb.Worksheets.Add(sqlDT);
    ws.Tables.First().ShowAutoFilter = false;
    SaveFileDialog saveFD = new SaveFileDialog();
    saveFD.Title = "Save As";
    saveFD.Filter = "Excel File (*.xlsx)| *.xlsx";
    saveFD.FileName = "LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd");
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    //End of ClosedXML code
    MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
    else
    MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
    return;
    //END BUTTON EXPORT CLICK EVENT
    private void Form1_Load(object sender, EventArgs e)
    //Set dates to be today's date when the form is openend
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    private void Form1_Load_1(object sender, EventArgs e)
    // TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
    this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
    private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
    private void btnExit_Click(object sender, EventArgs e)
    this.Close();
    //END THE SAVE AS PROCESS
    David Young

    Assuming I have located the part of your code you are talking about, I think you just need to replace the hard code path in the message with the path from the SaveFileDialog. You should only display the message if the use clicked OK.
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    MessageBox.Show("File has been exported to " + saveFD.FileName, "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);

  • Passing File Path of an XFDF to a PDF

    I am attempting to pass the path to a file, an xfdf, to a PDF form and have the form fields filled in.
    I have this working with a page level script on page open -
    this.importAnXFDF("myFile.xfdf");
    How can I pass the "myfile.xfdf" to the PDF as a parameter? And then read that parameter with Acrobat javascript? Making my script look like -
    this.importAnXFDF(myFileVariable);
    I am guessing the link to the PDF would look like -
    myPDF.pdf#xfdf=myFile.xfdf
    So the whole package would be something like -
    myPDF.pdf#xfdfFile=myFile.xfdf
    Then -
    this.importAnXFDF(xfdfFile);
    Right?????
    Any help is appreciated.
    Thanks in advance.

    To pdobratz -
    The error is in the sequence editor when trying to initiate the drag of the object. I am not sure why it occurs, but the Sequence Editor is just reporting an exception that occurred when calling an API method in the TestStand engine. TestStand should still run fine.
    I tried the senario with TestStand 3.1 and the error did not occur. Starting with TestStand 3.0, most of the watch pane code was rewritten.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Downloading file passing File Path in the FM as well as Retain Values in XL

    Hi Experts,
    I am writing a report where it is required that I have an option for the user, in selection  srceen, to have an F4 help to choose the file path they want. The same should be further used to automatically download the internal table into an excel file.
    I was initially using GUI_DOWNLOAD which seemed to work fine except that certain values were not being retained in the download file,  For example , the leading zero in "02" and the value "2-6-21" gets updated in date format automatically as 02-06-2011.
    To avoid the above I tried using the FM  XXL_FULL_API which retains this value but it does not seem to have an option where I can pass the file path to download on the presentation . Instead we need to manually save the excel file when it is generated.
    Could you help me with how to proceed with this, in a way where I can pass the file path as well as retain the values in excel?
    <removed by moderator>. Any help is welcome
    Thanks in advance.
    Regards,
    Trishna
    Edited by: Thomas Zloch on Nov 22, 2011 5:24 PM

    Hi,
    The easiest way to make excel retain the values and not apply any formatting on cells is to add a quote in front of those fields...
    e.g. '02 and '2-6-21. Then you can use the gui_download method...
    Those values will then be considered as text by excel and you won't be bother with auto-formatting issue...
    There are of course other ways of doing it...(via OLE e.g)
    Kr,
    Manu.

  • Passing file path in function module XXL_FULL_API

    Hi All,
    I am using function module XXL_FULL_API instead of GUI_DOWNLOAD becuse  I need to download data with field names as heading. my question is how to pass complete file path (presentation server  path)in the function module XXL_FULL_API .
    Thanks in advance.
    vijaya.

    Hi Vijaya lakshmi,
    Please check this link
    excel download: XXL_FULL_API
    REPORT ZXXL_FULL_API  .
    TABLES:
    sflight.
    *header data................................
    DATA :
    header1 LIKE gxxlt_p-text VALUE 'Suresh',
    header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
    *Internal table for holding the SFLIGHT data
    DATA BEGIN OF t_sflight OCCURS 0.
    INCLUDE STRUCTURE sflight.
    DATA END OF t_sflight.
    *Internal table for holding the horizontal key.
    DATA BEGIN OF t_hkey OCCURS 0.
    INCLUDE STRUCTURE gxxlt_h.
    DATA END OF t_hkey .
    *Internal table for holding the vertical key.
    DATA BEGIN OF t_vkey OCCURS 0.
    INCLUDE STRUCTURE gxxlt_v.
    DATA END OF t_vkey .
    *Internal table for holding the online text....
    DATA BEGIN OF t_online OCCURS 0.
    INCLUDE STRUCTURE gxxlt_o.
    DATA END OF t_online.
    *Internal table to hold print text.............
    DATA BEGIN OF t_print OCCURS 0.
    INCLUDE STRUCTURE gxxlt_p.
    DATA END OF t_print.
    *Internal table to hold SEMA data..............
    DATA BEGIN OF t_sema OCCURS 0.
    INCLUDE STRUCTURE gxxlt_s.
    DATA END OF t_sema.
    *Retreiving data from sflight.
    SELECT * FROM sflight
    INTO TABLE t_sflight.
    *Text which will be displayed online is declared here....
    t_online-line_no = '1'.
    t_online-info_name = 'Created by'.
    t_online-info_value = 'RAAM'.
    APPEND t_online.
    *Text which will be printed out..........................
    t_print-hf = 'H'.
    t_print-lcr = 'L'.
    t_print-line_no = '1'.
    t_print-text = 'This is the header'.
    APPEND t_print.
    t_print-hf = 'F'.
    t_print-lcr = 'C'.
    t_print-line_no = '1'.
    t_print-text = 'This is the footer'.
    APPEND t_print.
    *Defining the vertical key columns.......
    t_vkey-col_no = '1'.
    t_vkey-col_name = 'MANDT'.
    APPEND t_vkey.
    t_vkey-col_no = '2'.
    t_vkey-col_name = 'CARRID'.
    APPEND t_vkey.
    t_vkey-col_no = '3'.
    t_vkey-col_name = 'CONNID'.
    APPEND t_vkey.
    t_vkey-col_no = '4'.
    t_vkey-col_name = 'FLDATE'.
    APPEND t_vkey.
    *Header text for the data columns................
    t_hkey-row_no = '1'.
    t_hkey-col_no = 1.
    t_hkey-col_name = 'PRICE'.
    APPEND t_hkey.
    t_hkey-col_no = 2.
    t_hkey-col_name = 'CURRENCY'.
    APPEND t_hkey.
    t_hkey-col_no = 3.
    t_hkey-col_name = 'PLANETYPE'.
    APPEND t_hkey.
    t_hkey-col_no = 4.
    t_hkey-col_name = 'SEATSMAX'.
    APPEND t_hkey.
    t_hkey-col_no = 5.
    t_hkey-col_name = 'SEATSOCC'.
    APPEND t_hkey.
    t_hkey-col_no = 6.
    t_hkey-col_name = 'PAYMENTSUM'.
    APPEND t_hkey.
    *populating the SEMA data..........................
    t_sema-col_no = 1.
    t_sema-col_typ = 'STR'.
    t_sema-col_ops = 'DFT'.
    APPEND t_sema.
    t_sema-col_no = 2.
    APPEND t_sema.
    t_sema-col_no = 3.
    APPEND t_sema.
    t_sema-col_no = 4.
    APPEND t_sema.
    t_sema-col_no = 5.
    APPEND t_sema.
    t_sema-col_no = 6.
    APPEND t_sema.
    t_sema-col_no = 7.
    APPEND t_sema.
    t_sema-col_no = 8.
    APPEND t_sema.
    t_sema-col_no = 9.
    APPEND t_sema.
    t_sema-col_no = 10.
    t_sema-col_typ = 'NUM'.
    t_sema-col_ops = 'ADD'.
    APPEND t_sema.
    CALL FUNCTION 'XXL_FULL_API'
    EXPORTING
    *DATA_ENDING_AT = 54
    *DATA_STARTING_AT = 5
    filename ='TEST'
    header_1 = header1
    header_2 = header2
    no_dialog = ''
    *no_start = ' '
    n_att_cols = 6
    n_hrz_keys = 1
    n_vrt_keys = 4
    sema_type = 'X'
    SO_TITLE = 'TEST'
    TABLES
    data = t_sflight
    hkey = t_hkey
    online_text = t_online
    print_text = t_print
    sema = t_sema
    vkey = t_vkey
    EXCEPTIONS
    cancelled_by_user = 1
    data_too_big = 2
    dim_mismatch_data = 3
    dim_mismatch_sema = 4
    dim_mismatch_vkey = 5
    error_in_hkey = 6
    error_in_sema = 7
    file_open_error = 8
    file_write_error = 9
    inv_data_range = 10
    inv_winsys = 11
    inv_xxl = 12
    OTHERS = 13
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Best regards,
    raam

  • Sending file paths through iChat

    Hi all,
    Since upgrading some of our machines at the office to Snow Leopard we are having a strange issue with iChat that I hope someone has some insight into.
    When all of the machines at our office ran Leopard and iChat 4, we used to send linkable file paths to folders on our server to one another via iChat so we could avoid having to write "go to Jobs, then to Current, then Posted, and the file is in there."
    We would achieve this by opening up a firefox window, then dragging a folder from our server into the window. It would generate a filepath that looked like "file:///Volumes/Server/Jobs/New/transfer/" in the URL bar which could be copied and pasted into iChat and would appear as a linkable URL. Then we started using a program called Get File Path by Alpha Omega Software (http://alphaomega.software.free.fr/), a great drag and drop app which did the same thing with great results.
    However, on machines that now run Snow Leopard (10.6.2 or 10.6.4) and iChat 5 (5.0.1 or 5.0.3), neither of these tricks will work anymore. The message returns an alert saying that the message couldn't be delivered, and that an "AIM service error occurred."
    We have done some more testing on this issue, trying to narrow down its cause. We have found:
    -Workstations using OS X 10.5.8 and iChat 4.0.8 CAN send file links via AIM IM chats to machines using OS X 10.6.4 and ichat 5.0.3. These links work.
    -Workstations running either OS X 10.6.2 with ichat 5.0.1 or OS X 10.6.4 with ichat 5.0.3 CANNOT send file links to anyone using AIM IM chats (even if these links are typed in manually and not copied and pasted) without getting a returned error.
    -Workstations running either OS X 10.5.4, 10.6.2 or 10.6.4 CAN send file links to back and forth to one another via Bonjour IM chats.
    -Workstations running OS X 10.6.2 with Adium 1.3.10 CAN send file links to via AIM IM chats to machines using OS X 10.6.4 and ichat 5.0.3. These links work.
    -Workstations running OS X 10.6.4 with Adium 1.3.10 CANNOT send file links to via AIM IM chats to anyone using AIM IM chats
    We don't have Adium on any of our other workstations, but just installed it to try to narrow down the cause of the problem. I have not messed around with any of the port configurations for iChat (I am not an IT guy so I don't want to screw anything up), but I did note that the port number in iChat is 5190 on all machines -- those that work and those that don't. Additionally I should mention that we are currently connected to a smb share using linux, but we also tested it linking to files one of our leopard servers. It made no difference in the results of the testing.
    What all this tells me that the error is coming predominantly from the update of OS X 10.6.4 (possibly coupled with ichat 5) and the way it sends out AIM IMs. The easy answer would be to just use Bonjour chats, but a lot of people at our office hate using it, and I am hoping to figure out some way to get this to work with iChat AIMs.
    Does anyone know why this is happening? Is there something obvious we are missing? These tricks used to be real timesavers, and it is annoying they are no longer working. If anyone else has some insight I would be greatly appreciative.
    Thanks in advance!
    -Adrian

    The [url http://java.sun.com/docs/books/tutorial/]Custom Networking tutorial has a section on using sockets within a Client/Server context.

  • FOTY0001error when trying pass file path variable to ora:readBinaryFromFile

    I want to read a file from a location,I take that file location as input and assign it to variable filePath and use
    ora:readBinaryFromFile(bpws:getVariableData('filePath','payload','/tns:value')),I get FOTY0001 type error.
    Any light on the issue would be appreciated.
    StackTrace:
    <2008-06-03 14:47:31,875> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readBinaryFromFile(bpws:getVariableData('filePath','payload','/tns:value'))", the reason is FOTY0001: type error.
    Please verify the xpath query.
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:readBinaryFromFile(bpws:getVariableData('filePath','payload','/tns:value'))", the reason is FOTY0001: type error.
    Please verify the xpath query.
    TIA,
    -Tripti

    You need to use a colon-delimited path. If the JavaScript returns a slash-delimited one, run:
    set myTemplate to POSIX file "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
    or:
    set the_string to "/SPACE/Marketing/webTemplatesCreation/working/template.pdf"
    set new_string to ""
    repeat with this_char from 2 to (count the_string)
    if item this_char of the_string is "/" then
    set new_string to new_string & ":"
    else
    set new_string to new_string & item this_char of the_string
    end if
    end repeat
    (53281)

  • SSIS - Loop through files from a file path based on the value in the variable

    Experts,
    I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
    For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
    the files to the "\\....\Src\Product\Archive" folder.
    Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
    folder.
    Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to call a variable file path in javascript

    Hi,
    My objective is to capture a file path on mac and windows. However, this file path gets changed with various users.
    For example the path is:
    c:\user\username\AppData\Local\Temp\myfolder------> this is for windows machine
    /users/username/Library/Application Support/tempfolder/Temporary Files/-------> this is for mac machine
    As you can see, the path will be same for all the machines. Only the difference will be in searching the user and username at the start of file path. Rest folders will remain same on all the machines.
    Is there any grep pattern through which I can call this complete path in a variable for all the users.
    Any help will be appreciated.
    Regards,
    Abhi

    Hi,
    You are able to check OS:
    var currOS = $.os;
    regarding to value of this string you can switch to various paths
    Jarek

  • Which file path should I pass bdcdata table

    Hi ,
    I have the following scenario.
    There is a button in the standard transaction which opens a dialog box. User can choose a file in the dialog box. That file will be uploaded in the transaction.
    I need to write a bdc for this transaction. What file path I need to pass through BDCDATA table? Will it take file from application server or presentation server?
    Thanks is advance.
    Raktim

    Dear Jorge,
    I got the the recording. Now I need to pass the file path whoch called transaction is expecting. Should I pass path in the application server or presentation server?
    Thanks
    Raktim

  • Search c:\ drive and return file path for winword.exe and save as variable

    Hi all, here is what I'm trying to do;
    1. Search C:\ drive for winword.exe
    2. take the file path and save it as a variable.
    3. Then based on the path value, use the switch statement to run "some command" 
    Essentially I'm trying to find what the file path for winword.exe is, then run a command to modify the registry.  I already have the script that will modify the registry like I want but the problem it, the path is hard coded in the script, I want to
    now look for all versions of word and set the right file path so I can make the right registry changes.

    This should get you started:
    http://ss64.com/ps/get-childitem.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Get (variable) file path and name in a text element

    How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • Variable file name through Receiver mail Communication channel

    I need to send a file through receiver communication channel   with the following name ( YYMMDD schema)  . The YYMMDD is current date .  I know how to create these file names throug FCC ( file communication channel) , I tried in the same manner to create this file through Receiver Mail CC , but it did not work  .  If you have any ideas , can you please share with me ?
    ABC_MMYYDD.TXT
    Thanks.
    Ritvik

    Hi Ritvik,
    Also, Please look at this link and see if it helps you. It is generating variable file name through a UDF
    Re: Problem in dynamically file name generation procedure
    Best Regards

  • Question about pass file name and path to file write adapter

    I need to pass file name and path to file adapter for write. I got partial answers from thread Re: Get File name using File Adapter , but seems InboundHeader_msg or outboundHeader_msg only takes file name, how do I pass file directory?
    since I still have to specify file format (like xxx_%xx%.txt) in the file adapter wizard. Will this name conflict with what the name defined in InboundHeader_msg ?
    Similarly, how can I pass a file name and path to a file synchread adapter?
    Thanks,
    Message was edited by:
    user531689

    Just overwrite the filename in the WSDL file that was generated

Maybe you are looking for

  • Need to upgrade from 10.1.5 to tiger, don't have dvd drive

    I only have a cd drive in my old imac. Would like to upgrade to Tiger and add an airport card. Do I need to buy the full version or just an upgrade cd? Is it possible to put an airport card in this imac? Should I add more memory too? I hear it is pre

  • Delivery split based on schedule lines

    Hello toghether, I hope someone could help me. I have the following problem. I need to split a delivery, if some data on the schedule lines is different. That means, if I have 3 schedule lines with different data (except the delivery date) I need 3 d

  • Cost center line items by profit center

    Hi, We have an issue, where user has processed a document in FI with profit center "X" however the cost center of the document has profit center "Y" in the master data. In FI, accounting document showed against the profit center "X" with which user h

  • Associated Trips not shown in SCASE for Post Audit Cases

    Hi All,         In My Project there was an EHP6 upgrade after which there were some issues. Most of them were resolved expect for this SCASE tcode issue. Here when a search is made to check Violated Trips case for Items, Associated Trips are not gett

  • Script Task order by FileName

    I have following code in my script task to get all the files in directory. String[] sourceFiles = Directory.GetFiles(Dts.Variables["User::FilePath"].Value.ToString(), "*.TIF"); I have files in directory as 1.TIF, 10. TIF, 3.TIF. I would like to proce