Filenames shortened from host dir command

forms 6 - client server -
If I do the following in DOS:
C:\Develop\test>dir
Volume in drive C has no label.
Volume Serial Number is A487-950B
Directory of C:\Develop\test
14/12/2006  13:18    <DIR>          .
14/12/2006  13:18    <DIR>          ..
14/12/2006  12:16                 0 test2_long_name.txt
14/12/2006  12:15                 0 text1_long_name.txt
               2 File(s)              0 bytes
               2 Dir(s)  70,448,463,872 bytes free
C:\Develop\test>dir /b >C:\ALLFILES.TXT
C:\Develop\test>type C:\ALLFILES.TXT
test2_long_name.txt
text1_long_name.txtbut from within a form:
host('dir /b '||:CONTROL.LOAD_DIR ||'> C:\ALLFILES.TMP',NO_SCREEN);produces a file containing
TEST2_~1.TXT
TEXT1_~1.TXT
Is there any way of accessing the full filenames from a Form?

The following works...
host('CMD.EXE /C dir /b '||:CONTROL.LOAD_DIR ||'> C:\ALLFILES.TMP',NO_SCREEN);Thank you!

Similar Messages

  • Host OS command line call from dbs procedure

    Hi
    I am using Win2000 server and 8i, I want to execute a host os command in the middle of a database procedure but do not know how.
    I did a search here and did not find anything.
    Any help greatfully received.
    cheers
    Tony

    You just did search hard enough :)
    Host commands

  • Short filenames on NT ; Host('xcopy')

    Is ther a way I can tell NT to use the full long filename when doing a copy from a forms 4.5 PL/SQL block using the HOST command on NT4 ORACLE7 ?.
    null

    I finally did it! I donn't really understand why it didn't work the first time, yet here's how it works.
    PROCEDURE compile_forms_fs IS
    cmdstr varchar2(500);
    x_file text_io.file_type;
    x_module varchar2(200);
    x_output varchar2(200);
    n number;
    BEGIN
    x_file:=text_io.fopen(:blocu.source_path&#0124; &#0124;'list.bat', 'W');
    din directorul curent
    cmdstr:='dir '&#0124; &#0124;:blocu.source_path&#0124; &#0124;'*.fmb /b > '&#0124; &#0124;
    :blocu.source_path&#0124; &#0124;'forms_l.txt';
    text_io.put(x_file, cmdstr);
    text_io.fclose(x_file);
    host(:blocu.source_path&#0124; &#0124;'list.bat', no_screen); -- this gets the .fmb files list
    -- why didn't the direct host('dir...') work?
    x_file:=text_io.fopen(:blocu.source_path&#0124; &#0124;'forms_l.txt', 'R');
    loop
    begin
    text_io.get_line(x_file, x_module);
    :blocu.dsp_file:='Compilez '&#0124; &#0124;x_module;
    synchronize;
    exception
    when others then exit ; -- nu mai are ce citi din fisier
    end;
    begin
    compile_1form(x_module);
    exception
    when others then null;
    end;
    end loop;
    text_io.fclose(x_file);
    END;

  • Cannot ping for either from host to guest nor from guest to host

    Hi I have installed virtual box 4.1.20 r80170
    my host os is centos 6.3 64 bit
    my guest os is oracle linux 5.8 64 bit
    I've using bridge adapter for the network settings, but I'm neither able to ping
    from host to guest
    from guest to host
    may I know what's wrong?
    how should I trouble shoot this?
    my host os network configurations is as follow:
    [oracle@localhost ~]$ /sbin/ifconfig
    eth0 Link encap:Ethernet HWaddr E8:E0:B7:D2:F9:54
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:20 Memory:c4800000-c4820000
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:3488 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3488 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:320590 (313.0 KiB) TX bytes:320590 (313.0 KiB)
    wlan0 Link encap:Ethernet HWaddr 9C:B7:0D:96:F4:DF
    inet addr:192.168.0.199 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::9eb7:dff:fe96:f4df/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:22932 errors:0 dropped:0 overruns:0 frame:0
    TX packets:22068 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:15525818 (14.8 MiB) TX bytes:5127595 (4.8 MiB)
    I'm using wlan0 on the host os
    my eth0 configurations on the guest os is as follow:
    #Intel Corporation 82540EM Gigabit Ethernet Controller
    DEVICE=etho0
    BOOTPROTO=static
    HWADDR:08:00:27:08:19:50
    ONBOOT:yes
    DHCPHOSTNAME=source.localdomain
    IPADDR=192.168.0.11
    NETMASK-192.168.0.1
    TYPE=Ethernet
    USERCTRL=no
    IPV6INIT=no
    PEERDNS=yes
    I've a router to connect to the Internet. It is dlink DIR-615
    I've done a dmesg while pinging from guest to host here's the partial output:
    spurious NAK ON isa0060/serio0
    some program might be trying to acces hardware directly
    e100:eth0 NIC link is up 1000 Mbp
    Full Duplex, Flow Control: RX
    ADDRCONF (NETDEV_UP) eth0: link is not ready
    ADDRCONF (NETDEV_CHANGE): eth0 becomes ready
    eth0: no IPv6 routes present
    Any assistance is deeply appreciated!
    thanks a lot!
    Edited by: oraclewannabe2 on Aug 25, 2012 11:28 AM
    Edited by: oraclewannabe2 on Aug 25, 2012 12:10 PM

    Hi ,
    This is OL 6.
    Now,after doing guestadditions this is working fine altough I am not sure what exactly guest addition is.
    Additionally,I installed firefox in same VM but when I click on firefox then nothing comes up.
    Best regards,
    Vishal

  • How to configure host copy command inside EM Console

    hi,
    I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
    ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
    Any solution for this
    Edited by: mithun on Jun 16, 2011 2:36 AM

    mithun wrote:
    hi,
    I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
    ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
    Any solution for this
    Edited by: mithun on Jun 16, 2011 2:36 AMThis makes no sense whatsoever.
    Now, as for your original question, there is not "host copy" command. Not in sqlpus, not in em.
    What you are doing in sqlplus is the sqlplus command "host". That is a sqlplus command, documented in the SQLPlus Reference. The sqlplus command "host" takes an argument of an os command (in your case, the OS command is "copy") and creates a sub-process to ask the os to execute that command.
    I can't even imagine what you are referring to when you say "when i configure host copy command inside em console". Can you explain in more detail?

  • Ways to run dir command in Process and get Output

    Hello,
    In one of the control in our web application, User can select any directory from his work area and can get list of directories and content of directories i.e. list of files. As working on file object is really slow so the performance is extremely poor. I am thinking of using Process object and run dir command for any directory selected by user and show the directory listing to user.
    Do you guys think it would be possible

    Its always good to work with IO buffer than low level file api. That should be irrelevant to the question as asked (if not then there might be other problems.)This is no way irrelevant but its a fact. Working with Java File api to traverse the content of the directory is really painful. Because we currently use file api to help user to traverse thru her work area.
    BTW, there are two servers. One running the app and the other have all users work areas. User can traverse the workareas content by using something \\server1\workarea1\user1\folder1 etc... in the app to see the content of any folder.A "server" in this context would be an "application" such as something like tomcat. Your client would then ask the "server" for information.
    In your case you are dealing with another file system via the windows remote file system access. So per my question it is not another "server".A server is what providing service to a client and in our case its a app server with a web app in it. The users use the web app to manage their work area(which is another file server).
    The app server and file server and physically two separate machines.
    So again, I am back to my first question, how can run dir command using Process object and get the buffer.
    Till now, I have done this
    ProcessBuilder pb = new ProcessBuilder("cmd", "dir", "c:/");
            pb.directory( new File("C:/temp")); // Or whatever directory you want for cwd
            Map<String,String> env = pb.environment();
            env.put("PATH", "C:/temp");
            try {
                 Process process = pb.start();
                   InputStream inStream = process.getInputStream();
                   new AsyncPipe(process.getErrorStream(), System.out).start();
                 new AsyncPipe(process.getInputStream(), System.out).start();
                 final int returnCode = process.waitFor();
                 System.out.println("Return code is " + returnCode);
                   System.out.println("\nExit value = " + inStream + "\n");
              } catch (Exception e) {
                   e.printStackTrace();
              }However it simply opens command prompt

  • Getting output from an OS command from an ABAP program

    Hi Folks!
    I have a requirement, is it possible to call an operating system command, and also get its output back to the ABAP program that has called it?
    For example, from an ABAP program calling the "dir" command from Windows and getting back (as a string) the directory listing to the ABAP program?
    Thanx in advance!
    Juan.

    This is will help you
    << Moderator message - links removed >>
    Please do not post a list of links. This simply encourages laziness. The OP could have found these with a little work.
    Edited by: Rob Burbank on Dec 13, 2010 9:19 AM

  • Unable to run reports from the unix command line

    hi
    all of a sudden i am unable to run reports ( on App server 10g) either from the unix scripts or from the unix command line. But i can run them from the forms.
    Any one have any idead about this.
    Thank you

    thanks all for replying
    i have set the env variables for the session and it worked. Looks like i have to set the oracle_home and ld_library_path every time ( opening a new putty session) i call sqlldr.
    But in a whole i am trying to run sql loader from the forms. Right now we have Oracle app server 10g which forms 10g version. As oracle app server 10g didnt come with sqlldr, we are copied the sqlldr of database on to app server with different home. after this we can run sqlldr ( on app server ) from unix scripts but not from Forms. Then we opened a qurey with oracle about app server 10g not commig with sqlldr and its remedy . But they said that they dont have specific remedy for that and suggested the same what we did.
    So we came up with java package which does the same funtion as host command and trying to run sqlldr which is on the database( ie replacing the host command in the forms with the database funtion). By using that funtion i am able to run the sqlldr from sql plus but not from forms. I couldnt easily debug it as i wont through any error messages.
    Any one have any idea of this ...
    Thank you

  • How to execute program from any dir?

    For example javadoc.exe is in D:\jdk1.3\bin.
    And I need to execute it from current dir.

    If you are running a Javadoc from DOS or the WinNT command shell, the proper command is
    D:\JDK1.3\BIN\JAVADOC.EXE <params>
    If you want to avoid typing this each time, type the following at the command prompt:
    PATH=%PATH%;D:\JDK1.3\BIN
    The command JAVADOC.EXE will then function without specifying the directory. The proper action is normally to add the JDK to your PATH environment variable when installing it.
    In Windows 2000, you can modify your PATH variable by right-clicking My Computer and selecting the Advanced tab followed by the Environment Variables button. It is usually best to edit the PATH in the System Variables section to ensure that all users on your system receive the updated PATH variable.
    In Windows 95/98, I -think- that the appropriate action is to open your AUTOEXEC.BAT file and locate the last line that says PATH=<stuff>. Add the following to that:
    Old: PATH=C:\ADIR;C:\ANOTHER
    New: PATH=C:\ADIR;C:\ANOTHER;C:\JDK1.3\BIN
    I think this is appropriate for Win 95/98, but I'm not sure. Correct me if I'm wrong.
    Good luck!

  • Dir command returns wrong file names.

    The dir command appears to be returning a file name that is incorrect. I execute the following command and get the shown output:
    D:>dir Ind*
     Volume in drive D is Data Disk 1
     Volume Serial Number is ****-****
     Directory of D:\Users\<username>\Documents\Personal\Financial\Fidelity
    12/24/2013  01:26 PM            81,597 Investment Report 2013-04.pdf
    10/04/2007  10:35 AM            59,763 Individual 2006-12.pdf
    04/20/2007  07:44 PM            63,284 Individual 2007-02.pdf
    04/20/2007  07:43 PM            63,658 Individual 2007-03.pdf
    10/04/2007  10:41 AM            64,591 Individual 2007-04.pdf
    10/04/2007  10:42 AM            66,608 Individual 2007-06.pdf
    [snip]
    02/12/2012  11:47 PM            78,289 Individual 2011-10.pdf
    02/12/2012  11:47 PM            70,901 Individual 2011-11.pdf
    02/12/2012  11:48 PM            78,773 Individual 2011-12.pdf
                  60 File(s)      4,327,003 bytes
                   0 Dir(s)  381,563,613,184 bytes free
    Tried searching the forum but didn't find this. Is this a known issue?
    John

    Without some care, it seems that that can cause some very unexpected results in batch files if you use wildcards to process files.
    This is correct. You can suppress the generation of 8.3 file names with this command
    fsutil behavior set disable8dot3 1
    or check what the parameters mean like so:
    fsutil behavior set disable8dot3 /?
    The command will affect newly created files only. Existing files will retain their 8.3 names unless you remove them with this command:
    fsutil  8dot3name  strip  FolderName
    Your file retained its unexpected 8.3 name most likely from an early name that started with "ind".

  • RFC-connection error: DETAIL: no connect of TP sapdb02 from host u0085 after 20

    Hello!
    I face with problem to set up successfully a RFC-connection from SOLMAN to the satellite system.
    The network connection here is VPN.
    The following error appears, when I execute the connetion test:
    Error: Timeout during allocate
    LOCATION: SAP-Gateway on host …/sapgw03
    DETAIL: no connect of TP sapdb02 from host … after 20 sec.
    COMPONENT: SAP-Gateway
    Has some one any ideas how to solve this problem?
    Thank you very much!
    regards
    Thom

    Hi,
    Did u get this issue sorted out.
    Let me know if you did mate..
    I think its some thing to do firewall port..
    Thanks
    James

  • We have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc. from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when

    Hello All,
    we have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc.
    from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when we are trying to access the share folder with IP it asking for credentials i have type again and again
    correct credential but unable to access that. If i re-share the folder then we are access it but when we are restarted the system then same problem is occurring.
    I have checked IP,DNS,Gateway and more each & everything is well.
    Pls suggest us.
    Pankaj Kumar

    Hi,
    According to your description, my understanding is that the same shared folder can be accessed by name, but can’t be accessed be IP address and asks for credentials.
    Please try to enable the option below on the device which has shared folder:
    Besides, check the Advanced Shring settings of shared folder and confrim that if there is any limitation settings.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • ODI - Error when Executing a Scenario from an OS Command

    I am developing a project with ODI on Oracle 10g, but I have had some troubles with it.
    Problem:
    I have a scenario that I run from the Designer and it works correctly.
    But, the problem is when I want to run it from a terminal command from an Operating System (OS).
    For this, I did the following steps:
    1.-Configure file odiparams.bat file from the path C: \ OraHome_1 \ oracledi \bin as follows:
    set ODI_SECU_DRIVER=oracle.jdbc.driver.OracleDriver
    set ODI_SECU_URL=jdbc:oracle:thin:@192.168.1.114:1521:orcle
    set ODI_SECU_USER=ODI_REPMSTR
    set ODI_SECU_ENCODED_PASS=eyfpRSdWr9N5rARKkCmCNMVrEp
    set ODI_SECU_WORK_REP=ODI_REPWORK
    set ODI_USER=SUPERVISOR
    set ODI_ENCODED_PASS=LELKIELGLJMDLKMGHEHJDBGBGFDGGH
    2.- Launching a Listener Agent
    Start\All programs\Oracle\Oracle Data Integrator\Agent
    3.- Run the next command:
    startscen ACT_ETL_CGA 001 GLOBAL -NAME=AGENT_1 "-v=5"
    But, at the end of the execution, it shows one list like that
    FirstDate:2010-03-01 17:10:24.0
    FirstUser:SUNOPSIS_INSTALL
    IndChange:I
    IntJavaName:com.sunopsis.dwg.dbobj.SnpState
    IObjects:4700
    LastDate:2010-03-01 17:10:24.0
    LastUser:SUNOPSIS_INSTALL
    ObjName:OBJ_SNPSTATE_4700
    SecuPos:570, ExtVersion:null
    And last:
    java.lang.NullPointerException
    DwgJv.main: Salida. Código de retorno:-1
    Can you please help.
    Thanks.
    Arturo Rubio

    Hello,
    Try to remove and recreate your package and scenario, I had the same issue and solved doing it.
    It seems for me that the package cannot update its contents, for example, if you change something in your interface, you must recreate your package and scenario to update the changes.
    What ODI version do you use? If you use an old version, try to update to ODI 10.1.3.5
    Regards,
    Wallace Galvão
    São Paulo - Brazil

  • Could not complete the new 3D extrusion from selected layer command because the path is too complex.

    I was trying to do a photo of mine like in this video but its not working help needed. thanks.
    http://www.youtube.com/watch?v=egyLY78H7nE
    When I tried the 3D I got an error message that said (could not complete the new 3D extrusion from selected layer command because the path is too complex.) what does this mean and how can i fix it?

    There was a bug at one time where really simple paths (like a triangle, for example) could cause that error.
    Is your path really simple (I don't plan to go watch the video)?  If so, have you installed the latest update for Photoshop?  That bug may have been fixed already.
    If it's not that, it's possible that if your path is really complex and simply exceeding Photoshop's capability.
    -Noel

  • How to store data from Host.vi in cRIO-9074

    TejasKumar Patel
    I implemented a advance Measurement and Control system using cRIO-9074
    with c-Series I/O cards( NI 9217, 9411, 9264)
    I have some questions about it,
    (1)- Data rate from FPGA targate to host vi is too low. how can I increase
    it, when I run my host VI, sometimes all temperature sensor update at
    same time and sometimes one by one, can you please give me some hint, how
    can I correct it, I used two FIFOs for NI-9411 digital pulses, I put all
    Digital input and all analog output and input in a seperate while loop in
    FPGA targate VI.
    (2)- I have to write that data to analyse for further result. I tried all
    possible way to write data including wite to spreadsheet.vi, write to
    text.vi, Data storage.vi, Write to measurement.vi. All this VI work
    efficientlywhen it run individualy, But when I connect this VI to
    writedata from FPGA host VI. than it always give empty file.
    I saw your post in NI discussion forum about how to write data from
    Host.vi, But still I am confuse that how can I creat a protocol between
    host VI and Fpga target vi. to write the data in a file. I have nearabout
    38 channel to write data.
    (3)- I have to measure time difference between two digital pulses, to find
    a flow rate. I am using counter for it with risisng edge shot.vi, but when
    i get a timestemp when there is risisng edge for the second rising edge
    how can I get timestemp. Its like i have to measure time between two
    pulses, I triend waveform measurement.vi to find cycle period. but it not
    worked. any other was to measure it.
    I am stuck in this question since from last one month. I already followed
    NI-discussion forum solution but it doesnt work. I think the way I applied
    is may be wrong. 
    Looking forward to hear from you soon.
    Plese send an additional email copy to [email protected]
    Thank you and Best Regards, 

    Thanks Joseph for your support,
    1-      If I count the ticks between the pulses it always seems different ….because this method I already tried, but it does not work,  like some times it shows 9099 tick and at the second pulse it shows like some more or less ticks not the same ticks every time. To complete my project, the biggest problem is the data storage.
    2-      As you gives the solution in NI forum, “low level file I/O Vis such as Write to text file” FPGA target not support this VI. And mainly I want to write data from HOST.vi, because I am process those data …and I need to store it. For to figure out my result.
    3-      If I use “Write to text file. VI (Sub-VI ) to FPGA.vi, it not support because it support string data and I have FIXpoint data. And can you explain me what is low level file IO, and how can I use in fpga.vi??
    4-      Yes, for my project time stamp it really necessary, for data analysis.
    5-      I need the time stamp to find out what was the system response at the time.  As our project based on weather temperature, I need time stamp.
    Waiting for your reply,
    Thanks and Regards,
    Patel

Maybe you are looking for

  • How to use a managed bean in a bounded task flow without definig it in adfc-config

    Dear all I create a bounded task flow without page fragments (the pages are jspx), i created a jspx page with a button that its action has bounded to a managed bean function. i defined the managed bean on the corresponding bounded task flow, but it d

  • MIGO - NDR print indicator default to unchecked

    We would like to default the 'print' box in MIGO to always be unchecked when a user goes into the transaction.  There will be times when the user will check the box to print a label; however this will not be often.  Today, if a user checks the box, b

  • Total actual cost for a given PM Order

    hello all, how do i get total actual cost for a given PM order (in IW33 under cost tab we have total actual cost).. is stored in table or do i need to use any function module..... thanks in advance....

  • Networking PC's to MAC

    From my MAC, I can see the networked PC,s and all info on them. However, when I try to see the MAC from a PC, It asks for a username and password. I have entered every username on the MAC, and combinations of passwords, and it always comes back "inco

  • Download Won't Start

    Hello, I am having trouble installing photoshop cs6 with the creativecloud installer. When I start the installation it will run for a few seconds and then give the error message: Please connect to internet, then try again. I am connected to the inter