Search string in any type file of a specified folder(DW能查找任意类型文件中的源代码吗)

If search a string in a unfrequent type file,we can add this type in DW's  MMDocumentTypes.xml.
But if a project has many many different unfrequent type files,I hope DW can support search string in any type file of a specified folder.
Can DW help me? I really love DW very very much.

hello shweta,
Here is a batch script that will do this for you:
batch file begin ********************************************
@ ECHO OFF
:READFILE
SET | FIND "SEARCH_STRING" source.txt > NUL
IF ERRORLEVEL 1 GOTO READFILE
IF ERRORLEVEL 0 GOTO END
sleep 5
GOTO READFILE
:END
batch file end ***********************************************
here, SEARCH_STRING is the string that will be searched in file source.txt. This SEARCH_STRING denotes the end of file (the file is ready to be transferred).
This batch file should be called from PI "Run OS command before processing of the message".
I tried this on my system and it worked for me.
Just check at your end. I hope this will solve your query.
Regards, Gaurav.
Edited by: Kr.gaurav on Sep 9, 2010 3:54 PM

Similar Messages

  • Any single file in my local folder of RoboHelp 10 which can be copied onto the application server?

    Pleasant Hello Pals, ( This is Vipin Nambiar from Bangalore)
    I am currently evaluating Adobe Robohelp 10 version for one of my technical architecture writing. Requesting help at the very earliest for the below-said big time hurdles.
    I have completed my technical writing for a in-house application system and have generated and viewing the primary layout (courtesy File -> View -> Primary Layout. ) as Contents, Index, Glossary and would like these to be hosted onto the server so that all the users of this application can access these Contents, Index, Glossary and act as a knowhow notes to use this application.
    Is there any single file in my local folder of Adobe RoboHelp 10 which can be copied onto the application server ?
    (My Adobe RoboHelp 10 local folder contains
    a.)Sub-folders called !Language!, !ScreenLayout!, !SkinSubFolder!, !SSL!
    b.)File Types called *.ALI File, *.APJ File, *.Bitmap image, *.BRS File, *.Cascading Style Sheet Document, *.CPD File, *.FPJ File, *.GIF image, *.GLO File, *.H File, *.HHC File, *.HHK File, *.HHP File, *.HTML Document, *.HTT File, *.JPEG image, *.JScript Script File, *.LDB File, *.PPF File, *.PSS File, *.Robohelp HTML Project File, *.SSL File, *.XML Document)
    Any help here will serve me in plentious

    First, your username cannot be changed and it is not a good idea to have email addresses visible on any forum, unless you enjoy reading spam.
    This question is covered in the online help. When you create an output it is generated to whatever folder you specify in the single source layout. Everything that is in that folder needs to go on the server.
    If the help is in !SSL! > WebHelp, then everything in that folder including sub-folders is what needs to go on the server.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Black lines not all showing up the same color when exported as any type file

    Hi everyone,
    I could really use some help as this is driving me crazy! Whenever I upload my Illustrator file with my logo online or export my logo as any type of file, certain black lines are lighter than others. I checked in Illustrator by clicking the lines that were showing up different shades when exported and all have the same #000000.
    Does anyone have any ideas what I'm doing wrong?
    Thanks!

    Unfortunately my file is set up like a hot mess. Everything is in the same layer and I should have definitely done multiple ones. This is only the second logo I've designed and I'm learning as I go. Basically I did an image trace of the drawing and then went back and manually fixed lines. Instead of having only a few to select I have many all in the same layer as my color.
    I noticed my vector logo works fine when exported. It's the files where I am resizing it that are coming up in the different colors.

  • Printing file names of specified folder

    I feel like this is an incredibly simple question, so I'm a little embarassed to ask, but I've never used automator before. How do I set it up to print just the file names inside a specified folder?

    If you're saving this as a Plug-in for the Finder, then the steps would be Get Folder Contents >New Text File > Print Finder Items. There's a more in-depth tutorial here that uses a slightly different method (new text document) which doesn't print automatically.

  • How to  download any type files in safari

    I HAVE iphone 4s .the8.1.1 version is installedMy question is chosen a safari to throw any safflower about if the performer will be downloaded

    Hi,
    use this for file download.
    For file down load u have to use a UI element as "File download".
    u just create context attribute as setdownload_res and file data.
    setdownload_res as of type "com.sap.ide.webdynpro.uielementdefinitions.Resource" then bound it to the ui element "resource".
    file data as of type "com.sap.tc.webdynpro.progmodel.api.IWDInputStream"
    and set calcuclated as true and read only as true.
    then in doinit method u just write this code
    IWDAttributePointer attr = wdContext.currentContextElement().getAttributePointer("fileData");
    IWDResource res = WDResourceFactory.createResource(attr,null,WDWebResourceType.UNKNOWN);
    wdContext.currentContextElement().setDownload_res(res);
    wdComponentAPI.getMessageManager().reportSuccess(""+c);
    after this in the getter method u write this code
    IWDInputStream stream = null;
    try
    stream = WDResourceFactory.createInputStream(new FileInputStream(new File("<pathof the file to be download>")));
    catch(Exception e)
    e.printStackTrace();
    return stream;

  • htmlb:fileUpload - Upload any type file to an R/3 Server using BSP?

    Hi All,
    Can anyone help me with the subject mentioned problem? I went through the following thread, but Thomas's reply was not clear enough to me- [File Inputfield - ABAP functions to store files?|File Inputfield - ABAP functions to store files?]
    Thanks in advance.
    Regards
    Gladson

    John,
    You are looking for File -XI-RFC scenario right, please follow the below weblog
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    If you need more details, reply!!!!
    Best regards,
    raj.

  • I can not resume any type file downloading process.how can i do this?

    firefox starts file downloading nicely but when the system is restarted or after load shedding when the computer is re-open,the downloading process can not be resumed and get the information to retry or to contact to server administrator.what can i do now?

    If it fails using WiFi, try using iTunes on your computer to update the iPad or use another WiFi network at a friends house or a library, Starbucks, anywhere where you can connect to the Internet.
    Or try rebooting your router and the iPad. Unplug your router from power for about 30 seconds, plug. It back in and the reboot the iPad and try again over WiFi.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Search String in PDF file - MAC Apple Script

    I want to write a Script for Searching String in a PDF File.
    I start with Apple Script and the last 2 days i searching to eliminate the error in the Script.
    set Datei to choose file
    tell application "Adobe Acrobat Professional"
    open Datei
    activate
    find text Datei string "01.07.08"
    end tell
    The script will stopped in line from find text.
    The scrippt will be load a PDF file, activate it an i want to search "01.07.08" and marked it.
    Please help me.
    Thanks michael

    Right, I think I've got on to something here:
    1. I must not have been able to search this particular pdf document in the past, despite what I think I remember.
    2. When I select the Yamaha TDM pdf in Finder and show the Inspector window (CMD-opt-I) I see under "More Info" that Security Method is 'Password Encrypted'. In fact, try to select and copy some of the text: you can't. BUT: print the whole file to a new PDF, then save that new pdf file and use it for searching, ... ta-da! it works!
    I was a bit disappointed in ColorSync's inability to open the file and then Save it As... In the Tiger days, I had used this work-around: I took a password encrypted pdf document, opened it in ColorSync utility (in Applications/Utilities) and saved it under a new filename somewhere on the disk, and this process sort of neglected to cloak it up in its password-protection.
    Oh well, I suppose I can use the Print to PDF method which I describe just here to achieve the same goal. Until, that is, the big-wigs in the publishing companies and Apple are alerted to this fact and strip the 'functionality' from the print process.
    Thanks for posting.

  • When same search strings are given, during EBS upload system not picking up

    Hi,
    We have a total of 7 company codes and have different -different seach strings assigned to each of them in EBS config. But now my client want to have a same seach string for two company codes, when configured in ECC 6.0 , and tried to upload the statement neither of the company codes are getting the bank statement uplaoded. Is there a way where we can assign company code wise so that the bank statement gets uploaded.
    Thanks and Regards
    Sri

    Hi,
    I think this should be possible. Different company codes will have different House banks and Accounts ID.
    The same search string can be used for each of the company code and house banks. This happend when after defining the search string, you assign these strings as above.
    Tip : Please also check in the "TEST", by copying the search string from the bank file and see if the mapping is being hit.
    Rgds,
    Suresh

  • File Adapter - how to get the file count from a folder

    Hi All,
    I have a requirement that have to poll a directory when the file count is reached to number N (ex:number of files avilable in folder is 5) otherwise it should wait and not pick any of the files. Is it possible to get the file count from a folder using file adapter ?? otherwise please suggest me an approach to achieve this requirement.
    Thanks,
    JJ

    Hi Sarath,
    Thank you for your reply.
    Go with the list files operation of file adapter it will gives you the number of files in the specified folder as you given. . - this step is already done.
    When the number of files reaches your count startup your webservice that which can polls the files. . . - how can i acheive this?? Have to poll the directory and process the number files - please let me know, what could be added to the webservice which is being invoked after cheking file count from parent process.
    The reason for the above question is - we cannot use ReadFile operation in second webservice because it will be automatically triggered when the file is avilable. Also SyncRead operation supports reading one file in b/w bpel process. Kindly explain me the implementation steps.
    Thanks,
    JJ

  • Saving uploaded pdf files in an extenal folder

    Can anybody help me that what is the process of uploading files such as pdf or word files in some specified folder outside of database. I am using APEX 4 with oracle 11g.
    Kind Regards
    Mazahir Abbas

    Try This one...
    CREATE OR REPLACE PROCEDURE ORSC_RMS.sn_blob_to_server (p_filename IN VARCHAR2
    AS
    l_file UTL_FILE.file_type;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob BLOB;
    l_blob_len INTEGER;
    l_name VARCHAR2 (4000);
    BEGIN
    -- Open the destination file.
    l_file := UTL_FILE.fopen ('ORSC_DATAOUT', p_filename, 'w');
    -- Get LOB locator
    FOR rec IN (SELECT blob_content l_blob
    FROM apex_application_files
    WHERE ROWNUM = 1)
    LOOP
    l_blob_len := DBMS_LOB.getlength (rec.l_blob);
    -- Read chunks of the BLOB and write them to the file
    -- until complete.
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.read (rec.l_blob, l_amount, l_pos, l_buffer);
    UTL_FILE.put_raw (l_file, l_buffer, FALSE);
    l_pos := l_pos + l_amount;
    END LOOP;
    COMMIT;
    END LOOP;
    -- Close the file.
    UTL_FILE.fclose (l_file);
    EXCEPTION
    WHEN OTHERS
    THEN
    -- Close the file if something goes wrong.
    IF UTL_FILE.is_open (l_file)
    THEN
    UTL_FILE.fclose (l_file);
    END IF;
    RAISE;
    END;
    /

  • Search for a specific string in web.config file

    Hi
    Is there a way we can search a specific word in web.config using powershell.
    I have an entry of "user name" in the connection string. I want to find what the user name is and whether its a correct user name or not based on the criteria set in the script.
    i believe its a simple matter of if statement but due to connection string i am unable to do this.
    this is my connection string from web.config
        <connectionStrings>
        <add name="Membership" connectionString="Data Source=testdb;Initial Catalog=test;user   
        name=testUser;password=123456;MultipleActiveResultSets=true" 
        providerName="System.Data.SqlClient"/>
        </connectionStrings>
    My criteria is. if user name -eq testUser write-host "correct user name" else "user name is incorrect"
    This is the script which i am using
        $webConfig = 'C:\Users\test\web.config'
        $cfg = [xml](gc $webConfig)
    Not sure how the if statement will work in searching the document and applying critera

    Here is the full web.config file. i just modified the credentials.
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
        <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,
    EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
        <sectionGroup name="common">
          <section name="logging" type="Common.Logging.ConfigurationSectionHandler,
    Common.Logging" />
        </sectionGroup>
        <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468
    -->
      </configSections>
      <connectionStrings>
        <add name="Membership" connectionString="Data Source=TestDB;Initial Catalog=Test;user
    id=TestUser;password=1234556;MultipleActiveResultSets=true" providerName="System.Data.SqlClient" />
        <add name="Administrator" connectionString="Data Source=TestDB;Initial Catalog=Test;user
    id=TestUser;password=1234556;MultipleActiveResultSets=true" providerName="System.Data.SqlClient" />
      </connectionStrings>
       <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
      </startup>
      <entityFramework>
        <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory,
    EntityFramework" />
      </entityFramework>
      <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    throwExceptions="true">
      <targets>
           <target name="f1" xsi:type="File" fileName="test.log.txt"
    layout="${threadname} ${longdate}
         ${callsite} ${logger}[${level}] ${message}" />
           <target name="console" xsi:type="Console" layout="${threadname}
    ${longdate} ${callsite}
         ${logger}[${level}] ${message}" />
         </targets>
     <rules>
          <!--<logger name="Quartz.*" level="Warn" />-->
          <logger name="*" writeTo="f1" minlevel="Info" />
          <logger name="*" writeTo="console" minlevel="Debug"
    />
        </rules>
      </nlog>
      <common>
        <logging>
          <factoryAdapter type="Common.Logging.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog20">
            <arg key="configType" value="INLINE" />
          </factoryAdapter>
        </logging>
      </common>
      <appSettings>
       <add key="V3Import.Import.TestMode" value="true" />
        <add key="MSMQ.QueueName" value="TestQueue" />
        <add key="MSMQ.ErrorQueueName" value="TestQueue" />
        <add key="AdminSignaturePath" value="C:\user\test\myfolder" />
        <add key="SyncQueueJobCRON" value="0 0/2 * 1/1 * ? *" />
      </appSettings>
      <system.web>
        <authentication mode="Forms">
          <forms loginUrl="~/Account/Login" timeout="5000000" />
        </authentication>
        <membership defaultProvider="AspNetMembershipProvider">
          <providers>
            <add connectionStringName="Membership" enablePasswordRetrieval="false"
    enablePasswordReset="false" requiresQuestionAndAnswer="false" applicationName="/Test" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"
    minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </membership>
        <profile>
          <providers>
            <add name="AspNetProfileProvider" connectionStringName="Membership"
    applicationName="/Test" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </profile>
        <roleManager>
          <providers>
            <add name="AspNetRoleProvider" connectionStringName="Membership"
    applicationName="/Test" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </roleManager>
      </system.web>
      <system.net>
      </system.net>
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="dotless.Core" publicKeyToken="96b446c9e63eae34"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.3.1.0" newVersion="1.3.1.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0"
    />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"
    culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"
    />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>

  • How do i search for a string in a txt file using java??

    How do i search for a string in a txt file using java??
    could you please help thanks
    J

    Regular expressinos work just fine, especially when
    searching for patterns. But they seem to be impying
    it's a specific group of characters they're looking
    for, and indexOf() is much faster than a regex.If he's reading from a file, the I/O time will likely swamp any performance hit that regex introduces. I think contains() (or indexOf() if he's not on 5.0 yet) is preferable to regex just because it's simpler. (And in the case of contains(), the name makes for a very clear, direct mapping between your intent and the code that realizes it.)

  • Excel or Any type of file upload in WebDynpro ABAP

    Hi All,
    I need to upload two files in my requirement, where one file is always going to be an excel sheet and another file could be of any type of file.
    I am using below code for cracking the same but it is not behaving the expected way. It is working fine for TXT, CSV and PDF file but not for XLS files.
      DATA: lc_file TYPE string.
    get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    get single attribute
      lo_el_context->get_attribute(
    EXPORTING
          name =  `FILE_CONTENT`
    IMPORTING
          value = lv_file_content ).
      CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
        EXPORTING
          im_xstring  = lv_file_content
         im_encoding = 'UTF-8'
        IMPORTING
          ex_string   = lc_file.
    I would appreciate if any one could suggest me some other way to achieve the desired functionality.
    Regds,
    Ashish

    Hi,
    Please try to use the UI element "Office Control" of a web dynpro view.
    For more details, refer to the web dynpro component: IOS_TEST_HELLOWORLD_MS.
    Best regards,
    Shalini.

  • Search a string with in some file and get the name of file

    i want to search a string in some files that are in a given directory and return the name of file having searched string.I am doing this with grep command as given below
    import java.io.*;
    public class linux_java {
    public static void main(String[] args) {
    try {
    String command = "find . | xargs grep -l Resolv /data2/opt/jakarta-tomcat-4.1.24/webapps/Oa/BOG/*.txt";
    final Process process = Runtime.getRuntime().exec(command);
    OutputStream os= process.getOutputStream();
    System.out.println("out put stream= " +os);
    PrintStream stdIn = new PrintStream(new BufferedOutputStream(process.getOutputStream()), true);
    System.out.println("Return code = " + stdIn);
    } catch (Exception e) {
    e.printStackTrace();
    i dont know how to get the name of file that are return by the execution of command through process object. Please send the code for the same

    thanks for your suggestion....
    i change the code but now it is giving error as /usr/bin/find incomplete syntax....but i am giving the right syntax....
    please confirm whether the syntax is correct...
    import java.io.*;
    import java.util.*;
    public class linux_java {
    public static void main(String[] args) {
    try {
    //String command = "ls -alt";
    String command = "find /data2/opt/jakarta-tomcat-4.1.24/webapps/Oa/BOG -type f -exec grep -sl 'Aggarwal' {} \\; 2>/dev/null";
    ///grep -l System test/*java
    System.out.println(" the command is"+command);
    final Process process = Runtime.getRuntime().exec(command);
    InputStream is = process.getErrorStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line="";
    System.out.println(" the BufferedReader is"+br.readLine());
    while ((line = br.readLine()) != null) {
    System.out.println(" the files are"+line);
    } catch (Exception e) {
    e.printStackTrace();
    }

Maybe you are looking for

  • PDF Files in Android

    Hi, Firstly would like to say that the last update for DPS was good as it now supports PDF article in Android devices. For having PDF files to be loaded in iOS, we could use the HTMLResource method. But we faced a little problem as we are trying to f

  • Create Material Master Views in mass-change

    Dear All, We have to add a additional view to the material master of some products. Is this possible to do as a mass change (ex. MM17) or have we to do it with transaction SCAT/ MASS? Do you know an other solution? Thank you. Best regards, Thomas

  • How to make a new file folder on screen?

    How to make file folder on screen? How to make a new window in browser?

  • EXCEL_OLE_STANDARD_DAT with leading zeros required

    when i am using this function moduel   EXCEL_OLE_STANDARD_DAT  in the program it is working fine by downloading  into excel file. but my probelm in the internal table fora field it is showing with Zeros before a field, but when i am downloading into

  • Refference field with SO number in accounting doc. in FB03

    Hello! Does anybody know if it is possible to display in FB03 in accounting document a refference field with sales order number? Can parameter AUN be used for this purpose? If so, how can it be set up? Thank you in advance for every help, Sylwia.