English 中文(简体)
Vb.net exe 双点击时有效,但由 jcl 运行时不有效
原标题:Vb.net exe that works when double clicked, but not when run by jcl

我有一个 VB. net 应用程序, 它会导入一个名为 资源_ NAMEOFEXE. txt 的文件, 当我的流读器只将“ 资源_ NAMEOFEXE. txt” 当作它所假设的本地位置, 并且当用户运行时正确读取文件 。

然后我尝试了运行一个 jcl 工作, 该工作本应运行程序执行程序无法自动找到本地路径 。 于是我尝试了将本地路径硬编码到 exe 本身, 并同时运行 jcl 和 用户正确运行导入的程序 。 注意 : jcl 在主机上, Exe 在服务器上 。

  //SFARENAM EXEC P2CUCMD                                          
  //SCRIPT   DD *                                                  
  "\<serverName>$APPLE	estAndRename.exe"     
  /*                                                               
  //UCMDOPT  DD DISP=SHR,DSN=IC.D2C.UCMDOPT.FILE(UZAO0001)         
//SYSIN    DD *                                                  
 -s       SCRIPT                                                 
   -host    <servername>                        
 -userid  <userid>                                      
 -script  SCRIPT                                                 
 -x       UCMDOPT                                                
 /*                                                               
//SYSOUT   DD  SYSOUT=*                                          
 //SYSPRINT DD  SYSOUT=*                                          
 //   

也可能是 JCL 问题, 或者我应该以特别的方式格式化 vb. net 位置, 要求本地的 exe 位置 。

问题回答

在调用 .exe 文件时尝试使用本地路径, 而不是网络路径 。

例如,取代:

\serverName$APPLE	estAndRename.exe

使用 :

C:somethingsomewhere	estAndRename.exe




相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签