From Forms 5.0 I want to copy a file/folder from one location to another.

Hi,
I have a question and I really appreciate your help.
My Question is
I would like to copy a file/folder from one location to another.
(For ex: From my Hard disk to a Network folder).
I want to do this from Oracle Forms 5.0 and my operating system is Windows 2000/NT Workstation.
At present my users are doing this by using drag and drop windows functionality,
But now they want to do this by using a GUI screen.
I would greatly appreciate if somebody can answer my question.
Thank you very much and have a nice day.
Thanks & Regards
Sanjeev.

Hi Shay,
Am able to copy the files/folders by doing the follwing.
Declare
My_Command Varchar2(1000);
Begin
MY_COMMAND := 'XCOPY /E ' ||:FROM_LOC ||' '|| :TO_LOC ;
HOST(MY_COMMAND);
End;
But my problem is am not able to trap the errors.
Do you have any idea?
Thanks

Similar Messages

  • I want to copy all the objects from one user to another... Please help

    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    Please Explain me in detailed way
    Thank you

    SowmyRaj wrote:
    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    If all what you are interested is Scott schema than no need to use the datapump or CTAS. Run demobld.sql in your schema and it would have all the objects of Scott.
    http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
    HTH
    Aman....

  • Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    My form - which was working great - disappeared when I did some editing; here is the message I get now.
    The form does not exist. Please re-enter the web address as the link may be misspelled.
    The link for the form is:
    https://adobeformscentral.com/?f=UqJr%2Aas2RJIHPVA4iGIQ6w
    Please look into the matter and resolve the issue at the earliest.
    Regards,
    Vaibhav Nigam

  • How to copy file from  one location to another

    Hi,
    I am new to java, I tried the following code to move the file from one location to another
    public class CopyFiles {
    public String copy ( File source, File target)
    throws IOException {   
    FileChannel sourceChannel = null;
    FileChannel targetChannel =null;
    try {   
    sourceChannel =new FileInputStream(source).getChannel();
    targetChannel= new FileOutputStream(target).getChannel();
    targetChannel.transferFrom(sourceChannel, 0,
    sourceChannel.size());
    finally {   
    targetChannel.close();
    sourceChannel.close();
    return "Success";
    public static void main(String [] args) throws Exception{   
    File source = new File("C:\\users\\download.pdf");
    File destinationFile = new File("C:\\apple\\download.pdf");
    copy(source, destinationFile);
    The above code is working perfectly, but I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.

    kameshb wrote:
    I Don't want to include the file name in destination file. i.e. File destinationFile=new File("C:\\apple"), and at the same time the pdf with same name has to get stored in the destination location, how can I achieve this.It's not totally clear what you're saying here, but what I think you mean is that you don't want to explicitly set the destination file name--you want to just give the copy the same name as the original. Yes?
    If that's the case, then break the original up into separate directory and file name portions, and then construct the destination path from the destination directory plus original file name. You can do that by manipulating the full path string, or by using the methods in java.io.File.

  • Copy File from One Location to Another Location through xcopy or any

    Hi,
    I Need to copy one file from one location to another location. That file need to save in C:\Windows\System32 folder
    I need to create one .bat file and i want apply that bat as a startup script through GPO.
    I tried through XCopy if i test in machine that is working. If i tried in other machine that is not working. becoz of some Credential issue
    I tried in the script by netuse command after that my script itself not working.
    SET username=XYZ\Administrator
    SET password=abcd
    @ECHO OFF
    cmd "cd C:\"
    net use "\\10.50.5.68\c$\Windows\System32" %password% /user:domain\%username%
    :copy
    Xcopy /S /I /E D:\DLL \\10.50.5.68\c$\Windows\System32 
    Regards, Hari Prasad.D

    You cannot do that in a startup script.  You do not need to do that in a startup script.
    To add files to the system use GP Preferences.
    On Window 7 and later only the Trussted Installer is allowed to add files. (That means only Microsoft.)
    No programs or users should ever alter files in the system area.
    ¯\_(ツ)_/¯

  • I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?

    I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?
    Thank you

    So it seems from reading the COMMAND manual that my first issue is that I used a 16GB SD card, and the manual says it will only recogize up to a 2GB SD card. I did use my MB Air's SD card slot and crated a folder and dragged the music files to it, then to the card. So I am going to get a 2GB card and try that next. Otherwise just stick with the iPOD connected. At least that is 8GB

  • I have over 1000 songs on an old computer and I want to copy them to a new one - I have a hard drive but it seems to only copy my purchased songs - any ideas?

    I have over 1000 songs on an old computer and I want to copy them to a new one - I have a hard drive but it seems to only copy my purchased songs - any ideas?

    Hi Le Etta,
    Welcome to Apple Support Communities!
    Take a look at the article below, it provides details and instructions for multiple ways of moving the music from an old computer to a new one.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Method
    Considerations
    Home Sharing
    The easiest option, as long as your new computer is already connected to the Internet.
    External drive
    Requires additional hardware but backs up your iTunes library.
    Transferring purchases
    Fastest, but only moves the content you purchased from the iTunes Store. Also requires an iPhone, iPad, or iPod with the content on it.
    Windows Migration Assistant
    Works best for migrating from an old PC to a new Mac, and transfers more than iTunes.
    -Jason

  • I loaded Mac OS X v10.7 Lion yesterday. Everything's running fine, except for a simple problem. Any time I want to copy a file, JPEG, etc., I am prompted "Finder wants to make changes. Type your password to allow this." I don't want this!! Is there a way

    I loaded Mac OS X v10.7 Lion yesterday. Everything’s running fine, except for a simple problem. Any time I want to copy a file, JPEG, etc., I am prompted “Finder wants to make changes. Type your password to allow this.” I don’t want this!! Is there a way to unlock “Finder” or rid this process?

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. You can demote it back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • How to disable "Are you sure you want to copy this file without its properties?"

    copying from NFTS to Fat32 I get a prompt
    "Are you sure you want to copy this file without its properties?"
    the answer (for me) is always yes
    is there a way to disable the prompt ?

    This may be caused by the presence of NTFS Alternate Data Stream which cannot be copied to FAT32.
    Either format destination as NTFS or use utility like 
    http://www.nirsoft.net/utils/alternate_data_streams.html
    to scan/delete the ADS before copy. From the link above, below are some examples of when an ADS might be created
    1. Favorites of Internet Explorer: When You add a Web site link into your 'Favorites', a .url file containing the url and description is created. However, if the Web site also have an icon (favicon), the icon is saved as alternate stream for the same url file.
    The stream name of the icon is :favicon:$DATA
    2. Downloaded files of Internet Explorer: When you download and save a file with Internet Explorer, it automatically add a zone information for the saved file. This zone information is used for identifying the file as downloaded file from the Internet. The
    stream name in this case is :Zone.Identifier:$DATA
    3. Summary information of files: When you right-click on a file in Explorer and go to the 'Summary' tab, you can add summary information for the file, like title, subject, author, and so on. This summary information is also saved into alternate stream. The
    stream name in this case is SummaryInformation:$DATA.
    In addition to the legitimate usage of alternate streams, this technique may also be used by Viruses/Trojans/Spywares for saving data and hiding it from the user.
    In the case of files downloaded from the internet you could also try the methods in the link below to remove the zone identifier
    http://www.howtogeek.com/70012/what-causes-the-file-downloaded-from-the-internet-warning-and-how-can-i-easily-remove-it/

  • I have a new pc. If I copy the Itunes folder from my old pc onto my new one in the music folder will I be able to sync just as if it were the old one? This is from a Widows Vista machine to Windows 7.

    If I copy the Itunes folder from my old pc onto my new one in the music folder will I be able to sync just as if it were the old one? This is from a Widows Vista machine to Windows 7.

    I suspect design rather than a bug, it's too useful. The behaviour seems to have been consistent for quite a long time on both Windows and Mac machines...
    Here are the typical layouts for the iTunes folders:
    In the layout above right, with the media folder (everything in the red box) inside the library folder, the library will be portable. A portable library can be moved from one path to another, or even between Windows & Mac computers, without breaking the links between the library and the media, and being self-contained is much easier to backup (You do backup, don't you?). Anything that isn't stored inside the media folder must stay put or be restored to precisely the same path on a new machine or iTunes won't know where to find it. Within the media folder the relative paths from the library to the media remain unchanged and iTunes can cope even when the absolute paths are updated.
    Should your library not be in the usual layout I've written some general posts on how to make a split library portable or I can give specific instructions on request.
    tt2

  • Hey guys, how can i password protect my files in external hard drive? I want to access those files both from mac and windows PC!

    Hey guys, how can i password protect my files in external hard drive? I want to access those files both from mac and windows PC!

    If you want a cross-platform solution that doesn't require the use of third-party software, use an external drive with hardware encryption. The device will have either a physical key or a numeric keypad. I don't have a specific recommendation.

  • I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    Move iTunes from PC to MAC, http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • Lightroom 6 is up and running.  Upgraded from LR5.  However I want to change the file name to be more generic, e.g., description in LR5 references LR5 and I want to change that to just John G's LR Catalog/Library.lrcat.  How can I accomplish this without

    Lightroom 6 is up and running.  Upgraded from LR5.  However I want to change the file name to be more generic, e.g., description in LR5 references LR5 and I want to change that to just John G's LR Catalog/Library.lrcat.  How can I accomplish this without fouling everything up?

    Ok, well you'll need to do something like this. Now this part is a little dependent on your database server:
           try {
                Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                Connection c = DriverManager.getConnection(
                                                           "jdbc:mysql://{database-server}/{database-name}:3306?user={username}&password={password}");
                Statement Stmt = c.createStatement();
                int count = Stmt.executeUpdate(cmd);
                if(count>0) {
                     System.out.println("count: " + count);
            } catch (Exception e) {
                e.printStackTrace();
        }That was some sample code for a MySQL database.
    Note that the applet can only contact the server that is was loaded from, so you might want to do a getCodeBase() or something like that to get the server address.
    Hope this is helpful.

  • HT204022 How will i delete photos I have copied into a folder from my PC to my iphone that are not part of My Photo Stream?

    Good evening everyone I need your help. How will i remove photos in an album i have copied into a folder from my PC to my iphone that are not part of My Photo Stream? tnx
    cutebraveheart

    See  >  To delete photos from your device

  • I can't import photos from a card, file or anything.  I get "could not copy a file to the requested location"..  This has never happened before.

    I can't import photos from a card, file or anything.  I get "could not copy a file to the requested location".  I have never had this happen before.  I use a MacBook Pro

    I also have the exact same issue.  New IMac, installed LR, imported approximately 900 photos no problem, across the network from a Windows PC.   The import stopped when the network connection was lost.   Now I cannot import for the same reason "could not copy a file to the requested location".  I have plenty of disk space and i have permission to the needed folders.   I cannot even import from a folder already on the IMac.   

Maybe you are looking for

  • How do i use my songs on itunes as ringtones.

    i want a diffrent tone for diffrent people i used the rmaker app did all the steps and it only accepts one song and non of the other ones . undersound there is only one listed  and even under the contacts them selfs i cant find the songs i used  some

  • Can't remove Criteria box under find - Mavericks, CC

    I am trying to organize a large number of files using Bridge and keywords. it was working just fine when I would right click on a keyword and find that way. I typed a search term in the search box in the top right corner. Now when I right click a key

  • TextField background

    I have a Dreamweaver form that contains a table that contains 4 Spry Text fields. I can't seem to get the backgound color of the input textfield when the page first comes up to be anything but yellow. I think it's FFFF99, I've tried changing every ba

  • Glitchy and extremely poor performance with Red footage in AE on 16 core machine

    Hello, I have set up a new Windows 7 workstation for AE CS6 based on: - ASUS Z9PE-D8 WS with dual Xeons, - 64Gb. of RAM - Nvidia Quadro K5000 (also tried my older Quadro 4000 with no difference in results) - Nvidia GTX 680 (mainly for DaVinci) - BMD

  • Function module for location

    hi, i need two function modules to perform this actions the functionality is it has to take input as locid(22) and extract locid(32)  or locno. 1) input location id (22) output loaction id (32) 2) input location id (22) output location no. points wil