How to capture input from a command prompt / batch

Stics Post in Batches, windowz,Tags: ,
0

Write the following in a batch file and say the input was “andreas”:

@echo off
echo == Capture Input ===
set server=192.168.1.12
SET /P Choice=Type your Username and press Enter:
echo Logging on to %server% with %choice%...

Output:

Logging on to 192.168.1.12 with andreas…

How to automate a commit/update with Tortoise SVN using a batch file

Stics Post in Batches, windowz,Tags: ,
0

Your SVN project should already be checked out. Enter the following in a batch file (.bat):

@echo off
echo.
echo. [ SVN Committer ]
:: The two lines below should be changed to suit your system.
set SOURCE=C:\projects\my_svn_project\
set SVN=C:\Program Files\TortoiseSVN\bin
echo.
echo. Committing %SOURCE% to SVN...
"%SVN%\TortoiseProc.exe" /command:commit /path:"%SOURCE%" /closeonend:0
echo. done.
echo.
echo. Operation complete.
@echo off
echo.
echo. [ SVN Updater ]
:: The SOURCEj below should be already set to fit your system.
echo. Updating %SOURCE%\ from SVN...
"%SVN%\TortoiseProc.exe" /command:update /path:"%SOURCE%\" /closeonend:2
echo.        done.

Note:
/closeonend:0 = bring up the dialog so you can select what files to commit
/closeonend:2 = omit the dialog and proceed with the operation

 

How to login with Windows Telnet automatically using vbs

Stics Post in Batches, windowz,Tags: ,
0

Enter the following script and save it as a .vbs file:

Set obj = CreateObject("WScript.Shell")
obj.run"cmd"
WScript.Sleep 500

obj.SendKeys"telnet your.ip.add.ress"
obj.SendKeys("{Enter}")
WScript.Sleep 500

obj.SendKeys"username"  'telnet username
obj.SendKeys("{Enter}")
WScript.Sleep 500

obj.SendKeys"password"  'telnet password
obj.SendKeys("{Enter}")
WScript.Sleep 500

Total Commander vs Windows Explorer

Stics Post in total commander, utilities, windowz
0

How would the typical Windows Explorer compare to alternative file manager Total Commander:

 Total Commander  Windows Explorer

  1.  Two pane window view
  2. Instant view of source and destination and no scrolling via a tree-view or loose any open path
  3. Full Keyboard and/or mouse operation
  4. Other of the basic function keys shown at the bottom, there is a full array of key combinations that suit all operations that TC can do. You can even set custom combinations for specific commands including parameters! New folder would just be key F7.
  5. Internal Viewer (F4) for text, images or other types of files depending on added plugins.
  6. Internal FTP/SFTP or URL connection directly from within TC.
  7. Internal Zip/Unzip or Unrar archiving function (with password), other types can be added
  8. Read linux, vmdk and other types of partitions
  9. File/folder synchronization, by date or contents
  10. Directly execute command-line commands from within TC
  11. Run command prompt from within a directory
  12. Multi/single file path name copy to clipboard
  13. File content comparison
  14. Multiple file renaming
  15. Tool and menu bar customization
  16. Extended find with many options
    |
  17. much, MUCH MORE POSSIBILITIES !.
  1.  Left tree, right window view
  2. Easy to miss a selection from tree-view or miss-place a file
  3. Limited keyboard + mouse operation
    |
  4. Mostly Alt + some other key would dome some operations but not even close to what TC has to offer. The easiest way to create a folder via keyboard would be Alt, Alt + F, W, F. Limited customizations.
    |
  5. No such function, use of Open With or third-party tool
  6. No such function, client setup or use of third-party tool
  7. Only zip/unzip support, use of third-party tool for other types
    |
  8. No such support, use of third-party tool for other types
  9. No or limited functionality
  10. No such function
  11. No such function, need to tweak or third-party tool
  12. No such function (or copy/paste single path)
  13. No such function
  14. No such function
  15. No or limited functionality
  16. Limited typical find, third-party tool to match TC’s functionality
  17. limited, no possibilities….

How to change the Look and Feel of Oracle Forms 11g

Stics Post in oracle, oracle forms,Tags: ,
0

C:\Oracle\Middleware\user_projects\domains\<domain_name>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg

[sepwin]
...
lookandfeel=Generic

[webutil]
...
lookAndFeel=windows

The change is instant, no need to reload the services.

How to install Oracle Application Express 4.1 with Database XE 11.2g

Stics Post in database, oracle, oracle forms,Tags: ,
0

Download and install Oracle Database XE 11.2g

Download Oracle Application Express 4.1 (APEX)

Tip: In case you get an ORA-12560 error, your database listener has not started.
Either start it by running “c:\oraclexe\app\oracle\product\11.2.0\server\bin\StartDB.bat” or use  the “Start DB” shortcut from the start menu.

Connect as SYS to the database console

conn sys/passw as sysdba

Run the following sql command to setup APEX

 @c:\apex\apexins myapp myapp  temp /i/
exit

How to set forms 11g buttons to display icons

Stics Post in oracle, oracle forms,Tags: ,
0

Simple way

Copy your images to:

c:\Oracle\Middleware\as_1\forms\java\

Notes:
- Icon files may not be supported.
- In case of a Java security issue when using gif images, you will need to create a jar file and sign it with oracles sign-tool (see below, point 4).

Recommended way More »

How to configure a Weblogic 11g VM if moved or copied

Stics Post in oracle, oracle forms,Tags: ,
0

When you move or copy a WebLogic 11g environment setup as a VM from one host PC to another, you will encounter various IP connection problems (may also be needed if you have problems debugging forms). To help make a quick fix to this problem, try this:

1. Make sure you have the following files set with your machine’s new IP:

edit C:\Oracle\Middleware\user_projects\domains\<domain_name>\servers\WLS_FORMS\
data\nodemanager\startup.properties
AdminURL=http\://<ip-address_of_pc>\:7001

C:\Oracle\Middleware\asinst_1\config\OPMN\opmn\instance.properties
adminHost=<ip-address_of_pc>

C:\Oracle\Middleware\user_projects\domains\<domain_name>\config\config.xml
//replace ip.address for every occurrence found (~ 7)

2. Restart the machine/server

3. Start the Node Manager
Tip: tail the log file to see whether the ip-address is the correct one being used
C:\Oracle\Middleware\user_projects\domains\<domain_name>\servers\AdminServer\logs\AdminServer.log

4. Start the em “http://localhost:7001/em” to further configure the server to start forms and reports services.

5. Start the Administration Console (Weblogic Domain > select your domain > from Weblogic Domain menu select “Weblogic Administration Console” or enter the url: http://192.168.139.128:7001/console)

6. from the Change Center click on “Lock & Edit”

7. from the Domain Structure pane > Environment > Servers > click on Control tab

8. select WLS_FORMS and WLS_REPORTS > click Start to start the services

9. make sure after you start Forms Builder that “Application Server URL” in Runtime tab of Preferences is set to what your new ip-address is (i.e. http://192.168.139.128:9001/forms/frmservlet)

 

How to set PL/SQL Developer or TOAD to use a different oracle instance

Stics Post in database, oracle, windowz,Tags: ,
0

Whether you have an oracle home setup or not:

* copy/setup PL/SQL Developer or TOAD to your system
* copy/setup Oracle Instantclient to your system
* add a System PATH Variable for Instantclient i.e.

c:\users\oracle\instantclient

-if this is a 2nd instance add it after 1st instance:
c:\Oracle\Middleware\as_1\bin;c:\users\oracle\instantclient

* Run PL/SQL Developer or TOAD and configure to use the new instance and tns names

PLSQL: Tools > Preferences > set oracle_home and oracle_oci dll paths
TOAD: If set correctly, it will find the new instance

Note: recommended to use the same tnsnames.ora path for all applications

 

How to tail log, trc, etc. files on Windows

Stics Post in utilities, windowz,Tags: ,
0

Find a “tail” cmd-line program like “tail-f” or “WinTail” (gui) and load to your c:\ path.
I’ve been using tail for windows by TriSun Software Inc. and does the job fine and its FREE!

Typical usage:

c:\tail.exe -f c:\myfile.log #log the whole file
c:\tail -f -10 myfile.log #log the last 10 lines of the file

You can also pump the last 10 lines of one file into another one:

c:\tail -10 "c:\myfile.log" > c:\myfile_10.log