Most voted "path" questions
68 questions
Sort by count of
-
13
votes1
answer5489
viewsHow to create directory with a path that works for any OS?
I am doing a job in Java and I need my program to create a directory in the user’s "home" folder, but it needs to be able to create both in Linux and Windows. It is possible to create a "generic"…
-
12
votes1
answer129
viewsHow to extract the path to the file
In a variable that contains the path to a file and its name, the file name can be extracted as follows: #!/bin/bash filenamepath="/caminho/para/ficheiro.pdf" filename=$(basename $filenamepath) Which…
-
10
votes2
answers1070
viewsPath from previous folder
How can I get the path from the previous folder? For example I have this path : C:/Pasta1/Pasta2 And I wanted to get in the way of folder 1 C:/Pasta1 How can I do that?…
-
8
votes1
answer50369
viewsHow do I get current Javascript url?
I am using jQuery. How do I get the path from the current and complete URL, I want to assign it to the variable url_atual. $("#id_ativo").change(function(){ $.ajax({ type: "POST", url: url_atual,…
-
7
votes6
answers53653
viewsHow to change PATH in Windows
I wonder how I can change the variable PATH in the Windows environment. I am a linux user but I know that windows also allows the use of this environment variable to find its executables.…
-
6
votes3
answers1631
viewsHow to add Directory to the Windows Path variable during installation?
I developed an application like Console in C# with Visual Studio 2013 and wanted the installer to add the solution directory in the variable Path Windows, during installation. Is this possible? What…
-
6
votes2
answers89
viewsBackslashes on the way: do they influence anything?
I never understood why some systems use the \ and others use the / for the same purpose: to divide paths and addresses. There is no pattern from which to use, or at least couldn’t find a. While…
characteristic-language operating-system file-system pathasked 5 years, 2 months ago CypherPotato 9,292 -
5
votes2
answers3756
viewsHow to save the path of an image in the Database?
I’m using JDBC and picking up an image to save in the database. However I want to save the image in the hard drive and save in the database only the way (path) hers. I wanted to know which is the…
-
5
votes2
answers601
viewsHow to take the path of the open executable in C
How can I capture the path of the executable in C and place it inside a string?
-
4
votes1
answer51
viewsPath points in xaml
I am creating an application that will make an agent walk through an area with various obstacles as shown in the figure. The agent will walk from point S to point G, passing only through the…
-
4
votes2
answers86
viewsWhat is the difference between paths starting with ". /" and "~/" ? What is a best practice?
Both directories below point to the same file. These are Typescript import statements in an Angular application '~/app/shared/sevices/modules-services/inspections/checklist.service';…
-
3
votes2
answers593
viewsHow to pass filenames to a Datagridview using Folderbrowserdialog?
How do I pass the name of the files that were found inside the selected folder? So far I’ve only managed to get him to pick up the file’s path and move on to the DataGridView and now I want to make…
-
3
votes1
answer71
viewsWhen should I include ".. /" in the path to a include or image?
I have this doubt because time is necessary only the way pasta/arquivo.ext and time I have to put ../pasta/arquivo.ext. Is there any rule?
-
3
votes2
answers972
viewsPoint to a folder before DOCUMENT ROOT?
Below follows the folder structure: /home/web/site/public_html If I give an echo $_SERVER['DOCUMENT_ROOT'] I’ll get the path to public_html, but I’d like to make some files inaccessible directly by…
-
3
votes1
answer3007
views -
3
votes1
answer233
viewsRecover value from PATH environment variable on Linux using Java
I did not find a good topic on this subject and decided to create this question for those who are going through this problem. By using System.getenv("PATH") not listed all values of this environment…
-
3
votes2
answers83
viewsGrab last file that entered in "Downloads" folder
How can I open the last file that was downloaded in the folder "Downloads" with Python? I saw several options with the libs os.path and os.walk but none of them makes it possible to take the last…
-
2
votes1
answer1905
viewsSet the shortest path in graphs
Hello, I’m starting to see graphs now, I’m trying to create a program where the user enters with an adjacency matrix and the program calculates the shortest possible path from the initial node to…
-
2
votes1
answer484
viewsEclipse error
I installed and configured java jdk 9.0.1 and also the eclipse as java ide,no eclipse when I create the project gives me error soon and as soon as I start writing "System.out.println" this error…
-
2
votes1
answer4637
viewsAccessing files in C: error: Access to path (...) has been denied
I am making a program in C#, which needs to access all files and folders from the computer. It turns out that when I go to access a folder or file near C:\, he says this message: Access to path 'C:…
-
2
votes1
answer1911
viewsHow to switch between Java 8 and 11 on Ubuntu?
I made a few days ago the transition from Windows 7 to Ubuntu 18.04 LTS, and had some difficulties in the process. Well, let’s get to the details. I installed JDK 11 through the following command:…
-
1
votes2
answers69
viewsScript does not show the entire path
Code: for i in `find $1 -name $4 -type f` ; do path=`readlink -f $4` words=`cat "$i" | wc -w` echo "$path: $words palavras" done Prints: /home/miglui/Desktop/SO/teste.txt: 14 palavras…
-
1
votes1
answer81
viewsFind path of a file only given the name
I am trying to find the path of a file just knowing its name. I have tried several ways including pwd but it’s no use to me. There will be some way to do it ? (I have assurance that this is the only…
-
1
votes1
answer168
viewsRelative Path in Vbscript
I want to associate a XML is an application in VBScript and I need to indicate in the application which directory should read the XML, however, as is easy to predict, Path of XML can’t be hardcoded.…
-
1
votes2
answers71
viewsUse a Textfield to describe a path to save the files
Good morning guys, I’m trying to create a system that when I type a name in a textfield it would create a folder with this name and add the file inside the folder. The part of adding the file is…
-
1
votes1
answer162
viewsHadoop error while searching for Java class
I’m having trouble setting up the Hadoop environment. I’m doing a zero installation on a Centos 6.7 machine. When trying to execute any Hadoop command, for example: hdfs namenode -format hadoop…
-
1
votes1
answer65
viewsBackstroke, backstroke, backstroke
hello. I have been trying to find out if I can reverse a path? How can I reverse a path and then go on as normal? for example I need to revert a path to this string ( LPCWSTR path = ) so I need to…
-
1
votes1
answer969
viewsGet path where python file is called
I created a python file and made it available to access from every place on the system, however, for many applications accurate the path where the python file was called by the system, but I did not…
-
1
votes0
answers118
viewsCorrect path to get into a folder outside the www server using php and linux
I have a program in php on a linux server and wanted to know how it is possible to access an element that is outside the www folder. for example, I have the www folder and a folder for my project…
-
1
votes1
answer198
viewsProblem with Python zipfile logic
I’m trying to make a python script to zip xls files. I managed to get it inside directory and is adding everything inside a file .zip. However I wanted it to go through all subdirectories and be…
-
1
votes1
answer427
viewsAccess path space environment variables
I created an environment variable that stores a path roomy: /c/Users/Bruno Xavier Despite being in windows, my intention is to use it by git bash for easy access to the directory. I tried the two…
-
1
votes0
answers64
viewsSession with absolute path
The script below only works if I nay put the absolute path, only the relative one. It has how to make it work with absolute path? Absolute: xmlhttp.open("GET",…
-
1
votes0
answers36
viewsDijkstr finds no path less
I’m implementing Dijkstra’s algorithm to find the shortest path on a network. Starting from a node of origin s, I need to calculate the shortest path to reach all other nodes that exist on the…
-
1
votes0
answers57
viewsProblem with JAVA paths
I am on a project and I find myself with the following problem. a part of the code has the following: Path caminho2 = Paths.get("C:\\Users\\Evandro\\Documents\\Java\\Player beta…
-
1
votes1
answer26
viewsreturn more recent files to a folder
I am trying to return the path and modification date of all files in a folder, but I am not able to return the date, only the path. code so far: from pathlib import Path import pandas as pd…
-
1
votes1
answer43
viewsImages with Uri from the React Native API
In the database I save the image path along with the other posting information, ai on the page I want the image to appear I use a flatlist listing the posts and showing your image if that post has:…
-
0
votes3
answers1168
viewsPHP as per path and filename in variables
Hello. I have a table that should show the name of the files and the date they were updated, but nothing appears. In HTML I have only <table><?php tabela("/arquivos/formularios/*.*");…
-
0
votes1
answer454
viewsAndroid open image by the way
We can see that there are several tutorials on how to save the path of an image, being a photo of the camera or selecting from the gallery, until then ok, but how to search again the image along the…
-
0
votes2
answers700
viewsC# - I/O on the network
I have a program that makes I/O files (create, edit, save), but I need to put it to do this I/O with files that are on the company network, both read and write. My question is: My program needs…
-
0
votes0
answers56
viewsHow to create file on my PC, within an internal network, using PHP
I am developing a software for the company I work with and a problem has arisen: I need to create a file inside my PC that is saved using any other computer from the internal network of the company.…
-
0
votes1
answer494
viewsurl from the root of the site
Good afternoon, I would like to clear up a question I have for some time in PHP. For example, in this case, I have the site’s translation system, but it only works for the directory in which it is,…
-
0
votes1
answer762
viewsHow to Save the File Path to the Bank
I am having a doubt I would like to know with saving the path of images and files that I currently upload I save this files in a folder but I would also like to have the path in the database how can…
-
0
votes1
answer79
viewsHow to compare directory path names?
I have two paths: C:\\anacarvalho\\Database\\Updates\\2017\\2017_04\\20170419_AC - Path selected by a Folder browser dialog. C:\\anacarvalho\\Database\\Updates - Path that is at the root of the…
-
0
votes0
answers91
viewsDuplicate paths in $PATH environment variable
I have noticed that the paths I add to $PATH in my .bashrc duplicates appear when I open tmux (multiplexer terminal): export PATH=$HOME/miniconda3/bin:$PATH export PATH=$PATH:$HOME/Devel/bin If I…
-
0
votes1
answer398
viewsHow to run programs without specific path
Example: I want you to automatically do a search of the program I write, and if you find an application ". exe" it run it, if not find, send a message saying that the program is not installed on the…
-
0
votes0
answers140
viewsConvert path C: to C:
I am trying to take the path that is stored in the bank and open by the explorer, and for that I used the code below path =…
-
0
votes1
answer379
viewsHow do XSLT get the attributes inside the name, my item tag, only if it’s true?
<bloco> <item nome="imagem">true</item> <item nome="imagem">false</item> </bloco> …
-
0
votes1
answer55
viewsDo not specify the path to a batch file
To open a file on my computer, just put the path. C: Users Desktop example But if I were to, for example, create a batch for another computer, assuming there is a folder on the desktop called…
-
0
votes2
answers3792
viewsSource is not recognized as an internal command
When trying to activate a virtual with the command source venv/bin/activate, message appears: source não é reconhecido como comando interno. All this on the console of Pycharm.…
pathasked 6 years, 7 months ago Sergio Freire 11 -
0
votes0
answers41
viewsCan you use the built-in php server without adding php to the Path?
You can use the built-in php server without adding php to the Path of windows environment variables?