Outputing a dir listing for use as a file sorter

hi all
i was working on using an external *.exe to encode some data and i
need to take a dir listing in so that i can apply the encoding to
certain files, but i am having a little diffuculty in in outputting a
text file from which to scan, i have
i am using labview 6, and the main vi elements i'm using for this
proccess is the list dir vi index array vi and write chars to a file
vi, but i cannot get the file names on a new line for each one, they
are all after each other with one space....
i know in text based programing you can use \n or similar to solve
this, but i am at a loss here with labview
if any one could help i would be most grateful
peter

many thanks! i don't know how i could have missed that! :-)
"Greg McKaskle" wrote in message
news:[email protected]..
> > i was working on using an external *.exe to encode some data and i
> > need to take a dir listing in so that i can apply the encoding to
> > certain files, but i am having a little diffuculty in in outputting a
> > text file from which to scan, i have
> > i am using labview 6, and the main vi elements i'm using for this
> > proccess is the list dir vi index array vi and write chars to a file
> > vi, but i cannot get the file names on a new line for each one, they
> > are all after each other with one space....
> > i know in text based programing you can use \n or similar to solve
> > this,
but i am at a loss here with labview
> > if any one could help i would be most grateful
>
>
> The string palette has constants for different linefeed, carriage
> return, or the platform adapting end of line. If you add this
> string character between names, that should get you started.
>
> Greg McKaskle
>

Similar Messages

  • What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    What are the steps for using the backup files to reload data to my blackberry curve (8310, i think)?

    Connect BB to PC. On 'Desktop Manager'>Backup & Restore tab>Click Restore. Double click .ipd file (backup file created from Desktop Manager).

  • Is it possible to create the ALV output with dropdown list for the columns

    Hi forum experts,
                              Could the ALV output contain the dropdown list for the column names? if yes, then how we can acheive this to happen.
    Thanks in advance,
    Regards,
    Samad.
    Edited by: Samad arif on Aug 21, 2009 4:40 PM

    Hi Arif,
    Yes we can .FOr the codding check the article,
    [dropdowns in ALV|https://wiki.sdn.sap.com/wiki/display/Snippets/DropdownsinALV]
    regards,
    Archana
    Edited by: Archana Kumari on Aug 21, 2009 1:22 PM

  • How do I specify quicktime plugin for use by mp3 files on ppc mac

    In the Applications section of Firefox Preferences I find no way to specify that the Quicktime PLUG-IN is to be used for mp3 files. Although this action option is a provided for other kinds of files, that action option is missing for MP3 Audio file (audio/mp3) and for MP3 Audio File (audio/x-mp3).
    I can specify that the Quicktime PLAYER should be used, but not the plug-in. How can I specify that I want the plug-in to be used?

    You need to set in the QuickTime Preferences what files types you want that plugin to handle.
    See also http://kb.mozillazine.org/QuickTime

  • Script to Create databases with params to support dir location for data or log files

    Script to Create databases with params to support dir location for data or log files

    DECLARE @Query VARCHAR(MAX)=''
    DECLARE @DbName VARCHAR(400) = '<DBNAME>'
    DECLARE @DbFilePath VARCHAR(400) = '<Valid DataFilePath>'
    DECLARE @DBLogFilePath VARCHAR(400)='<Valid LogFile Path>'
    SET @Query = @Query + 'CREATE DATABASE '+@DbName +' ON PRIMARY '
    SET @Query = @Query + '( NAME = '''+@DbName +''', FILENAME = '''+@DbFilePath+@DbName +'.mdf'' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) '
    SET @Query = @Query + ' LOG ON '
    SET @Query = @Query + '( NAME = '''+@DbName +'_log'', FILENAME = '''+@DblogFilePath+@DbName +'_log.ldf'' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)'
    print @query
    exec(@query)
    --Prashanth

  • Prepping large lists for use with the IN Operator

    We frequently have to run a query on a specific listing of comptuer names, typically using the IN Operator and ('Name1', 'Name2', etc.).
    Am looking for a way both to speed up the placing of the names into the required formatting, and to also remove the CRLF between them (they come mostly from Excel lists, so one per row) to make the code at least look neater (and spend less time typing),
    i.e.,:
    Name1
    Name2 
    Etc.      to:  ('Name1', 'Name2', 'etc.')
    Any way to automate?
    Thanks.

    We may all be going overboard suggesting better ways to do things, but to loop back around to answer your question, if you just wanted a simpler way to paste a shortish list of values into SSMS for convenient running through an IN clause...
    SSMS the front end application you use to query SQL Server supports Regular Expressions, even though (sadly) SQL Server itself doesnt.  Here's a Search and Replace that would mostly do what you want.. (This works almost perfectly, except there is one
    extra comma at the end you have to backspace to fix.  I could spend way more time figuring out how to handle the extra comma at the end, but then again, I could also NOT spend that time too.. :-)
    Start with just your pasted list, or highlight just the list itself, leave the rest unhighlighted.
    Find and Replace (or control-H)
    Find what:  Type in exactly as shown, just the highlighted part below
    {^}{.*}{\n*}
    Replace with: Type in exactly as shown, just the highlighted part on the line below
    '\2',
    Make sure "look in" is set to the appropriate thing ("selection" if you took the select text approach)
    Choose Regular Expressions via the USE checkbox at the bottom
    Click Replace All
    There's also a cache of "Most recently used find and replace strings", so the down arrow will remember the regex expression for a little while at least.
    Sadly, SSMS doesn't have savable macros, you'd have to type that in each time.  However, the investment to mess with and learn regular expressions will last a lifetime
    Other approaches I also use:
    Notepad++ and some stored macros (so paste from your source to notepad++, run the macro, then copy and paste from there to SSMS.  Notepad++ has quite a nice way to just record what you're doing, without having to worry about
    learning how their macros work.
    An embarrasingly complex spreadsheet for quick and dirty conversions to SQL formatting that I use in certain very unique situations for my own personal queries, nothing else.  Again, requires an interim step of pasting to the spreadsheet, then to SQL.
    And the disclaimer: As people here are suggesting better and more robust ways (load a table, etc.), this approach that I mentioned here here (Regular expressions via SSMS) is a "for programmer use only while using SSMS" approach, not really suitable
    for a large scale solution.  (But then again, if you're a programmer using SSMS, maybe it's just fine!)

  • Exporting play lists for use in other media software?

    I'm putting up an online mix hosted from my site and would like people to be aboe to play the tracks back in the order I predetermined in iTunes. I know some software besides iTunes allows sort by track number but that is sort of impractical in this situation...
    is there a 'standard' play list file type I can extract, like a .m3u? or am I SOL?
    thanks, ES
    Mac mini G4 1.5GHz/1GB/380GB; iMac DV 400MHz/512MB/10GB Mac OS X (10.4.8)

    There are two kinds of metadata involved when you consider jpeg or other image file.
    One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
    The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
    Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
    Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
    When you export from iPhoto to the Finder new file is created containing your Photo (and its Exif). The File date is - quite accurately - reported as the date of Export.
    However, the Photo Date doesn't change.
    The problem is that the Finder doesn't work with Exif.
    So, your photo has the correct date, and so does the file, but they are different things. To sort on the Photo date you'll need to use a photo app.

  • How to output variable names and units used in binary file

    My colleague will be giving me binary files (*.dat) generated from within LabView. There are over 60 variables (columns) in the binary output file. I need to know the variable names and units, which I believe he already has set up in LabView. Is there a way for him to output a file containing the variable name and unit, so that I'll know what the binary file contains? He can create an equivalent ASCII file with a header listing the variable name, but it doesn't list the units of each variable.
    As you can tell I am not a LabView user so I apologize if this question makes no sense.
    Solved!
    Go to Solution.

    Hi KE,
    an ASCII file (probably csv formatted) is just text - and contains all data that is (intentially) written to. There is no special function to include units or whatever!
    Your collegue has to save those information the same way he saves the names and the values...
    (When writing text files he could use WriteTextFile, FormatIntoFile, WriteToSpreadsheetFile, even WriteBinaryFile could be used...)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • FCX & Compressor 4 - output audio is hiss for older video/audio files

    Hello - I'm using FCPX and Compressor 4. I'm compiling video files that go back to thirteen years old. FCX has been handling the files very well. They all look and sound as expected in the viewer and project playback. I've mixed the audio with an additional soundtrack and am happy with the results. However, when I move the project to Compressor (or even if I export it using FCX) the older files look as expected, but have a terrible hiss. All other audio is filtered out or overwhelmed. All the newer files sound just fine. The file types are a mix that were captured using over a dozen different digital cameras.
    Can anyone recommend an appropriate audio output setting that might alleviate my problem with hiss? I've searched all over, but don't see any similar question.
    thanks!
    Alex

    Below are screenshots the Quicktime Inspector and FCP HUD for two of the troublesome clips. They play and sound fine when previewing in FCP, it's just the saved files that sound terrible!
    I removed the soundtrack and exported to Compressor. The resulting file had hiss for all of the same offending clips.
    Thanks for your help with this frustrating issue.

  • How can I prevent Firefox from cutting off the title of a webpage for use as a file name when printing/saving as PDF if there's a / in it?

    Like it says in the question - when I try to print/save a webpage as a PDF, Firefox (version 36.0, Windows 8.1 64bit, German) usually uses the page's title as the file name. Slashes are, of course, not allowed in file names, but instead of just leaving leaving it out or replacing it with a hyphen, the title is cut off and everything before the last slash is gone, which in some cases results in very odd and misleading file names.
    Is this a known bug? I couldn't find anything. So I'm just wondering if there's either going to be a fix anytime soon, or whether there is a simpler solution than to generate a different title sans slashes specifically for Firefox users.
    Thanks in advance for Your help!

    There is more than one proxy type.<br />
    Only an anonymous proxy will hide the IP and build two connections, one between you and the proxy and a second connection between the proxy and the website that uses an IP from that proxy.<br />
    A normal proxy merely passes all traffic without affecting it, so websites see your IP in such a case.
    *http://en.wikipedia.org/wiki/Proxy_server

  • How to declare variable in solution file for use in project files.

    Hi Folks,
    Apologies if this is not the right place to ask, but I would like to declare a variable in my solution file that can used by all of the projects (prof files) in that solution.
    More specifically in the project files, references are stored using relative paths which cause issues if they don't exist. I would like to replace the relative paths with a variable set in the solution file that can easily be changed when the solution is
    built in a different location.
    So I would like to replace "../../../SomeProject"  with "$(SomeLocation)/SomeProject"  but set the $(SomeLocation) in the solution file.
    Regards
    Andy

    Hello Andy,
    Here is a common sln file:
    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 2013
    VisualStudioVersion = 12.0.30723.0
    MinimumVisualStudioVersion = 10.0.40219.1
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wpf_EntityFramework", "wpf_EntityFramework\wpf_EntityFramework.csproj", "{A282940A-5F76-4FF8-9568-8B7D14133259}"
    EndProject
    Global
    GlobalSection(SolutionConfigurationPlatforms) = preSolution
    Debug|Any CPU = Debug|Any CPU
    Release|Any CPU = Release|Any CPU
    EndGlobalSection
    GlobalSection(ProjectConfigurationPlatforms) = postSolution
    {A282940A-5F76-4FF8-9568-8B7D14133259}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    {A282940A-5F76-4FF8-9568-8B7D14133259}.Debug|Any CPU.Build.0 = Debug|Any CPU
    {A282940A-5F76-4FF8-9568-8B7D14133259}.Release|Any CPU.ActiveCfg = Release|Any CPU
    {A282940A-5F76-4FF8-9568-8B7D14133259}.Release|Any CPU.Build.0 = Release|Any CPU
    EndGlobalSection
    GlobalSection(SolutionProperties) = preSolution
    HideSolutionNode = FALSE
    EndGlobalSection
    EndGlobal
    And the Global Interface in the solution file is actually used for Visual Stuido add-ins. To know details, please read the following MSDN article:
    1. Persisting Information in Projects and Solutions
    Here you can find "If the Globals object is associated with the
    Solution2 object, then the value persists in the .sln file. These values are persisted when the solution file is saved."
    2.
    Solution2 Interface
    It's about the solution interface.
    As you can see although they may save something to your solution file, it is not intended for you to use it in your project.
    What's your projec type and can you alter to use some common ways?
    For example:
    1. If it is in project level, set your value public so that all classes can access the value.
    2. Or you can choose to create a xml/text file or any file that you can read by code, and then read the value out from that file.
    It will be much better than thinking about set value in the solution file.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Output Server & "Read Ahead" for record type indicator files

    I have a design requirement where I need to read to the end of the print file (record type indicator format) before I can complete the process of laying down the subforms. I need to lay down a subform on page one, but will not get the data element needed until the end of the file. It is a bill statement with line items listings. When run in a batch it can have single page and multi-page bills combined. I have heard of "read ahead" but don't seem to find any documentation on it. Can anyone verify this function and direct me where to find more information?
    Thanks, Philip

    One solution might be to add a preprocessing step before the merging. Use the transformation agent to extract the "data at the end", inserting it at the beginning. When jfmerge starts, the data is good as gold, and no jumping required. In my experience, Output Server isn't that good at jumping back and forth.
    Hope this helps,
    Vegard

  • Good tutorial for using the orielly file upload servlet

    Hello all,
    I just downloaded the packages from the orielly site and I am interested in using the upload servlet. I have the oreilly servlet book but it doesnt get into much detail about how to use the servlet. I have not used servlets before so I need basic advice or a tutorial on using the MultipartRequest servlet. Where can I find this? I checked servlets.com's FAQ but it doesnt have much about how to set it up.
    TIA!

    Thanks but I want to try to use the orielly servlet class I need some practice using servlets as I am relying on jsp's too much.
    Anybody have any pointers on the orielly upload servlet and how to use it.

  • Creating a dark shadow in photoshop for use in indesign file...

    In my photshop file is a cut out image of a chess piece on a transparent background.
    I want to create a shadow so it looks like the chess piece is casting a shadow so that I can open and use it in my indesign document on a background of any colour.
    Whats the common technique to achieve this? Do I just paint the shadow using a black brush at a low opacity?

    Jayboyd wrote:
    Do I just paint the shadow using a black brush at a low opacity?
    Yes you can actually do that.
    You can make a selection of the chess piece and fill that with black or a dark gray and lower the opacity and use the transform tool to distort the
    filled selection to represent a cast shadow.Or if you understand how to use the perspective grids in Vanishing point you can create a grid to the perspective you wish the cast to be and drop the shadow on the grid.

  • Making DVD style navigation menus for use in PC files

    Hi There
    I basically need some help with the above! I want to make a film, with menus to start with, which can naviagte to the desired chapter when seleceted. When I put the menu overlays on, instead of exporting to DVD i choose PC files, but only the film itself is saved, not the graphics or menus. Is there a way this can be done?
    Many thanks in advance

    Once you've added your menus and navigation, you need to Share/To Disc to burn a DVD. (You can also elect to burn the files to a folder on your hard drive.)
    Are you not trying to create a DVD?
    I'm not sure of any other way to make your video navigable by menus.
    Although, as I explain in my books, in version 9, you can Share to a WebDVD -- which creates a web site that you can navigate through menus, like a DVD.

Maybe you are looking for

  • Fields in infocube and DSO?

    Hi Experts,                  I need some information regarding maximum number of fields in infocube and DSO?      According to my knowledge, in Infocube - characteristics --248                                                                         

  • What is best practice in FR ? Original Report access to Users or Snapshot

    Hi, can any one pls. let me know on what is the best practice in FR ? I need to give access to original reports to my users or the snapshot access only ? Users are not happy with snapshot access mainly during the closing time. What are the complicati

  • MSS-Leave Request Approval Error

    Hello All, We have implemented UWL within our organisation and we are using it for approving Leave request.The leave requests are appearing in the task list but when a user clicks on it he gets a error message as below.We are on EP7 sp12. Application

  • Iam using 3gs with ios 6, down grade to ios 5.1

    iam using 3gs with ios 6, down grade to ios 5.1 please help me

  • Cartesian time data across multiple hourly rows

    Looking for a solution for exploding time rows into multiple rows by hour. For example, take a row like this: EventTime         EventLengthSeconds 2014-04-25 13:31:16.857 6657 What I need is multiple rows to allocate the time by hour like this: Event