How can I copy the name of a file, that I selected by a click?

Hi,
I have a device controled by a Excell (VBA) interface. Truogh this interface I control the motors and Diadem (for the report) and the data are save in a database. When I  use the load button from the excell, the VBA application call the script from Diadem  Load_DATA_BOF.VBS, (after I complete the new data for the report), and make the report.  Now to make it work, I copy the name of the filename that I want to load in a TextBox, and all the data are store in a txt file( protocol_for_load.txt) and Diadem takes from there the data for the report.
What I want to do is to fill automatic the field of the filename in the  protocol_for_load.txt, when I select the file in  Diadem.
Can this be done?
Thank you for your time
Solved!
Go to Solution.
Attachments:
BOF script.zip ‏177 KB

Hi Brad,
I find out how to copy the name of a selected file ( with filedlgfile) and now I want to open the text file ( with the name the same like the file loaded)  so I can read the data from inside, but the command textfileopen from the script can't support a variable in the description, I thing.
Fno = textfileopen ( filenametxt, tfread)
Please look in to my script to understand better.
I need to open the txt file with the name the same like the file loaded, to take the data and fill the report. This I need to do in Diadem Script, because I will call the script trough a VBA interface.
Sorry for not being more clearly  first  time, but I am a beginner in working with VBS.
Attachments:
Diadem script.zip ‏69 KB

Similar Messages

  • How can I copy the whole directory of files from PC to iPad?

    How can I copy the whole directory of files from PC to iPad ?

    Get an app that reads PDF's, such as iBooks or GoodReader or Readdle Docs, then use the file transfer part of iTUnes to get those files to your iPad, through iTunes. ( I have no experience with goodreader, but with ReaddleDocs you can move the files, then create folders to put them in to keep them organized)

  • How can i change the name of this file?

    In finder, the file under "desktop".

    Click on the file to highlite it, and hit the return key. Edit text/file name.
    You can not change the Places name: Desktop
    Message was edited by: leroydouglas

  • How can I find the name of a file I downloaded four months ago?

    I downloaded a file on either February 15th or 16th. Embarrassingly, I've lost the file, simply by forgetting its name. I need to be able to search my download history, by date. Does anyone know of a way to do this? I know that the history is kept that long, and that I haven't erased the history. Finding the date that I visited the website was easy using history and an approximate date, but download history is less intuitive.
    And, no, revisiting the website doesn't help; the only way to find the name of the file there (it's an ebook) is to buy it again, which is NOT what I wish to do.
    This was in Windows 7 Home Premium Edition, with FireFox v. 28.0 (yes, I know it's outdated; I haven't been using that computer much lately). I don't know what version of FireFox was installed at the time of the download -- whatever was most current at the time, as I usually make a practice of installing updates.

    The downloads folder in the history manager? I'm not sure what you mean.
    When I click on History, I see what I've put in the screenshot. Then it starts telling me where I've been today. Nothing about downloads, per se. I've been getting at those through Tools/Downloads.
    I have FireFox set up to ask me where downloads should go, rather than automatically sending them to my Downloads folder in Windows, and even if it had automatically saved to Downloads, it wouldn't still be there now.
    In a pinch, I suppose I could skip the first few in the downloads list, and then start right-clicking on individual downloads and selecting Go To Download Page, but I was hoping there might be some way to narrow it down, by getting at the date on downloads. That's fairly easy in History, but I don't see any way to do it in Tools/Downloads.

  • How can I increase the number of .pdf files that can be open at once from 20?

    I like the new integrated pdf viewer in Firefox a lot because I'm constantly browsing datasheets at work. However, it seems to have a limit of 20 simultaneous files. The machine I'm working has no danger of running out of memory any time soon, so is there a setting I can change to increase this limit?
    Thanks.

    hello michael, this limit is not directly related to pdf-files in the internal viewer, but you can try the following to work around the issue: enter '''about:config''' into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''dom.workers.maxPerDomain'''. double-click the preference and set it to a higher value.

  • I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?

    I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?
    Thanks

    I tried Notpod but can't get it to work.  Part of the problem, I suspect, is that I can't create a folder on my player (a SanDisk Clip+).  I also can't do this in Windows Explorer.  Whilst I can see the Clip+ in Explorer, the option to create a new folder isn't there.
    The error mesag I get in Notpod is:
    "Unhandled exception has occurred in your application.  If you click Continue, the application will ignore this error and attempt to continue.  If you click Quit the application will close immediately.
    InvalidArgument=Value of '0' is not valid for 'SelctedIndex'. Parameter name: SelectedIndex"
    Then, when I plug the Clip+ into a USB port, iTunes thinks it is my iPad - which is because, I guess, Notpod hasn't worked.
    I can drag and drop files from the Music folder where my iTunes tracks are stored onto the Clip+ and they get converted but I'd rather synchronise a Playlist from iTunes if I can.
    Thanks anyone who can help

  • How can I change the name of my home folder?

    Just got a new job. Yeah! Taken over former employees' iMac. I made myself Administrator, seem to be the only log in option. But, my home folder is still in the old guys name. How can I change the name on the Home folder without deleting it and loose all the files? CAN'T loose the files?  Help...
    Thanks

    Changing the existing home folder name is complicated. I recommend you NOT do that.
    Instead, create a new User with exactly the home folder name you want, and copy your files over to that new user. Once a few days have gone by trouble-free, and you are certain you have no issues, you can delete the old home folder.
    While on the subject of users, Some users prefer the peace-of-mind of using an "ordinary" user account, rather than an Admin account for daily use. This makes it much harder for anything to "sneak" onto your Mac, as you need to authenticate anything to be installed in system directories.
    To do this, create a new Admin user, log into it, and demote your daily-use account to a non-Admin user. When actively installing stuff, the Admin username and password will be requested.

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

  • I had to restore my iPhone 4s and now my recent calls show only phone numbers instead of the contact's name.  How can I restore the names to my recent calls list?

    I had to restore my iPhone 4s and now my recent calls show only phone numbers instead of the contact's name.  How can I restore the names to my recent calls list?

    Are the contact details in your contacts app, the phone app uses the contact app to put names against telephone numbers.

  • How can I change the name of a Materialized View?

    How can I change the name of a Materialized View?

    Oracle permitted renaming the snapshot in the earlier versions of 8i. However, it does not permit renaming the materialized view in 9i or 10g.
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    SQL> rename mymatview to mymatview2;
    rename mymatview to mymatview2
    ERROR at line 1:
    ORA-32318: cannot rename a materialized view
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Production

  • The computer that I used to sync my Ipad with crashed.  How can I copy the pictures from my Ipad to my new computer?

    The computer that I used to sync my Ipad with crashed.  How can I copy the pictures from my Ipad to my new computer?  When I try to use Picassa to import them I can only see the 'Camera Roll; folder but I have several other folders with hundreds of pictures in them

    To copy photos to your computer that were taken with the iPad, copied to it via the camera connection kit, or saved from emails/websites then see this page - on a PC you can use the windows camera wizard
    To copy photos that were originally synced from a computer you will need a third-party app on your iPad such as Simple Transfer which can copy them off via your wifi network. But as photos are 'optimised' when they are synced to the iPad, any that you then copy back to a computer may not be exactly the same as they originally were on your computer.

  • HT2476 How do I copy the names of files in a finder window to a text document?

    How do I copy the names of files in a finder window to a text document?

    If using Apple TextEdit Applications: Select all the files in the finder window, choose copy. Go to the TextEdit window and from the menu choose Edit then choose Paste and Match Style from the Edit drop down menu.

  • How can I change the name of a computer I'm getting rid of?

    How can I change the name of the computer to my granddaughter's name? It's now called "My name" G5 iMac. I would also like to delete that computer icon in my Devices on my MacbookPro.

    I guess my reply to these questions in your other topic did not help?
    The name of the computer is in System Preferences Sharing pane.
    If something appears under DEVICES in a Finder window sidebar, you can click hold on it and drag it off the sidebar. If it appears under SHARED, it should no longer appear there once if that iMac is no longer on your local network, or if you turn off its shared services in the Sharing pane.

  • How can I change the name of a PDF in the bookcase

    How can I change the name of a PDF in the bookcase

    Hi,
    It is possible to edit the dictionary, but not recommended.
    It is recommended to use exp/imp to "rename" a schema
    HTH
    Laurent

  • How can I change the name of a Sub Circuit in Multisim

    How can I change the name of a sub-circuit in MultiSim?  
    For example:
    I have a sub-circuit named "Output Channel 1" and its RefDes is SC1.  How do I change its name to 'Input Channel 1'?

    Hi,
    If what you want to change is the RefDes you can do it by right-clicking the sub-circuit and selecting properties. If what you want to change is the name, you can right-click the sub-circuit in the Design Toolbox.

Maybe you are looking for