Encryption through bat file.
dear all,
I want to call a *.bat file ( created in Java ) in mm ABAP program to encrypt the file for Bank use.
Can anyone plz help me in this, will RFC help in this? the file is located at local drive in PC.
May be you can try these FM.
Use the following FM to encrypt
CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
Use the following FM to decrypt
CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
******Reward points,if found useful
Similar Messages
-
Encryption through bat file in SAP
dear all,
I want to call a *.bat file ( created in Java ) in mm ABAP program to encrypt the file for Bank use.
Can anyone plz help me in this, will RFC help in this? the file is located at local drive in PC.
how to give Input and Output file parameters??Hi,
You can use SM69 to define your command and run this command using MF SXPG_COMMAND_EXECUTE. But this can works if you upload the file on the server.
Regards -
set /p SName=Server Name :
set /p UName=User Name :
set /p Pwd=Password :
set /p DbName=Database Name :
Can i set permanently or one time above details in batch file instead of given again and again while we execute the batch file to execute the DB scriptsDid you try using sqlcmd? You can pass credentials and execute the sql file.
for example
C:\Program Files\Microsoft SQL Server\100\Tools\Binn>SQLCMD.EXE -S hqdbsp18 -i " C:\TestCmd.sql" -d "master" -U xyz -P abcd1234
http://technet.microsoft.com/en-us/library/ms165702(v=sql.105).aspx
--Prashanth -
Package giving error when executed through bat file
The packages successfully execute in SQL Server Data Tools but when I use DTEXEC to execute it gives me the following error:
"To run a SSIS package outside of SQL Server Data Tools you must install Send Mail Task of Integration Services or higher .
I tried 5 different packages and all of them showed similar error except the send mail task is replaced by different other tasks of those packages.Go to start-> run
Type Services.msc. It will launch services window.
Check for a service named SQL Server Integration Services with or without version number. If its present it means SSIS is installed. Also make sure its started and is in running state.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Reg: call procedure in bat file.
Hi Friends
i have created procedure in my oracle database.
now i want to call this procedure through Bat file.
and my procedure is like PROC_VALIDATION(FILENAME IN VARCHAR2(50));
my procedure passing parameter also.
please help.Is this what you are looking for?
SQL> create table test (no integer);
Table created.
SQL> create or replace procedure p(val in integer)
2 as
3 begin
4 insert into test(no) values (val);
5 commit;
6 end;
7 /
Procedure created.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:>type c:\test.bat
set hostvar=%1
echo conn karthick/*****@*****
echo exec p ^^^(%hostvar%^^^)
) | sqlplus -s /nolog
C:>c:\test.bat 1
C:>set hostvar=1
C:>(
echo conn karthick/*****@*****
echo exec p ^(1^)
) | sqlplus -s /nolog
PL/SQL procedure successfully completed.
C:>sqlplus karthick/*****@*****
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Nov 27 16:35:54 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from test;
NO
1
SQL> -
Launch Java app through a bat file
Hi,
Because I have to launch my Java App through a batch file, I don't know if I can create a new java class to execute this bat file to launch my Java App? Is that gonna work?
Henry.Yes I created a batch file and tested. If I execute my batch file, the java app will be lauched as expected.
Here is my java class that execute my batch file
import java.io.*;
public class LaunchTest {
public static void main(String args[])
String cmd[] = new String[3];
try
String osName = System.getProperty("os.name" );
//System will detect current operating system
if( osName.equals( "Windows NT" ) || osName.equals( "Windows 2000" ) )
cmd[0] = "cmd.exe" ;
cmd[1] = "/C";
cmd[2] = "c:\\Run.bat"; //Run.bat will set classpath and launch my java app
else if( osName.equals( "Windows 95" ) || osName.equals( "Windows 98" ) )
cmd[0] = "command.exe" ;
cmd[1] = "/C";
cmd[2] = "c:\\Run.bat";//Run.bat will set classpath and launch my java app
Runtime rt = Runtime.getRuntime();
//running the commands
Process proc = rt.exec(cmd);
// any error message?
StreamGobbler errorGobbler = new
StreamGobbler(proc.getErrorStream(), "ERROR");
// kick them off
errorGobbler.start();
// any error???
int exitVal = proc.waitFor();
catch (Throwable t)
t.printStackTrace();
System.out.println("error...");
And here is my batch file
@echo off
set path=e:\jbuilder4\jdk1.3\bin
set classpath=E:\JBuilder4\jdom-b7\jdom-b7\build\jdom.jar;E:\JBuilder4\jdom-b7\jdom-b7\lib\xerces.jar;.
d:
cd AutoTest\classes
java FirmwareTestPack.FirmwareMainClass
exit
When I run the java class above, Dos prompt popped up for a second then disappeared. It did not launch my Firmware pplication.
Thank you. -
Process .bat files through the terminal Window?
Hi,
I have a large number of .bat file which have been generated from Rendering out of Maya (3D Application) on PC.
Usually I would process the bat files from within maya's script editor which would generate the Photoshop images.
The down side is it ties my PC up and I cant really do anything while these are processing .. and it take quiet a while.
I have Mac which doesn't have Maya... does anybody know if I can process .bat files maybe through the terminal window?. Problem is theres well over 10,000 images to process.
If it is possible to do this is there a way I can automate this process from the Terminal for all the files?
Any help would be much appreciated
Thanks
WayneNo problem, Kurt. There are several possible solutions for the OP (who seems to have disappeared!):
You mentioned already running Windows on the Mac. I have found Parallels great, so it should be as simple as setting up his virtual machine, installing his app and copying over the batch files. But he would need to purchase Parallels and have a Windows licence.
Unix has a much more sophisticated range of scripting facilities than the old DOS batch files, and there are free tools that do a lot of graphics processing.
Applescript can be used to control Graphic Converter (amongst others) - but OP refers to rendering, and I don't know if GC can do that (in fact I am fairly sure it can't).
So, to advise wr_uk we really need to know what those bat files are doing!
AK -
Runing a report through a BAT file
Hi,
I'd like to call Report Runtime through a BAT file, indicating the RDF file I want to open and the user-password-host names for the database (so that when the file is executed the report opens without asking to log on).
Does anybody know how to do this?
Thanks--Hi
You can call report by creating short cut for the desired Report runtime, but which is hard coded where in you have to create the short cut for the REP you desired to run. when user double clicks that icons its opens Connect dialogue box.
Other procedure is a bit long, you create a form where in you provide the File-Open dialogue box, so that user can select the desired report, from there you can call the report from Reports
I don't known how are this will meet your requirements
Regrads
Karan
null
---i saw this post
You can call report by creating short cut for the desired Report runtime, but which is hard coded where in you have to create the short cut for the REP you desired to run. when user double clicks that icons its opens Connect dialogue box.
and i want to know how iis it done? -
How to execute .bat file through java?
I already create a batch file to pull & push file. Now, i want to execute this .bat file java.I got this example but it doesnt work. Did i missed something or do we have the better one?
import java.lang.*;
import java.io.*;
public class Loadfile
public static void main(String args[]) throws IOException
Runtime load = Runtime.getRuntime();
r.exec("C:\\pull.bat");
}For Runtime,i'd change it to:
Runtime load = Runtime.getRuntime();
String cmd = "C:\\javaclass\\copytemp.bat";
Process proc = load.exec(cmd.toString());Is it right? But still can't work.
Here is the .bat file:
@echo off
c:
cd "c:\Inetpub\ftproot\Debitin"
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo open localhost
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo Administrator
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo password
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo cd ftpScript
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo binary
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo lcd C:\
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo lcd "C:\Inetpub\ftproot\infile"
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo prompt n
pause
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo mget *.txt::@rem >> C:\Inetpub\ftproot\Logrecord\pullscript.txt echo mdel *.*
C:\Inetpub\ftproot\Logrecord\pullscript.txt echo byeftp.exe -s:C:\Inetpub\ftproot\Logrecord\pullscript.txt
::del C:\Inetpub\ftproot\Logrecord\pullscript.txt
pause
exit
[\code] -
Firefox Does Not Open a Link Pointing to a .bat file on a the network drive on local website
Make and model of network drive?
--HP Priliant DL580 G5
How is you network set up?
--Novell Netware 6.5
What router are you using?
--Cisco router c3825
What are you trying to do with the batch file?
--simple program that launches a batch file that is in the network drive
Interent Explorer shows the following when launching the link.
>File Download-Security Warning
>do you want to run or save this file?
>Name: johndoe.bat
>Type: MS-DOS Batch File, 308 bytes
>From T:\xx\xxxbat
Has this worked in previous versions of FireFox?
>no and it does not work with newer v11.
Whats the issue with using IE if it works from IE?
>we have users that use FF on regular bases and just for a link to switch browser it is not user friendly. all though we are supporting two browsers we do not want to take FF out of network.
Is there a reason you want to use FireFox?
>FF has gained popularity in our agency and it would be best to have this link work on FF as well.
--HERE IS THE CODE--
<td valign="top"><a href="file:///T:/Geosupport Desktop Edition/bat/Goat.bat"
type="application/bat" target="_blank"><img src="../../images/technology/Goat.gif" alt="Goat" width="32" height="28" hspace="4" vspace="2" border="0" align="left"></a>Geosupport On-Line Address Translator, or GOAT, is an interactive Windows application that allows the user to request geographic data through Geosupport function calls. Use of GOAT requires no programming skills and provides valuable information to the casual user.<br>Firefox sees that (at least local or network dive located) .bat files are text and renders them as such. To download it as a .bat file, use save page as, (or Control-S) change "text file" to "all files" and type .bat onto the end of the filename, then hit save. Not ideal I know, but better than nothing.
-
How do I access my encrypted User Account files from my Back Up hard drive? Time Machine was used to create the back up disk; File Vault was used to encrypt the files.
Thanks. I will try going through TM. Since my Simpletech is on the way out, I'll be plugging in a new external hard drive (other than the back-up drive) and trying to restore the library to the new drive. Any advice or warning if this is NOT the right thing to do?
Meanwhile, that is a great tip to do an alternate back-up using a different means. It's been tough to figure out how to "preserve access" to digital images and files for posterity, knowing the hardware will always fail/obsolesce sooner or later, and that "clouds" are only as good as their consistent and reliable accessibility. Upping the odds with redundancy will help dull the edge of my "access anxiety", though logically, it can never relieve it. Will look into
Carbon Copy Cloner. -
Hi,
I am using windows 7 professional(service pack 1) 64 bit operating system.
After installing the odi 12c (enterprise edition) by executing the odi_121200.jar file I am getting the following error while trying to run the ua.bat file.
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [UPGAST-00056] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] error initializing upgrade plug-in for ODI.ODI1
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: An unexpected error occurred initializing an upgrade plug-in.
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: Contact Oracle Support Services. See the secondary error message for additional details.
[2013-10-24T16:49:07.861+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] [[
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at oracle.ias.update.plugin.Plugin.instantiatePlugin(Plugin.java:248)
at oracle.ias.update.plugin.Plugin.<init>(Plugin.java:229)
at oracle.ias.update.plugin.Plugin.getPlugin(Plugin.java:180)
at oracle.ias.update.plan.PlanStep.getPlugin(PlanStep.java:335)
at oracle.ias.update.plan.PlanString.<init>(PlanString.java:66)
at oracle.ias.update.plan.PlanCustom.<init>(PlanCustom.java:74)
at oracle.ias.update.plan.PlanStep.<init>(PlanStep.java:189)
at oracle.ias.update.plan.PlanComponent.<init>(PlanComponent.java:203)
at oracle.ias.update.plan.Template.load(Template.java:161)
at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)
at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)
Caused by: java.util.MissingResourceException: Can't find oracle.ias.update.plugin.odi.bundle.ODIResourceBundle bundle
at java.util.logging.Logger.setupResourceInfo(Logger.java:1518)
at java.util.logging.Logger.<init>(Logger.java:265)
at java.util.logging.Logger.<init>(Logger.java:260)
at oracle.ias.update.UpgradeLogger.<init>(UpgradeLogger.java:60)
at oracle.ias.update.UpgradeLogger.getLogger(UpgradeLogger.java:93)
at oracle.ias.update.LoggingManager.create(LoggingManager.java:249)
at oracle.ias.update.plugin.UpgradePlugin.createPluginLogger(UpgradePlugin.java:195)
at oracle.ias.update.plugin.UpgradePlugin.<init>(UpgradePlugin.java:181)
at oracle.ias.update.plugin.odi.ODIPlugin.<init>(ODIPlugin.java:136)
... 17 more
[2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [UPGAST-00259] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
[2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Cause: An error occurred when loading or initializing the plug-in which prevents the getInitialValue method from executing.
[2013-10-24T16:49:07.869+05:30] [Framework] [ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] Action: Review the log file for additional details.
[2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00251: An error occured reading Upgrade Descriptor file ODI\INSTALLATION\odi12cInstallation_1\odi\plugins\upgrade\odi.xml
[2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] The file does not conform to the expected syntax.
[2013-10-24T16:49:07.870+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] See the secondary message for additional information. Contact Oracle Support.
[2013-10-24T16:49:07.871+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] UPGAST-00259: The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
[2013-10-24T16:49:07.871+05:30] [Framework] [INCIDENT_ERROR] [] [upgrade.Framework] [tid: 1] [ecid: e9250ad8-50dc-45fe-83f5-5c01e7a7dcb4-00000001,0] [[
oracle.ias.update.exception.UpgradeException: UPGAST-00259: The getInitialValue method for plug-in ODI.ODI1 will not be called due to a previous error.
at oracle.ias.update.plugin.Plugin.getInitialValue(Plugin.java:317)
at oracle.ias.update.plan.PlanString.<init>(PlanString.java:67)
at oracle.ias.update.plan.PlanCustom.<init>(PlanCustom.java:74)
at oracle.ias.update.plan.PlanStep.<init>(PlanStep.java:189)
at oracle.ias.update.plan.PlanComponent.<init>(PlanComponent.java:203)
at oracle.ias.update.plan.Template.load(Template.java:161)
at oracle.ias.update.plan.Template.loadAllTemplates(Template.java:102)
at oracle.ias.update.UpgradeDriver.loadConfiguration(UpgradeDriver.java:838)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:257)
at oracle.ias.update.UpgradeDriver.main(UpgradeDriver.java:175)
Thanks and Regards
Sunilok - I think I've got it figured. Appears to be a known issue. You need to apply patch p17073913_121200.
I downloaded that and applied to my Linux version - then re-ran the UA. This time the GUI started and so now I'm going through the upgrade steps.
The patch is generic, so should work for your windows environment too. Good luck. -
Running Oracle startup or shutdown bat file from Java code
I have two bat files for the startup and shutdown of Oracle instance which works fine from the command prompt. But my requirement is to run it through a Java program. Please reply with full Java code. Also mention how I would get the status of the bat files that it is successfully executed or not and if not what is the error.
Your program is working fine, but there is another problem. What's happening now is I have to open the Login screen after the startup of oracle server is complete, but the next line of my program after Runtime.exec is the LoginScreen.show which immediately shows the login screen after executing Runtime.exec and when I am giving the login name and password and press enter, it shows Oracle not available exception, because the startup process is still in progress. I want to stop the execution of my next line of code until and unless my process of Oracle startup is complete.
-
How do I reset the default file association for .bat files on Windows 8.1?
Windows 8.1 allows the user to change the file association for .bat files. I made the mistake of using this facility to change the default file association for .bat files to Notepad++. Now when I attempt to run a .bat file, the script for the .bat
comes up in Notepad++, instead of its being run as an executable file! All my .bat files are now useless. I tried finding a way to change this back to the original executable setting, including deleting Notepad++ from my system, but nothing
has worked.
There are discussions that I found on the Internet about this problem, and the solutions to which I was led have not worked either. Most of the solutions apply to Windows 7 or Vista, but not to Windows 8. There are a few solutions that purport to apply to Windows
8 and 8.1, but they do not work for me.
(Disconcertingly, some of the solutions presented for the problem that apply to Vista or Windows 7 and are dated as early as 2009, so this problem has apparently been around for some time, but Microsoft still keeps .bat files on the Control Panel facility that
enables the change to be made. I cannot see why, but there it remains.)
Can someone please help me change this file association back to the original setting for Windows 8.1? Remember, most if now all the links that address this issue are focused on Windows 7. I need an answer that has been tried and proven to apply to Windows 8.1.
Nothing I have tried works.Hi,
For the issue, we can restore Default File Extension Type Associations through adding the registry entries.
1. Download the .reg file from the following link.
http://www.eightforums.com/attachments/tutorials/8025d1345781188-default-file-associations-restore-windows-8-bat.reg
Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
2. Save the .reg file to your desktop.
3. Double click on the downloaded .reg file to Merge it.
4. If prompted, click on Run, Yes (UAC), Yes, and OK to approve the merge.
5. Sign out and in, or restart the computer to apply.
6. If you are logged in as a standard user and this still does not help, then have the administrator also merge the needed .reg file for the listed file extension or protocol below while logged into their administrator account.
Hope this helps.
Regards,
Kelvin hsu
TechNet Community Support -
We are on BO 11.5.0.0 and using the COM SDK with Visual Basic to run multiple reports (sometimes multiple flavors of the same report) through a bat file.
If we run the reports single-threaded through the bat file, the reports run fine. However, if multiple versions of the bat file start at approximately the same time, we get one of two errors:
91 Object variable or With block variable not set
102 Error during import document -
Here's the part of the code with the problem:
Dim BOapp As busobj.Application
Dim receiveDoc As busobj.Document
Set BOapp = New busobj.Application
BOapp.Interactive = False
BOapp.Logon strUser, strPass, strFromSystem, "Enterprise", False, False
BOapp.Visible = False
Set receiveDoc = BOapp.Documents.OpenFromEnterprise(strFromRep, strFromFolder, boFolder)
receiveDoc.SaveAs (strDocumentPath & strFromRep & ".REP")
Values for the following variables are passed in from the bat file:
strUser
strPass
strFromSystem
strFromRep
strFromFolder
strDocumentPath
If it fails on the OpenFromEnterprise statement, we get the 102 error.
If it fails on the SaveAs statement, we get the 91 error.
Running it through debug hasn't helped, since we are running only one report.
Any thoughts on what could be going wrong?
Thanks in advanceI have tried this running the VB code on my desktop (outside of the bat file) and nothing out of the ordinary occurs. The VB code runs fine with only one occurrence.
I had seen on other posts "ThisDocument" and didn't know if it would be applicable in this situation. I also wasn't sure how it should be used based on the rest of my code. Would "ThisDocument" make a difference?
Thanks again
Maybe you are looking for
-
Can i use a 85 watt charger for my macbook pro that came with an 60 watt charger?
My charger broke a few weeks ago and i ordered another one on amazon and that broke within a week so i'm going to just buy another one from the apple store. But i dont want to wait to order one because i currently cant use my laptop since it died (i
-
Coping files from G5 to Xserve G4 crashes the server
The past week when I copy a large amount of file from my G5 to the Xserve (w/raid) { I am copying files from one raid partition to a new raid partition}. The server will start locking up and everyone that is connected will start getting the beach bal
-
HT5570 How can I verify my apple I'd to download Facebook please help me
how can I verify my Apple ID to download facebook
-
Why is the 3d tab not showing on the top ribbon?
I just started a close for photoshop and they have on their top ribbon "3d" tab why does it not show on mine?
-
Maximum timing in question report
Hi, I'm trying to limit a maximum timing in a question report, but the changes are not saved. I want to limit it, for example, to 10 seconds, but once saved the option is not saved. Once I re-open the question, the 10 seconds don't appear, but appear