How to call operating system(windows) functions like sutdown,refresh,et

Hello,
I am new in Oracle D2k.I want to know that how to call windows XP/7 shell commands(operating system functions) or windows function key(like F5 for system refresh in windows xp/7) in an Oracle Form.
Actually I have to make a trigger which can fire at pressing a particular key and execute appropriate action of Windows7 like shutdown,F5(function key of windows to system refresh).
thank you
regards
aaditya.

Just for future reference, regardless if you are posting in the Forms area of the forum or any other, terms like Forms 11g, Oracle 11g, etc are parts of product names. They are not version numbers although they do offer a slight hint. It is very important that when posting you include the complete version number of any products related to the problem or question you have. For example, you said you are using Oracle Forms 11g. Look at how many possible versions "Forms 11g" could possibly be:
11.1.1.1
11.1.1.2
11.1.1.3
11.1.1.4
11.1.1.6
11.1.2.0
11.1.2.1
With each new patch release and major release, a large number of bug fixes are included. In the case of new major releases, in addition to bug fixes, many new features are added. So knowing the version number is important.
Beyond that, it would appear that you have many questions:
1. How to copy and paste
2. How to execute a system shutdown
3. How to force the browser into full screen mode
4. Refresh - this one is unclear. What do you mean by "refresh"?
Let me answer those that I can:
<blockquote>o Functions like cut/copy/paste are available directly from your Forms code. For these I would recommend referring to the Builder's Online Help. Look for CUT_REGION, COPY_REGION, PASTE_REGION. It might also be helpful to understand SELECT_ALL. For example you may want to code a Copy button like this:
GO_ITEM('some_text_field);
SELECT_ALL;
COPY_REGION;o To execute a system shutdown on the client machine, you would first need to WebUtil enable your form. Refer to the Forms Builder Online Help for information about how to use WebUtil. You can also find lots of information in this forum about WebUtil. Once enabled, you can execute a Windows shutdown in various ways. Here one option:
Declare
     my_cmd varchar2(255);
Begin
     my_cmd := 'cmd /c start "" "' || '"shutdown -s -f -t 1"' || '"';
     WEBUTIL_HOST.HOST (my_cmd);
End;Refer to the Microsoft documentation for more information: http://technet.microsoft.com/en-us/library/bb491003.aspx
o I'm not sure what you are attempting to do with the F11. I understand that this function key sets the browser to full screen, but the form will not exactly adjust for this change in browser size. You can adjust the applet size dynamically, but not the form. For that you would need to code the behavior yourself. So, before I can offer something specific, it would be helpful to understand what you expectation is and if what you want is to set the browser to full screen, why not just allow the end user to do it? You could easily have a java script popup displayed before the form starts which might say something like "To maximize your browser, press F11"
o Finally, "refresh". I don't know what you mean here. Refresh what? The Windows desktop, browser, Oracle Forms.....
</blockquote>

Similar Messages

  • How to call Operating System commands / external programs from within APEX

    Hi,
    Can someone please suggest how to call Operating Systems commands / external programs from within APEX?
    E.g. say I need to run a SQL script on a particular database. SQL script, database name, userid & password everything is available in a table in Oracle. I want to build a utility in APEX where by when I click a button APEX should run the following
    c:\oracle\bin\sqlplusw.exe userud/password@database @script_name.sql
    Any pointers will be greatly appreciated.
    Thanks & Regards,

    Hi Guys,
    I have reviewed the option of using scheduler and javascript and they do satisfy my requirements PARTIALLY. Any calls to operating system commands through these features will be made on the server where APEX is installed.
    However, here what I am looking at is to call operating systems programs on client machine. For example in my APEX application I have constructed the following strings of commands that needs to be run to execute a change request.
    sqlplusw.exe user/password@database @script1.sql
    sqlplusw.exe user/password@database @script2.sql
    sqlplusw.exe user/password@database @script3.sql
    sqlplusw.exe user/password@database @script4.sql
    What I want is to have a button/link on the APEX screen along with these lines so that when I click that link/button this entire line of command gets executed in the same way it would get executed if I copy and paste this command in the command window of windows.
    Believe me, if I am able to achieve what I intend to do, it is going to save a lot of our DBAs time and effort.
    Any help will be greatly appreciated.
    Thanks & Regards,

  • How to copy operating system windows 8.1 on DVD

    Just bought factory refurbished HP Envy Phoenix 810-160. There is no operating system CD included, in case I need to reinstall it. I heard I can have an option to do one time only this copy, but I notice there is Recovery Image (D: ) drive almost full (1.16 GB free og 9.95 GB). Is that means I do not have an option to this copy on DVD?
    Please include detailed steps how to do this, I will appreciate any help!

    Hi:
    You should have an option to create recovery media using the recovery manager program.
    Please read this guide for how to create recovery media for your PC.
    http://support.hp.com/us-en/document/c03481733

  • How to call operating system commands?

    Can we call OS commands from JAVA?
    I am trying to call lpr/lp commands from JAVA.
    Can anybody guide me where to search for this information.
    Thanks in advance
    Srini

    Thanks for you all for this information. I will try this....Your information greatly helped me to go forward...

  • The up down arrows on the side of my Hotmail email list do not function, nor does clicking the space above and below the slider bar. These functions work in all other cases. It began with Firefox 3.6 upgrade. Firefox version: 3.6 Operating system: Windows

    The up down arrows on the side of my Hotmail email list do not function, nor does clicking the space above and below the slider bar. These functions work in all other cases. It began with Firefox 3.6 upgrade.
    Firefox version: 3.6 Operating system: Windows XP
    == This happened ==
    Every time Firefox opened
    == After upgrade to Firefox 3.6

    See https://bugzilla.mozilla.org/show_bug.cgi?id=511075 - The arrows of the scrollbars don´t work in hotmail
    Should be fixed in the next release Firefox 3.6.4

  • Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...)

    ''duplicate of https://support.mozilla.com/en-US/questions/905881''
    Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...)

    Hi Kossa,
    You can also check if the issue occurs in
    Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
    Besides, uninstall it and re-download
    a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
    If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
    J
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
    regarding this product's performance or reliability.
    Regards,
    Linda

  • Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...) Thanks,

    Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...) Thanks,

    Hi O_H_I_O,
    Have you got an error code ?
    Considering it is a brand new machine ,please update the machines .To get a better performance of the machines ,we should always keep it up to date .
    There is a possibility that the DVD/CD-ROm drives driver is old or has corrupted .Please open the device manager , update or reinstall the driver to have a check.
    Apart from this ,we can run the built-in tool to a diagnostic :
    Control Panel\All Control Panel Items\Troubleshooting\All Categories\Hardware and Devices
    We also can run the following fixit tool to have a check.
    Fix problems with CD or DVD drives that can’t read or write media
    http://support.microsoft.com/mats/cd_dvd_drive_problems
    Best regards

  • Operating System(Windows 7) got corrupted ..!

    Hi all,
    Can someone please help me with my laptop issue ???
    My Laptop Details :
    Product name         :  HP Pavilion dv6 Notebook PC
    Operating System :  Windows 7 Home Premium
    RAM                             :  6GB
    Processor                  :  Intel(R) Core(TM) i3 CPU [email protected](2400MHz)
    Purchase                   :  Decemeber, 2010.
    My Laptop problem :
    My HP-laptop got infected with "virus" ( it says like found 38 virus).
    And because of this virus attack , I was NOT able to open any application , for example say if i try to open "notepad" - then throws a message like " unable to open notepad application, though infected with virus".
    So with this , i can confirm that my laptop was NOT allowing me to open anything because infected with virus.
    Now i have 2 options to go further :
    1) Remove virus , using antivirus removal software ( This i don't have , so NOT attempting to use)
    2) Recover thru recovery option.
    When i purchased this laptop , the laptop contains recovery partition within the laptop , so it's a built-in option.
    Though i was NOT interested to keep that recovery partition in my laptop, I just burned recovery manager into 7 DVDs, and then deleted the partition.
    With this my laptop contains drives like :
     C: drive --> this contains OS related stuff
    D: drive --> this contains my general stuff like songs , movies , etc
    System drive --> 199MB ( not sure what thid contains )
    Now coming to original problem/issue -
    I have planned to use recovery DVDs , to recover to factory state.
    Started with 1st DVD , it went upto 18% and then asked me to insert 2nd DVD.. and this went upto 30%.. now again asked me to insert 3rd DVD.
    With 3rd DVD.. it went upto 40% , and then stopped responding. Nearly I've waited for about 3 hrs.. but NO use.. it's still hanged at 40% only.
    So with 3rd DVD , it got hanged or stopped.
    My doubt - not sure whether my 3rd DVD got corrupted or not , but i don't think so.. because 3rd DVD worked for atleast 10%..
    Finally , I was struck here...
    Not sure what's my next step
    Please help me what I have to do now, like  what steps to take... etc
    How to recover?
    Thanks
    Kiran

    Hi,
    Lets start with your providing the complete product name or product number. 
    HP has produced and brought to market perhaps more than 10,000 models of notebooks and desktop PCs over the years. It is difficult to help you if we don't know which one you own and which operating system is installed.
    Method #1: If the notebook will boot into Windows you can retrieve your Product Number by pressing Fn + Esc key. You can also read the Service Tag (if present) attached to the bottom of your notebook\netbook.
    Method #2:
    Remove the battery and look in the compartment where the battery was installed. You should see a printed part number and a product name. Please post one or both of them (with all alphanumeric characters here). If you live outside of North America, it helps us if you post the country of purchase.
    Were you using an antivirus product (free or paid) when this issue happened?
    What was the brand and product name of the Antivirus product?
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • How to get Operating systems Install Directory in Java

    Hey Friends
    I have a problem of getting to know Operating System Install directory in java for my application requriment.Can any body tell me how to know this or send me snippet of code
    THANKS

    Thanks for ur reply but i need to know the Operating System Install directory like c:\Windows & not the jre install directory.Your solution gives the jre installation dir.
    Any suggestions ?
    Thanks & Regards

  • Toshiba Satellite A505 - Operating system windows 7

    Toshiba Satellite A505 - Operating system windows 7
    1) Unable to get the main part of my touch pad to respond to tapping.  In the control panel we made sure that tapping and tap zone was enable.  Someone said to hold fn & f9 simultaneously but it still doesn't let me tap on the larger main part of touch pad. 
    2) When trying to turn up volume by + sign it makes a alarm sound (PC beep) and as soon as I let go it goes back to where it was.  When using icon in system tray it does the same thing (alarm sounds (PC beep)  and it automatically goes back all the way down). Even going into control panel >sound>speaker >properties to turn up volume does the same thing.  Any help with these two problems would be greatly appreciated.

    ok number 1, try going to ''device manager'' which is found by typing it into the white box when you press the start windows button in the far bottom left corner, the find the device that controls your touchpad... e.g (smart pad etc), it should be easy to find under ''mice and other pointing devices'' then id like you to ''disable'' the device, ignore any messages, and then wait a few seconds, and go back and ''enable'' it, then restart, this should resolve the problem, otherwise its a case that it is damaged, or needs updated drivers or re installing, but try that first...
    Number 2, this is an ongoing problem, and should only last for a few mins until it fixes, if the problem is more serious try this: go to the speaker icon, and right click, then click, ''playback devices'' then the tabs at the top? you see one called ''communications'' well, click that tab, and change the setting to ''do nothing'' see if that resolves it. if not i obviously have more complex solutions, im just giving you thr most common fixes.

  • Product: HP Pavillion dv5 Operating System: Windows 7 64-bit Problem: Smart Hard Disk Error

    Product: HP Pavillion dv5
    Operating System: Windows 7 64-bit  
    Problem: Smart Hard Disk Error  
    Disk Name: WDC WD3200BEKT-60V5T1
    How do I fix this error?

    Hi,
    If you're starting to get Smart warnings, it's probably best to think about replacing the Hard Drive - at the very least, make sure you have a current back-up of all your personal files etc in case the drive fails suddenly.
    If you'd like a guide on replacing the Hard Drive, please post back with the full Model No. and Product No. of the notebook ( from the service tag underneath your notebook ) - see Here for a further explanation.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Opening an operating system window from Forms

    An old feature from SQL*Forms was that you could open an Operating System Window by pressing a function key (or combination of keys)
    I think this is still available in Oracle Forms 10g, but I can't remember which function key to press.
    Can anyone help? I know that the function keys can vary across systems, so that I'm looking for is the default key (or keystrokes). I don't think it matters which versions of software are being used, but in case it does, the setup is:
    Oracle Forms: 10gR2
    Client PC: Windows XP
    Client Browser: Internet Expolorer 6
    Application Server: 10GR2 on Windows Server 2003
    Database Server: 10gR2 on Windows Server 2003
    The database has the ORAFORMS$OSC role granted to PUBLIC, and the "<OSC>" flag is showing in the Forms Console.
    Control-K gives a list of the function keys, but doesn't list anything for opening a DOS window:
    As far as I know, frmweb.res has not been altered, but it doesn't list an option for opening an OS window anyway.
    This is not about the HOST command.
    Thanks, Martin

    Hi michaeltowse,
    This is indeed something more complicated. Let me give you
    some details about the project:
    This project is to be initially created in Adobe Captivate.
    It consists of the main menu that is to be created in Flash (menu
    1); sub-menus, which are to be created in Captivate (menu 2); and
    menus of sub-menus, which are to be created in Captivate as well
    (menu 3). Now, the part where I need help on is the part that goes
    from sub-menus (menu 2) to menus of sub-menus (menu 3). When any
    option is to be selected from the sub-menu (menu 2), a new window
    is suppose to pop-up (menu 3) that is suppose to be in Flash. This
    new window is suppose to be a new Flash window and is not suppose
    to be opened in a browser, but it's suppose to be opened in another
    Flash window (SWF window). This whole entire project is to be
    executed via an embedded Flash executable. Thus all the .SWF files
    that were created in either Captivate or Flash are to be tied
    together via a Flash executable. I was told in Captivate's Forum
    that this may be done via ActionScript in Flash and I'm wondering
    whether that is that case. Please tell me if my project makes
    sense.
    Thank you.

  • Is it possible to call operating system command after file receive?

    Hi expert,
    I'm trying to call operating system command after file receive comm.channel receive a txt file.
    operating system command uses txt file name as parameter.
    Is it possible? How?
    Thanks.

    Hi,
    It should be possible, actually we have two options that are
    1.RUN OS command before message processing
    2.RUN OS command after message processing.
    So you can give the commands in the RUN OS command after message processing.
    Check this links for more info
    http://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/content.htm
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1690747750DB11724434094963199241End?blog=/pub/wlg/10392
    Regards
    Ramesh

  • Calling Operating System Commands from PL/SQL using java

    Calling Operating System Commands from PL/SQL - The Java Way
    wlth help of given thread link,
    Calling OS Commands from Plsql
    but i had user privilege problem
    Declare
    x Varchar2(2000);
    Begin
    x := OSCommand_Run('/tmp/sri/GROUP_ho.sh');
    DBMS_OUTPUT.Put_Line(x);
    End;
    o/p;
    can't exec: /tmp/sri/GROUP_ho.sh lacks user privilege
    i done the grant privillage also
    part
    dbms_java.grant_permission('abcd', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    dbms_java.grant_permission('abcd', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    dbms_java.grant_permission('
    abcd', 'SYS:java.io.FilePermission','<<ALL FILES>>', 'execute');
    again
    get
    can't exec: /tmp/sri/GROUP_ho.sh lacks user privilege
    same error;

    Process management at the OS level should prevent execution continuing in the calling code until the command has completed (either successfully or with error).
    If the low level java code were to spawn child process threads then execution could continue, but I'm guessing the Java function your talking about doesn't do that and just calls the operating system to execute the command and waits for the returning code to come back.

  • Updated Wikibook: How To Backup Operating Systems

    I have updated my wikibook How To Backup Operating Systems to include a method for ext4 using the new FSArchiver, and also made it both GRUB v1 and v2 friendly, among other changes.  This guide is fairly newbie-friendly and is designed to help take some of the stress out of system updates and reinstallations by providing a reliable and easy system backup/restore solution.  It covers multi-OS systems including Windows.   It also contains a section "How The Computer Boots - The MBR Explained" that is good reading if you don't understand the boot process.
    http://en.wikibooks.org/wiki/How_To_Bac … ng_Systems
    And a PDF version for printing...
    http://en.wikibooks.org/w/index.php?tit … &writer=rl
    Last edited by IgnorantGuru (2010-01-13 18:40:50)

    Hi Leonardo,
    I hope I understood your problem right and I hope that this link will be of help: http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html
    With best regards,
    Barna Biro

Maybe you are looking for

  • While logged into Firefox my alpha key stroke shows as a number instead of a letter; Any suggestions?

    When I try to enter a website address into the search bar my letters are appearing as numbers-.in other words I cannot type letters only numbers! Please help! This has never happened to me before. This same thing happens when I use Internet Explorer.

  • Image color in jpeg doesn't match backround color in web page

    I made a simple panel in photoshop and used the #number for the color selected to fill one side of the panel in my CSS code. When the page is rendered there's a very slight difference between the panel and the background which I expect to be exactly

  • Oracle DB Connect and Dates

    Hello From what I have read, reading dates from a table connected via dbconnect is not easy. OSS recommends that you create a view in the source system with a character mask on the date fields as Oracle stores dates in a unique way. In my situation I

  • Interlace-like banding in ACR6.1 vs. ACR4.6

    I am experiencing interlace-like banding when sharpening images with ACR 6.1. This may be a phenomenon which occurred sometime between ACR 4.6 and ACR 6.1, but I made the jump directly from CS3 to CS5 and so I would not be able to narrow it down any

  • No "trackpad" tab in Bootcamp 2.1 control panel

    I want to enable "tap to click" for the trackpad but there is no Trackpad tab in the bootcamp control panel. I see only Startup Disk, Brightness, Remote, Keyboard, and Power. My system is Macbook4,1 early 2008, winxp pro sp3. All bootcamp drivers are