How to execute a application folder with space
Hi All,
Can any one help to execute the application folder or a file that contains space.
Below I have pated my sample coding:
var myFile=new File("/E/test text/lanch.app");
myFile.exceute();
If I remove the space between "test test", it works perfect.
Request advice.
Thanks,
Christober
Hi,
Run this:
alert (mFolder = Folder.selectDialog());
and notice how "spaced name" is alerted by your OS;
Jarek
Similar Messages
-
How to execute one .exe file with as3 in air ?
Hi
How to execute one .exe file with as3 in air?
I want do this work without fscommand .
plize help me .itsdhanasaraa wrote:
But as this a web application ... By using Runtime i'm getting some probs ..
Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
Ain't gonna happen.
its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
1) it's not "taking more time to execute", whatever that's supposed to mean.
2) there's no other way to execute something. Not that you should every use even that way anyway
3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place. -
How to execute a system command with call executable in teststand 4.2.1?
Hi All,
how to execute a system command with "call executable" step in teststand 4.2.1?
example as i want to quit a application.using "taskkill /f /im xxx.exe".And execute other system command(DOS).
BR
JohnnyHi,
I want to run netstat -an | find "8080" command from command prompt using call executable in test stand. after that i would like take the std output to local variable.
Attachments:
callsettings.jpg 404 KB -
How can I create application folder in home folder?
Hi there,
I'm using MacBook Pro Early 2011 model with Mountain Lion (10.8.5).
I have two questions.
I recently noticed that there was an application folder in my home folder (the folder with your username), but that application folder had been empty. I remember I used to be able to access to my applications from that folder, but not anymore.
Since the folder was empty, I deleted it before doing further research. Does anyone know if this is a bad thing?
After deleting the empty application folder from the home folder, I looked up and some said the application folder in the home folder and the application folder in Macintosh HD are two different folders. I don't know what it means, but I would like to have an application folder with applications in my home folder. Is this possible? or should I just make an Alias folder and put it in my home folder?
Thank you in advance.Thank you for the answer.
I've screwed up my computer before doing some dumb things without asking, so I was a little paranoid. -
How to create a folder with spaces written in Java under Linux?
Hello,
I have a serious problem
I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space
For create the Unix command is easy to do either:
mkdir My\ Folder
or
mkdir "My Folder"
But how to translate this in Java, I tried with two commands :
Runtime.exec("mkdir My\\ Folder")
Runtime.exec("mkdir \"My Folder\"")
For example :
import java.io.IOException;
public class CreerDossier {
public static void main(String[] args) throws IOException {
Runtime runtime = Runtime.getRuntime();
runtime.exec("mkdir My\\ Folder");
runtime.exec("mkdir \"My Folder\"");
But it's still not working,
For runtime.exec("mkdir My\\ Folder") it creates two folders My\ and Folder
For runtime.exec("mkdir \"My Folder\"") it creates also two folders "My and Folder"
Are there solutions?
Thank you !But my real problem is how to apply the chmod 777 on a folder containing spacesSo why not say so in the first place?
Runtime.exec ("chmod 777 My\\ Folder");Runtime.exec(new String[]{"chmod", "777", "My Folder"});
That is why I chose the example of mkdirYour reasoning on this point is incomprehensible. You wanted help with A so you asked about B. Just wasting time. -
How to move Mobile Applications folder while sharing an Itunes library
For reasons that would be long and hard to explain, I decided some times ago to open a second user on my Book Pro dedicated to my music collection. The collection required to be stored on an external HDD, so the second user's Itunes folder links to a folder where all music is stored, and I put it with all library files (xml etc) in the Shared folder. Now I have decided to let the primary and mostly used user to share the same music of the secondary one. I easily succeeded in doing this, just simply opening the primary ITunes and ask it to link to the Itunes folder under the Shared folder. I have got my entire library also from the primary user, with covers and so on.
The trouble is that I use to manage an Iphone with the primary ITunes, and since I have not moved the Mobile Application folder (and what more?) into the shared ITunes folder, I cannot see anymore all data and applications into my IPhone section under ITunes, and I do not want to run experiments, doing a sync and just running the risk to lose all. How can I share the same ITunes library between two users, but to allow one of those still to see the IPhone data that was originally managed only from her ITunes, that now addresses to the ITunes folder under Shared folder that addresses to a HDD?.....Still misspeaking. Further use reveals that while the users iTunes use the shared file, when the phones add new apps their iTunes recreates its iTunes Media directory in the users home folder. This time I can exit iTunes, move the apps to the shared Mobile Applications, delete and empty trash the original apps/ and folder, then the users iTunes will find the app in the shared folder when it restarts. Clearly not very tidy...
-
how can i protect a folder or application in iPad with a password so everytime i want to open it it requires my password?
No way to do so at this time.
-
How do I enter a path with spaces
In creating a special mail alert there is an option to enter a file to execute. If I put the file in my C;/Program Files (86)... it wont execute because of the spaces. How do I enter the path and filename with spaces. YES, I have tried all sorts of "s and they don't seem to work. Can you give an example.
I usually find that if use the offered option to browse to the file using the browser/picker provided, all this is taken care of. Thunderbird will use a technique widely emplyed on the web, where spaces are encoded as %20. Other potentially troublesome characters such as slashes and colons will get similar treatment.
As an aside, 20 is hexadecimal for the decimal value 32, which is the standard value in ASCII and many other encodings for the space character. So %20 is a particular notation that advises that the character with hexadecimal value 20 is to be used.
In general "C:\Program Files\example\example.txt" ought to work too.
But your problem may be specific to the particular context. I have had a long standing issue where I want to send a link to a file on a shared network drive and the link sent via Thunderbird has refused to work as an active link. The recipient generally had to copy and paste the provided pathname. This seems to have resolved itself in a recent update of Thunderbird. If you're using an add-on then the problem may be inherent in that add-on, or in a rather obscure difficulty with giving the Thunderbird process access permission to work with local files. -
How to execute web applications without deploying them?
How can I execute web applications without deploying them (without mentioning them in the server.xml)?
I have an IWS 6.1 SP1 installed with default parameters (JES). I would like that a posix user could execute his own web application without administrator collaboration.
Does it exist some sort of "autodeploy" like in tomcat?
(I know about the invoker mapping in default-web.xml, just I don't realy understand what does it eventuate. I tried to unzip webapps-simple.war in the directory $IWS_SERVER_HOME/webapps/$instance_name/servlet/tmp/
but the http://a.a.tg/servlet/tmp request failed:
javax.servlet.ServletException: WEB2784: Wrapper cannot find servlet class tmp or a class it depends on
----- Root Cause -----
java.lang.ClassNotFoundException: tmp
How can I solve this? Users should have write permission to the directories in the classpath to put their servlet.class files into? Bad idea...
(I tried to "execute" the $IWS_SERVER_HOME/plugins/java/samples/webapps/simple/webapps-simple.war)
(Sorry for my language skills)Do as many of the rest of us do, until this behavior is changed (if ever). Eport your WEb gallery to your Hd and use an FTP client, there are so many, including Drreamweaver's, and Shareware ones, and upload just the relevant files/folders. Some can even check and do this for you.
Don
Don Ricklin, MacBook 1.83Ghz Duo 2 Core running 10.4.10 & Win XP, Pentax *ist D
http://donricklin.blogspot.com/ -
I am currently doing a project which requires the execution of Solaris applications through the use of Java Servlet with this Runtime method - Runtime.getRuntime.exec()
This means that if the client PC tries to access the servlet in the server PC, an application is supposed to be executed and launched on the server PC itself. Actually, the servlet part is not an issue as the main problem is the executing of applications in different platforms which is a big headache.
When I tried running this program on a Windows 2000 machine, it works perfectly fine. However, when I tried it on a Solaris machine, nothing happens. And I mean nothing... no errors, no nothing. I really don't know what's wrong.
Here's the code.
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Process process; Runtime runtime = Runtime.getRuntime();
String com= "sh /opt/home/acrobat/";
String program = request.getParameter("program");
try
process = runtime.exec(com);
catch (Exception e)
out.println(e);
It works under Windows when com = "c:\winnt\system32\notepad.exe"
When under Solaris, I have tried everything possible. For example, the launching of the application acrobat.
com = "/opt/home/acrobat"
com = "sh /opt/home/acrobat"I have also tried reading in the process and then printing it out. It doesn't work either. It only works when excuting commands like 'ls'
BufferedReader read = new BufferedReader(new InputStreamReader(process.getInputStream()));Why is it such a breeze to execute prgrams under Windows while there are so many problems under Solaris.
Can some experts please please PLEASE point out the errors and give me some advice and help to make this program work under Solaris! Please... I really need to do this!!
My email address - [email protected]
I appreciate it.
By the way, I'm coding and compiling in a Windows 2000 machine before ftp'ing the .class file to the Solaris server machine to run.it is possible that you are trying to run a program that is going to display a window on an X server, but you have not specified a display. You specifiy a display by setting the DISPLAY environment variable eg.
setenv DISPLAY 10.0.0.1:0
To check that runtime.exec is working you should try to run a program that does not reqire access to an X Server. Try something like
cmd = "sh -c 'ls -l > ~/testlist.lst'";
alternatively try this
cmd = "sh -c 'export DISPLAY=127.0.0.1:0;xterm '"
you will also need to permit access to the X server using the xhost + command -
How to delete duplicate applications folder I accidentally created.
I accidentally created an alias of my applications folder when I mistakenly dragged the applications alias in a downloaded software folder to my applications folder instead of the software I was supposed to drag to the applications alias. Anyway, I now have an apps folder within the apps folder, which I can't drag to the trash without trashing all the apps. Can someone tell me how to fix this please? Thank you!
G5 2.7 and TiBook 667 Mac OS X (10.4.5)pentimento,
Solving Trash Problems, by Dr. Smoke may help you out of this conundrum.
;~) -
How can I save a folder with pictures in it, on PC or MAC? (Not Camera Roll)
Dear Apple Community,
I want to save a Folder with pictures in it, that I created from the iPhone.. these photos (and videos) are available only in this folder and I don't want to loose them at all!
Whatever, how can I save this folders on my mac? and/or PC? And I don't mean the camera roll folder! Just this folder that I created on the iPhone.
Thanks in advance for you anwers!
Best Regards,
LukeNot supported by Apple. The only photos that can be imported from an iPhone are photos in the camera roll.
-
How to set up KM folder with Anonymous access.
Experts,
I would like to setup a KM folder with anonymous access where any document on that folder can be viewed by anonymous users by clicking on a link specific to that document. For example: http://server/irj/go/km/docs/documents/TechDocs/file_name.html
Please note that this document will not be rendered through an iView, so setting up an anonymous role will not work in this case.
Can anyone tell if this will be doable and the steps to do it?
Thanks in advance for your help.
Regards,
AbuHi Abu,
> How can I just give access to a specific folder under /irj/go/km/docs?
You have to differentiate between anonymous access to the iView behind /irj/go/km/docs (PCD auth scheme) and the permissions on KM folders (KM permissions). If you want to restrict the access, on the folders which should not be accessible for anonymous access, remove the group "Everyone" from the permissions (via details / settings / permissions). For details see http://help.sap.com/saphelp_nw04/helpdata/en/1b/12c49eb27011d5993800508b6b8b11/frameset.htm
Hope it helps
Detlev -
How to execute plsql stored procedure with DbAccess
sessionInfo object can give DbAccess .through
which u can use javax.infobus.DbAccess API to
execute sql satement and stored procedures according to infobus API .iam able to
execute simple query by using executeCommand() ,executeRetrival() ?. how to execute stored procedures with executeRetrieval() .
how to take in and out parameters
suggestions are welcome
waiting for your suggestionsI am also looking for the same.
Did you get any info on this
Thanks,
jagan
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chandra sekhar ([email protected]):
sessionInfo object can give DbAccess .through
which u can use javax.infobus.DbAccess API to
execute sql satement and stored procedures according to infobus API .iam able to
execute simple query by using executeCommand() ,executeRetrival() ?. how to execute stored procedures with executeRetrieval() .
how to take in and out parameters
suggestions are welcome
waiting for your suggestions<HR></BLOCKQUOTE>
null -
How to execute the FM K_COSTS_PLAN_INTERFACE_TOTAL with ranges
Hi All,
can anybody suggest me, how to execute the Function module K_COSTS_PLAN_INTERFACE_TOTAL with range of Cost element(KSTAR)
and what is the field for Cost Element TO
The fm is for tcode KP06
Edited by: Kachi Reddy on Feb 17, 2012 2:26 PMHi, Kachi.
Try this example:
REPORT rkkipl1t.
* The parameters are used to fill the internal table and describe the
* planning object.
PARAMETERS: p_kokrs LIKE tka01-kokrs MEMORY ID cac OBLIGATORY,
p_perab LIKE cobk-perab DEFAULT '001' OBLIGATORY,
p_perbi LIKE cobk-perbi DEFAULT '012' OBLIGATORY,
p_gjahr LIKE cobk-gjahr MEMORY ID gjr OBLIGATORY,
p_versn LIKE cobk-versn MEMORY ID kvt OBLIGATORY,
p_kostl LIKE cssl-kostl OBLIGATORY,
p_kstar LIKE cskb-kstar OBLIGATORY,
p_vrgng LIKE cobk-vrgng DEFAULT 'RKP1' OBLIGATORY,
p_kwaer RADIOBUTTON GROUP ein DEFAULT 'X',
p_owaer RADIOBUTTON GROUP ein,
p_twaer RADIOBUTTON GROUP ein,
p_waers LIKE coss-twaer.
DATA: i_rku01_cur LIKE rku01_cur.
* internal table for function
DATA: itrku01g TYPE TABLE OF rku01g WITH HEADER LINE.
REFRESH itrku01g.
PERFORM fill_itrku01g.
* Which currency is to be used?
IF p_twaer = 'X'.
* planning in transaction currency
i_rku01_cur-wtg_man = p_twaer.
i_rku01_cur-wtf_man = p_twaer.
ELSEIF p_owaer = 'X'.
* planning in object currency
i_rku01_cur-wog_man = p_owaer.
i_rku01_cur-wof_man = p_owaer.
ELSE.
* planning in controlling area currency
i_rku01_cur-wkg_man = 'X'.
i_rku01_cur-wkf_man = 'X'.
ENDIF.
CALL FUNCTION 'K_COSTS_PLAN_INTERFACE_TOTAL'
EXPORTING
* BLTXT = ' '
* COMMIT = 'X'
* DELTA = ' '
gjahr = p_gjahr
kokrs = p_kokrs
messages_show = 'X'
perab = p_perab
perbi = p_perbi
update_values = 'X'
versn = p_versn
vrgng = p_vrgng
* ONLINE_VB = ' '
irku01_cur = i_rku01_cur
* TESTMODE = ' '
* KEEP_TWAER = ' '
TABLES
irku01g = itrku01g
EXCEPTIONS
messages_occured = 1
OTHERS = 2
IF sy-subrc = 0.
MESSAGE s000(15).
* Verbuchung wurde erfolgreich durchgeführt
ENDIF.
* FORM FILL_ITRKU01G
FORM fill_itrku01g.
* fill internal table for function
CLEAR itrku01g.
itrku01g-kostl = p_kostl. "for CCA planning
itrku01g-kstar = p_kstar. "must be filled
itrku01g-wtgbtr = 12000. "value when planning
itrku01g-wkgbtr = 12000. "value when planning
itrku01g-wogbtr = 12000. "value when planning
itrku01g-twaer = p_waers. "transaction currency
itrku01g-fcwkg = '1'. "distribution key must be filled
itrku01g-fcwkf = '1'. "must be filled
itrku01g-fcwkv = '1'. "must be filled
itrku01g-fcmeg = '1'. "must be filled
itrku01g-fcmef = '1'. "must be filled
itrku01g-fcmev = '1'. "must be filled
APPEND itrku01g.
ENDFORM. "FILL_ITRKU01G.
Best regards,
George Shlyahov.
Maybe you are looking for
-
Evolution to start in Calendar - Work Week View
When I open evolution calendar it always open in day view. I would like to open in the view it was when I closed the program (like it behaves on ubuntu for example). Any hints? Thanks.
-
SharedServices and Workspace URL's are not working in EPM System 11.1.2.2
Hello, SharedServices and Workspace URL's are not working in EPM System 11.1.2.2 I have installed EPM system V11.1.2.2 in single server environment (MS 2008 Server R2) with following components: * Foundation Services * HFM * FDM Have used embedded We
-
Just changed modems, can connect via wifi to surf the net, but can't connect via wifi to update aps in iTunes store
-
Account on iMac G5 not working correctly?
Hello all, I recently downloaded a program called "Secrets" on my iMac G5. This program tweaks some simple settings such as changing the dock from the glassy 3D to the 2D black dock. After tweaking a few things to what I thought would help my compute
-
When Building Blocks Explode in Microsoft Word
Pushing out a Word 2010 SP1 template to approximately 150+ machines. There are several building blocks on the template, two of which are causing me problems. The major difference seen is that these problematic building block options contain nested co