working-directory

Monodevelop on Mac how to I set the working directory for debugging

不问归期 提交于 2019-12-08 03:56:44
问题 I know I can set custom run commands for running which includes setting the working directory but I cannot seem to find the setting to set the working directory when debugging. Any ideas? 回答1: The debugger uses the same working directory that "Run" uses. 回答2: To set a working directory in "Run" or "Debug" mode : in "Project Options", add a "Run/Custom Command" with type " Execute " set the command: ${TargetFile} set your working directory 来源: https://stackoverflow.com/questions/8186009

current working directory in a vbscript invoked by a drag & drop operation

ε祈祈猫儿з 提交于 2019-12-06 10:24:26
When I was trying to get elevated rights for my batch script, when I found two related SO questions How to request Administrator access inside a batch file How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required? ...that led to answers that worked partially. For some reason, I had issues with command line passing for file path arguments containing spaces within the VBS script, so I tried to break the solution into 3 parts and concentrated on the inner (VBS) step, then adding the last step by calling a batch from that VBS which could not be found,

How do Perl Cwd::cwd and Cwd::getcwd functions differ?

旧街凉风 提交于 2019-12-05 01:15:40
The question What is the difference between Cwd::cwd and Cwd::getcwd in Perl, generally, without regard to any specific platform? Why does Perl have both? What is the intended use, which one should I use in which scenarios? (Example use cases will be appreciated.) Does it matter? (Assuming I don’t mix them.) Does choice of either one affect portability in any way? Which one is more commonly used in modules? Even if I interpret the manual is saying that except for corner cases cwd is `pwd` and getcwd just calls getcwd from unistd.h , what is the actual difference? This works only on POSIX

Can you set the current running directory from the java command line?

一个人想着一个人 提交于 2019-12-05 00:21:45
I am running a Java application from the command line. Can I specify a command line argument to set the current running directory to something other than where the application is actually going to run? Datta Rooyikar There is a JVM argument -Duser.dir which can be used to set working directory for JVM. If it all possible I would rather use a script to run the java application and set the directory in the script: #!/bin/sh cd <your dir> java <some arguments> The JNI-solution may affect all kinds of relative paths in your application; for examples the classpath you put in. If you want to change

How do I get the application's directory from my WPF application, at design time?

我的梦境 提交于 2019-12-04 11:03:10
How do I get the application's directory from my WPF application, at design time? I need to access a resource in my application's current directory at design time, while my XAML is being displayed in the designer. I'm not able to use the solution specified in this question as at design time both System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName) and System.Reflection.Assembly.GetExecutingAssembly().Location point to the IDE's location (Visual Studio... Common7 or something). Upon request to further clarify my goals: I want to access a database table at design time

Python: Is it possible to change the Windows command line shell current directory without changing the actual current directory?

半腔热情 提交于 2019-12-04 07:13:13
I'm using os.system() to do Windows command line shell executions. I would like to change the Windows cmd current directory. Here's one way of doing it: os.chdir('newPath') But chdir() will also change the actual Python current working directory. I don't want to change the actual Python working directory because I want other parts of my script to run in the original current working directory. What I want to change is only the Windows cmd current working directory. In other words: I want os.system() commands to run in one current working directory (Windows cmd current working directory) while

Perl change working directory of caller

◇◆丶佛笑我妖孽 提交于 2019-12-04 04:41:19
问题 I want to write a perl script that changes its working directory to somewhere else, does something, and then leaves me in that directory after I call it from the shell. chdir only does the first part. How do I change the working directory of the caller? 回答1: What you want to do is not possible. The closest thing would be to write some bash that does what you want and then in the calling shell, source it instead of running it. Software cannot affect the shell that calls it. 回答2: This is

Achieving the effect of changing the Java working directory

家住魔仙堡 提交于 2019-12-04 04:24:28
问题 Context: My software depends on calling a library which can only accept relative paths as an input because of an old limitation. I need the paths to be relative to a known directory. The library might make a call internally like java.io.File fooBar = new java.io.File("foo/bar"); I need this to give me /nwd/foo/bar and not, say, /cwd/foo/bar where /cwd is the working directory from which java was run. For all intents and purposes, I cannot modify the internal behavior of this library. Manually

Specify directory with setwd()

大城市里の小女人 提交于 2019-12-03 17:20:36
I understand that in R to set my working directory I can do: setwd("~/dir1/dir2/mydir") If mydir is a unique directory name, is there way to specify the working directory without stating dir1/dir2 ? Thanks Sys.glob does what you want: setwd(Sys.glob("~/*/*/mydir")) If you don't know how deep it's nested, you can use list.files or dir : list.files(path="~", pattern="mydir", all.files=TRUE, full.names=TRUE, recursive=TRUE, ignore.case=FALSE, include.dirs=TRUE) 来源: https://stackoverflow.com/questions/12324539/specify-directory-with-setwd

What's the difference between working directory and local repository?

為{幸葍}努か 提交于 2019-12-03 14:45:03
问题 I've created a new GitHub repository. I'm quite confused by working directory and local repository. When working on my own, my stuff all resides on working directory. But when work with repo, I should check my stuff there. But are they the same thing? or should they be separate. Then how to commit my stuff in working directory to my local repo. How to commit my local repo to remote repo. How to do this by Git Bash? Thanks! 回答1: Working directory is the directory with your source files under