Question about calling batch file by using the System Exec+.vi?
Hi
I have a problem about calling batch file. I know that the system exec is equivalent to "run" in Windows. I called the batch file c:\rtxdos\bs\ch0.bat successfully in the "run" but it didn't work in the LabVIEW program. The dos prompt had an error message "Bad command or file name" and it just happen when I call this batch file in LabVIEW. Why?
Bill.
Hi,
Try to set the "working directory" parameter of System exec.vi to the directory where the batch file is located. It may help.
Good luck.
Oleg Chutko.
Similar Messages
-
Question about making PDF files expirable using contnet manager
Hello
I would like to know if I enable users of my website to view PDF files online can I make the PDF files using Content Server to expire once the user logs off from my website and his session end?
Thanks
YoavThat's a fairly general question. Have you read the basic white paper on the product site: http://www.adobe.com/products/contentserver/ ?
-
How to use batch files to send the load from ODC to UCM?
Hello all.
We're trying to do this along this week and, until now, we couldn't figure out how to use batch files containing metada on ODC and commit the output files to UCM.
So these are our specs:
VM 1
ODC - 10gR3
OS - Windows XP 32 bits SP3
DB - Oracle DB 11.2
VM 2
No ODC
UCM 11.1.1.6
OS - Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
We've opened a ticket with Oracle Support to know how we should do this. The number is SR 3-6108348211.
Let me try to explain what we want to do:
1 - we have a batch file with all metadata of many files from UCM
2 - we want to use this file in ODC, so the application will convert the images and commit them to UCM
3 - we should see all these files, their metadata, thumbnails and related content in UCM
4 - this is a batch file example we want to send to ODC:
@Properties LocalData
IdcService=CHECKIN_UNIVERSAL
dRevLabel = 1
primaryFile=/tra/Relatorio_UHPF-03-04-2008-M-RL-EA.pdf
dDocName=TRA_33
dDocTitle=UHPF-03-04-2008-M-RL-EA
dSecurityGroup=MAM_TRA
dDocType=Document
dDocAuthor=luis.neotropical
dInDate=14/05/08
xC_CLASSIFICACAO=EA - Educação Ambiental
xC_DATA=01/04/08
xC_DATAVALIDADE=30/04/08
xC_LOCALIZACAOFISICA=N/D
xC_USUARIO_DEP=LUIS FERNANDO DA CAMARA
xC_TIPO=RL - Relatório
xC_USINA=UHPF - USINA HIDRELÉTRICA PASSO FUNDO
xC_FICHA=MAM - Relatorios Ambientais
xC_IDDOCMAN=TRADocID=157
xC_IDANEXODOCMAN=TRAFileID=33
xC_DESTINOINICIAL=Tractebel
xC_ORIGEM=Neotropical
xC_FORMATODOCUMENTO=Digital
xC_GENERODOCUMENTO=
xC_DOCPRINCIPAL=Sim
@end
<<EOD>>
5 - So, when we use this batch file on ODC, the file (or image) will be converted, all metadata attached and then sent to UCM.
But we don't know how to do the link between ODC and UCM. The Oracle Support says it is necessary to do some customization. In the books I could not find any info about how to do, just generic information or how to use ODC.
Is there a way (without customization) to do that? Can anyone give us a step-by-step guide?
Thanks for all help and guidance.
FernandoWhat is the one-sentence requirement or issue you're trying to solve?
If you only want content to be converted to pdf, then you should already have that with your items checked into UCM (if you have IBR enabled).
if you really want to feed content into ODC using a batchfile, my first thought would be to create a transformation utility/app that will convert your batchfiles to the expected ODC import server folder job format. then you'll have to move or map the content to match.
Again, without knowing the exact issue/business requirement you're trying to work through, I'd say a redesign of your ingestion process may be in order.
If you feed content directly into ODC through any supported ODC method (watch folder, email, scanner, fax, etc), then you'll be able to use everything ootb as you'll be able to auto-commit directly into UCM or add an indexing step and manual commit to UCM.
ODC is basically a front end for indexing and extra ingestion options to your content repo.
IPM is basically the same, but it includes some extra process-related details (process metadata, process integrations/bpel/bpm, other system integrations/ebs/crm, etc). I don't feel that IPM would help with the transformation-specific question you've put out there.
-ryan -
Hi ,
We are using OBIEE 10G
and I need to transfer folder from one machine to another machine(both are windows) so I have written a dos command (batch file). Now I need to call this batch file from IBOT ,how I can do this. any suggestion pls.Hi ,
U can use a javascript to call the batch file and attach the script to your IBOT :
For example :
<html><head><script type="text/javascript">function runApp(st) { WshShell = new ActiveXObject("WScript.Shell"); WshShell.Run (st,1,false);}</script></head><body><!-- Two ways to create a link to run the app. --><font onClick="runApp('file://c:/winnt/notepad.exe');" style="cursor: hand;"><u>Notepad</u></font><br><!-- Or use <a> descriptor -->Batch File</body></html> -
Get File Information using the Document ID in Javascript
I store in a custom list the Document Id of a linked document. I need to retrieve some metadata - at least the filename - of that document. I have tried using the Search REST API specifying something like "DocID:INGX1-2-26" in my search query,
but nothing is returned, nothing found.
Is there any other way to get the file info when all I have is the Document ID? In the managed code, I could use the Microsoft.Office.DocumentManagement.dll which provides a way to get the file info using the DocId, but this is not available in Javascript.
Any ideas?
thanks.Hi,
As a workaround, we can create a custom web service with the Microsoft.Office.DocumentManagement.dll, then you can call the web service using JavaScript.
Here are some links about Building and Consuming Custom WCF Services hosted in SharePoint for your reference:
http://nikpatel.net/2012/02/29/step-by-step-building-custom-wcf-services-hosted-in-sharepoint-part-i/
http://www.c-sharpcorner.com/uploadfile/sridhar_subra/consuming-wcf-asmx-rest-service-using-jquery/
http://leonidius2010.wordpress.com/2011/05/06/custom-web-service-for-sharepoint-an-easy-way/
Thanks
Patrick Liang
Forum Support
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
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support -
I have this massage every time close ps cc
Could not save Preferences because the file is locked, you do not have necessary access permissions, or another program is using the file. Use the ‘Get Info’ command in the Finder to ensure the file is unlocked and you have permission to access the file. If the problem persists, save the document to a different file or duplicate it in the Finder.You may get better help in Photoshop General Discussion
The Cloud forum is not about using individual programs
The Cloud forum is about the Cloud as a delivery & install process
If you will start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll
If FINDER means Mac, read below (and try to give more information when asking a question)
Mac 10.9.3 workaround https://forums.adobe.com/thread/1489922
Enable Mac Root User https://forums.adobe.com/thread/1156604
-more Root User http://forums.adobe.com/thread/879931
-and more root user http://forums.adobe.com/thread/940869?tstart=0 -
How we can create the batch file to download the data in from URL in ssis
hi,
any one help on one the below requirement.
i have to create one batch file to download the report(reports is in csv format) from URL...
requirement should be like this...
1. we have some reports is there in the URL..
2.when ever we execute the url, the report should be download and save it to the local folder.
3. this requirement i have to write in the batch file
should any one let me know how we can create the batch file for the above requirement.Hi Priya.N,
If you use SQL Server Reporting Services for reporting, you can use Visakh’s suggestion to create a script file which calls Reporting Services Web Service to render a report in CSV format and save a batch file to the destination folder, and then create a
batch file to run the rs.exe utility which can executes the .rss script file. For more information, please see:
Report Server Web Service
ReportExecutionService.Render Method
rs Utility (rs.exe) (SSRS)
If you use other reporting tools, it depends on the reporting functionality and this requirement may be not achieved.
Regards,
Mike Yin
TechNet Community Support -
Calling Batch files in PLSQL Procedure
Hi all,
I am working on a PLSQL procedure and having issues when I am trying to call a batch file.
Issue:-
I have a procedure which have to kick off a batch file. And that batch file needs to run in Windows not in Unix box.
Can someone please help me out in providing some samples or anything?
Thanks a lot in advance.Thank you rp0428 and sb92075,
I have tried to create a sample of what I am trying to get and so I have created the following code in a batch file and named as Check.bat:-
@set a=3
@set b=4
@set /a c=%a%+%b%
echo %c%
So based on those links you guys provided I have created an
Scheduler Job:-
BEGIN
DBMS_SCHEDULER.create_job (job_name => 'MYJOB1',
job_type => 'EXECUTABLE', JOB_ACTION => 'c:\Check.bat', enabled => TRUE,comments => 'runs Check.bat' );
END;
And the following Procedure :-
CREATE OR REPLACE PROCEDURE execute_bat_file
IS
BEGIN
DBMS_SCHEDULER.RUN_JOB ('MYJOB1', TRUE);
END execute_bat_file;
And used the following exec command:-
exec execute_bat_file;
I am getting the following error:-
Error starting at line 1 in command:
exec execute_bat_file
Error report:
ORA-27475: "ACTUATE.MYJOB1" must be a job
ORA-06512: at "SYS.DBMS_ISCHED", line 150
ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
ORA-06512: at "ACTUATE.EXECUTE_BAT_FILE", line 4
ORA-06512: at line 1
27475. 00000 - "\"%s.%s\" must be a %s"
*Cause: An object of the wrong type was specified. For example, a table
could have been passed to the drop_job() procedure.
*Action: Reissue a different command applicable to this object type or
reissue the same command using an object of the valid type.
Can you guys please help with this?
Thank you once again -
Execution of a batch file fails if the batch file has a date
Hi All,
I have a batch file which copies files from one folder to another based on the date condition( if the files are modified or created today copy them). Below is my code
set curr_date=%DATE:~4,2%/%DATE:~7,2%/%DATE:~10,4% & XCOPY \\cambosnapp01\FileTransfers\InboundToHomesite\NICB\Entities \\cambosnapp01\Claims\Analytics\NICB\CurrentAlerts/d:%curr_date%
This batch file runs fine if i run it manually, but i want to run this in an ssis package, i am using an execute process task and in the executable i gave the location of this batch file, and if i run the package it fails.However if i just exclude the last
date thing from the batch file and run the below one it runs fine.
set curr_date=%DATE:~4,2%/%DATE:~7,2%/%DATE:~10,4% & XCOPY \\cambosnapp01\FileTransfers\InboundToHomesite\NICB\Entities \\cambosnapp01\Claims\Analytics\NICB\CurrentAlerts/d
But this batch file would copy all the files which i dont need. I only want to copy the new files and thats the reason i use the date in the end but for some reason it fails.
Can someone please help me with any suggestions on this?
Please let me know if you have any questions or if i am still unclear.
ThanksWhat is the error you are getting?
Why don't you want to use the FileSystem task that is parameter driven?
Running the bat file manually vs as a package has a difference.
Do you run it while the package is in development (via SSDT)?
You only gave the bat file, but how did you set your task in SSIS not.
Arthur
MyBlog
Twitter -
Basic question about importing wma files
Hi, I have a basic question about importing wma files. I ripped some cd's on a Mindows computer using Media Player, but now want to copy them to my Mac and use them in iTunes on my Mac. when I use Import in iTunes, nothing happens and I cant even seem to copy them one by one using the Music folder.
Can someone help me?
thanks
eMac Mac OS X (10.4.4)iTunes for Mac doesn't support .wma files.
If you can use a PC to convert them, you can use one of many freeware applications. Google for 'wma to mp3'.
For the Mac there's the shareware program EasyWMA that can convert them.
Hope this helps.
M
17' iMac fp 800 MHz 768 MB RAM Mac OS X (10.3.9) Several ext. HD (backup and data) -
Calling batch file from java Program
I have made the java program in which i have called the batch file.But the problem is this that when i call batch file locally it executes normally but when i try to execute batcvh file from remote machine it doesn't runrather it gives Runtime IO execption.Error123.Can anyone provide me the solution for this?
Not without a lot more information. Like for example how you are trying to execute this remote batch file, the code you are using to do that, what kind of server you have no the remote machine to let you remotely execute code, and so on.
-
Error in while calling a Soap Adapter using the UDF
hi,
i am trying to make a call to Soap Adapter using a UDF.
The code of the UDF is as follows :
InputStream isPayloadStream = null;
AbstractTrace trace= container.getTrace();
String sService="Business Component";
String sChannelName="Soap Channel(Sender)";
SystemAccessor accessor=null;
trace.addInfo("entered UDF");
StringBuffer sb = new StringBuffer(" ");
trace.addInfo("creating the reference file");
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
sb.append("<ns0:MT_123082_UDF xmlns:ns0=\"http//infosys.com/pi/projects/png/n1\">\n");
sb.append("<INTERCHANGECONTRLNOS>" + var1 + "</INTERCHANGECONTRLNOS>");
sb.append("<PGPARTNERID>"var2"</PGPARTNERID>""\n""</ns0:MT_123082_UDF>");
trace.addInfo("trigerring the SOAP channel ");
try{
Channel channel = LookupService.getChannel(sService,sChannelName);
accessor = LookupService.getSystemAccessor(channel);
isPayloadStream = new ByteArrayInputStream((sb.toString()).getBytes());
trace.addInfo("creating the xml payload ");
XmlPayload payload = LookupService.getXmlPayload(isPayloadStream);
Payload result=accessor.call(payload);
catch (Exception e){
trace.addInfo(e.getMessage());
finally{
if ( accessor !=null) {
accessor.close();
return " ";
The above code is throwing an error while end to end testing.
the scenario is such,while graphical mapping a UDF will be used, which will create an Xml payload, and send this payload to another SOAP to file scenario.
The error in the sxmb_moni is: "Error when calling an adapter by using the communication channel CC_123085_UDF_SOAP_OUT (Party: , Service: BC_123082_REMADV_D96A, Object ID: fa9c6ee15efc30c68ec34b08034d87d1) XI AF API call failed. Module exception: 'failed to set up the channel fa9c6ee15efc30c68ec34b08034d87d1'. Cause Exception: 'Channel stopped by administrative task.'."
Please can anyone suggest how this error can be rectified.
regards,
MeenakshiHi,
i have checked the communication channel and the XML. The following error occurs everytime i try to run the scenario.
Error:
Error when calling an adapter by using the communication channel CC_123082_UDFRECEIVER_SOAP_IN (Party: , Service: BC_123082_REMADV_D96A, Object ID: 2a895589066d30d4b2686e9d3a8d4c8d) XI AF API call failed. Module exception: 'SOAP Error'. Cause Exception: 'SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 400 Bad Request'
Please let me know how this error can be resolved.
Regards,
Meenakshi -
Firefox 33 doesn't display a pdf file when using the response object
Firefox 33.0.2 does not display pdf files when using the code below from an asp.net program, which works for previous versions of Firefox, and also works with IE. I'm using the built-in pdf viewer. All of my plugins are disabled.
Dim strPDF As String
strPDF = Session("filname") 'pdf filename
Response.Clear()
Response.ClearHeaders()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.CacheControl = "Private"
Response.AddHeader("Pragma", "no-cache")
Response.AddHeader("Expires", "0")
Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
Response.AddHeader("Content-Disposition", "inline; filename=" + strPDF)
Response.WriteFile(strPDF)
Response.Flush()
Response.Close()
Response.Clear()
Response.End()
Session("filname") = ""Thanks cor-el. You pointed me in the right direction. It appears to me that a reported Firefox 33 bug with the handling of compression (Transfer-Encoding: chunked) is the culprit (https://support.mozilla.org/en-US/questions/1026743). I was able to find a work-around by specifying the file size and buffering. Below is my code, with some code from http://www.codeproject.com/Questions/440054/How-to-Open-any-file-in-new-browser-tab-using-ASP.
Dim strPDF As String
strPDF = Session("filname") 'pdf filename
Dim User As New WebClient()
Dim FileBuffer As [Byte]() = User.DownloadData(strPDF)
If Not (FileBuffer Is Nothing) Then
Response.Clear()
Response.ClearHeaders()
Response.CacheControl = "Private"
Response.AddHeader("Pragma", "no-cache")
Response.AddHeader("Expires", "0")
Response.AddHeader("Cache-Control", "no-store, no-cache, must-revalidate")
Response.ContentType = "application/pdf"
Response.AddHeader("content-length", FileBuffer.Length.ToString())
Response.BinaryWrite(FileBuffer)
Response.Flush()
Response.Close()
Response.Clear()
Response.End()
End If
Session("filname") = "" -
Question about replacing corrupted file in windows 7
hi,
I read in windows 7 bible that if a system file is corrupted , I can replace it with system recovery tool (at command prompt) if I have onother computer with windows 7 installed.
my question is here , if I replace any file with copy the file from computer to dvd and replac it on my computer , does the windows version must be the same for 64 bit or it doesn't a matter.
thanks
johan
h.davidHi,
Yes, the version must be the same. You may be able to get a known good copy of the system file from another computer that is
running the same version of Windows with your computer. For different versions there may be different configuration settings in the files that you operating on which if replaced with the wrong version might cause new issues.
More information regarding How to manually replace a corrupted system file with a known good copy of the file, please check it in the link:Use
the System File Checker tool to repair missing or corrupted system files
Hope this may help
Best regards
Michael
If you have any feedback on our support, please click
here.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Question about multiple class files
I just started learning JAVA a couple of days ago and the first program I wrote had two classes in one file. here is the program :
class fib_num {
public int value;
public boolean is_even;
class Fibonacci {
/** Print the Fibonacci sequence for values < MAX and mark even numbers with an asterick */
private static final int MAX = 50;
private static final String Title = "The Fibonacci sequence for values less than " + MAX + ":";
private static fib_num[] fib = new fib_num[MAX];//This is actually an array of object
//references to objects of the fib_num class
public static void main(String[] args) {
System.out.println(Title);
//We must initialize each element of the array also !!!!
for (int i = 0; i < fib.length; i += 1) {
fib = new fib_num();
int lo = 1, hi = 1;
fib[0].value = lo;
fib[0].is_even = false;
fib[1].value = hi;
fib[1].is_even = false;
for (int i = 2; i < fib.length; i += 1) {
//create the next Fibonacci number and then save the previous Fibonacci number
hi = lo + hi;
lo = hi - lo;
fib.value = hi;
//now indicate if the Fibonacci number is even/odd
if (fib.value % 2 == 0) {
fib.is_even = true;
}else {
fib.is_even = false;
print (fib);
//This method prints an array of Fibonacci numbers
public static void print(fib_num[] array) {
if (array == null || array.length == 0)
throw new IllegalArgumentException();
String mark;
for (int i = 0; array.value < MAX; i += 1) {
if (array.is_even) {
mark = "*";
}else {
mark = "";
System.out.println((i + 1) + ": " + array.value + mark);
I ran the program and everything went fine. But today I started to write another program with two classes. However the file will not compile and I get an error about interfacing or something. here is the program:
Note: it's not nearly complete.
class enumerate {
//print out all permutations of a list of integers
public static final int MAX = 4;
public static int[] initialize(int[] nums) {
for (int i = 0; i < nums.length; i++) {
nums = i + 1;
return nums;
public static void print(int[] nums) {
for (int i = 0; i < nums.length; i++) {
System.out.print(nums);
System.out.println("");
public static void swap (int[] nums, int i, int j) {
int temp = nums;
nums = nums[j];
nums[j] = temp;
public static void main (String[] args) {
int[] list = new int[MAX];
list = initialize(list);
PermutationGenerator x = new PermutationGenerator(5);
// Systematically generate permutations.
import java.math.BigInteger;
public class PermutationGenerator {
private int[] a;
private BigInteger numLeft;
private BigInteger total;
// Constructor. WARNING: Don't make n too large.
// Recall that the number of permutations is n!
// which can be very large, even when n is as small as 20 --
// 20! = 2,432,902,008,176,640,000 and
// 21! is too big to fit into a Java long, which is
// why we use BigInteger instead.
public PermutationGenerator (int n) {
if (n < 1) {
throw new IllegalArgumentException ("Min 1");
a = new int[n];
total = getFactorial (n);
reset ();
// Reset
public void reset () {
for (int i = 0; i < a.length; i++) {
a = i;
numLeft = new BigInteger (total.toString ());
// Return number of permutations not yet generated
public BigInteger getNumLeft () {
return numLeft;
// Return total number of permutations
public BigInteger getTotal () {
return total;
// Are there more permutations?
public boolean hasMore () {
return numLeft.compareTo (BigInteger.ZERO) == 1;
// Compute factorial
private static BigInteger getFactorial (int n) {
BigInteger fact = BigInteger.ONE;
for (int i = n; i > 1; i--) {
fact = fact.multiply (new BigInteger (Integer.toString (i)));
return fact;
// Generate next permutation (algorithm from Rosen p. 284)
public int[] getNext () {
if (numLeft.equals (total)) {
numLeft = numLeft.subtract (BigInteger.ONE);
return a;
int temp;
// Find largest index j with a[j] < a[j+1]
int j = a.length - 2;
while (a[j] > a[j+1]) {
j--;
// Find index k such that a[k] is smallest integer
// greater than a[j] to the right of a[j]
int k = a.length - 1;
while (a[j] > a[k]) {
k--;
// Interchange a[j] and a[k]
temp = a[k];
a[k] = a[j];
a[j] = temp;
// Put tail end of permutation after jth position in increasing order
int r = a.length - 1;
int s = j + 1;
while (r > s) {
temp = a[s];
a[s] = a[r];
a[r] = temp;
r--;
s++;
numLeft = numLeft.subtract (BigInteger.ONE);
return a;
I thought the error had somethin to do with only having one class per .java file since the compiler creates a .class file. But how come my first program had two classes and it was OK. Is it b/c the second class was merely a collection of fields, almost like a simple struct in C?
Any help would be appreciated. ThanksMove the import java.math.BigInteger line to the start of the file.
Use the "[ code ] [ /code ]" tags around your code when you post, it makes reading it a lot easier.
Maybe you are looking for
-
Fun with Formatting/Formulas
I am trying to 'change' a Crystal Report into XML Publisher and am running into some issues. When I create the RTF template in Word (using Template Builder 5.6.2), I am losing the formatting on the first line. This template is using a 'standard' word
-
How to play .dav files in macbook pro?
I have a dvd containing files with extension .dav . It does not play in the macbook. Will appreciate some help!
-
Hi, all How can I see all materials documents, which were held in transaction MIGO. Thx
-
Urgent: Error during Import Metadata for IDoc
Hi We successfully imported the metadata for IDoc from R/3 in Development and Test box and everything worked fine. Now, when we try to import the metadata for IDoc in Production box it gives me an error" Basic type 'IDoc name' does not exist". I we
-
Hi experts How would a client do an adhoc increase using ECM? Kind regards