path

Problem with scp on Mac OS X: scp doesn't like spaces in filenames, “\” fix doesn't work

丶灬走出姿态 提交于 2019-12-14 00:21:06
问题 I am trying to use scp to transfer files between two Macs (OS 10.6.8). But it fails because there are spaces in my directory/file names. I can't change the directory/file names. I have often used a \ symbol when working in a terminal with my Macs to represent spaces. In this case, however, it is not working. I would very much appreciate any tips on how to deal with this. Thanks. Here is an example of what I'm doing, in case I'm making a silly mistake somewhere: scp -r me@myWork:../../My\

Can't find my PYTHONPATH

跟風遠走 提交于 2019-12-14 00:20:05
问题 I'm trying to change my PYTHONPATH. I've tried to change it in "My Computer" etc, but it doesn't exist there. I searched in the registry in some places, and even ran a whole search for the word 'PYTHONPATH', but to no avail. However, it Python I can easily see it exists. So where is it? 回答1: Python does some stuff up front when it is started, probably also setting that path in windows. Just set it and see, if it is changed in sys.path . Setting environment variables in the Python docs say: My

Shortest path on a grid with obstacles [closed]

核能气质少年 提交于 2019-12-13 23:12:56
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Please help me finding the shortest path between two points on a 2d grid with obstacles. you will be provide starting coordinates and end cordinates. Also you know where the obstacles are. 回答1: I suggest A* Pathfinding. It's a really neat algorithm that should do what you want. 来源

Could Not Find Path Specified: CreateDirectoryW

天大地大妈咪最大 提交于 2019-12-13 22:06:12
问题 VS2015, Unicode: Getting the "Could Not Find the Path Specified" error running the following code in a listbox: wchar_t *currPath, *cumPath; int listTotal = 5; int pathLength = 32760; listTotal = SendMessageW(hList, LB_GETCOUNT, 0, 0); wcscpy_s(cumPath, pathLength, L"\\\\?\\C:\\"); //wcscpy_s(cumPath, pathLength, L"C:\\"); //Tried this, no difference wcscpy_s(currPath, MAX_PATH - 3, L""); for (int i = 0; i < listTotal; i++) { SendMessageW(hList, LB_GETTEXT, i, (LPARAM) currPath); //"My Nested

php: get the directory in which resides a file [duplicate]

喜夏-厌秋 提交于 2019-12-13 21:17:18
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: PHP: let a file return its own directory. Hi I have a file located in a directory like this: C:\wamp\www\site\modules\file.php How can I get the current directory of file.php from within that script? This directory should look like modules in this case I needs this directory name to build a URL path to a css file from the same directory. 回答1: dirname(__FILE__) . "/" . basename(__DIR__) or dirname(__FILE__) 回答2:

How to get AppPath to Executable file's directory using C language on Windows (using MinGW gcc )

你说的曾经没有我的故事 提交于 2019-12-13 20:05:03
问题 My executable file is in this place --> D:\Examples\C_Pro\newApp.exe Also in that "C_Pro" folder contain several files ( file1.txt, file2.txt, file44.exe, newApp.c ) In my newApp.c file, I includes a ShellExecute Function to execute "file44.exe" file in same folder like this --> ShellExecute(NULL,"open","D:\Examples\C_Pro\file44.exe",NULL,NULL,1) in this way all work properly.. I'm talking about AppPath like thing in VB But the case is I want to run this newApp.exe on different pc's So I want

recursive implementation of depth first search to find path between two nodes in Java

狂风中的少年 提交于 2019-12-13 19:21:58
问题 I am trying to implement the recursive version of DFS for depth first search between two nodes. Here is my code. The method will return true if there is a path that exists and it also updates the prev field of the node to keep track of the path. I have implemented this non-recursive way using stacks and it works fine which is here.. This one is not working. That is it is not giving me the path from Node A to Node B. It always seem to return false. public boolean recursiveDFS(String start,

cmd PATH error - \common was unexpected at this time

☆樱花仙子☆ 提交于 2019-12-13 19:16:59
问题 i am adding a line in a .bat file look like this: path %~dp0;%PATH% But this message is shown: \common was unexpected at this time. Let me show you the path. PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File s (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\AMD AP P\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windo ws;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Progr am Files (x86)

Locate file, and copy its path. Batch script

余生长醉 提交于 2019-12-13 18:33:37
问题 I am working on a batch script to automate building a Qt project. One issue i am having is the fact that the install directory path of Qt may not be the same for every user. For example, on my system the path of my mingw48_32 is: c:\Qt\Qt5.2.0\5.2.0\mingw48_32 but on someone elses system it may be c:\Qt\5.2.0\mingw48_32 depending on how they chose to set it up. So when i am specifying the path for the qmake.exe, i need to know that the path to qmake.exe is. How can i search for a file, and

PHP Absolute & Relative Paths

拜拜、爱过 提交于 2019-12-13 18:28:36
问题 I have this directory structure: /style/style.php /style/graphics/logo.png /cp-admin/index.php style.php contains the following function, which echoes the logo: function logo(){ echo "<p><img class = 'logo' src = 'style/graphics/logo.png'></p>"; } I am using this function so that if I change the path of the logo, or need to include something else along with it, all it takes is to modify the function, and changes are reflected in all pages. However, when I am including from /cp-admin/index.php