Questions tagged as 'path'

1
answer

How to extract the path to the file

In a variable containing 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) What results in ficheiro.pdf in variable...
asked by 26.03.2015 / 11:20
1
answer

How to create directory with a path that works for any OS?

I'm 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 Linux and Windows. Is it possible to create a "generic" path for this?     
asked by 02.12.2014 / 23:58
2
answers

Path of the previous folder

How can I get the path of the previous folder? For example I have this path: C:/Pasta1/Pasta2 And I wanted to get the folder path 1 C:/Pasta1 How can I do this?     
asked by 06.10.2017 / 15:14
6
answers

How to change the PATH in Windows

I would like to know how I can change the PATH variable in the Windows environment. I am linux user but I know that windows also allows the use of this environment variable to find its executables.     
asked by 10.02.2014 / 13:16
3
answers

How to add Directory to the Windows Path variable during installation?

I developed a Console application in C # with Visual Studio 2013 and wanted the installer to add the solution directory to the Windows Path variable during installation. It is possible? What is the procedure to perform this change in th...
asked by 22.05.2015 / 21:24
2
answers

How to save the path of an image in the database?

I'm using JDBC and taking an image to save to the database. But I want to save the image to HD and save it to the bank only the path ( path ) of it. I wanted to know what is the best type I use to manipulate and save the image ( Imag...
asked by 18.12.2014 / 13:29
1
answer

How do I get current url in Javascript?

I'm using jQuery. How do I get the current and complete URL path, I want to assign it to the current url variable. $("#id_ativo").change(function(){ $.ajax({ type: "POST", url: url_atual, ...     
asked by 23.07.2015 / 22:34
2
answers

How to get the executable path open in C

How can I capture the path of the executable in C and put it inside a string ?     
asked by 03.09.2016 / 02:40
1
answer

Path points in xaml

I am creating an application that will cause an agent to walk through an area with several obstacles as shown in the figure. TheagentwillwalkfrompointStopointG,passingonlythroughtheverticesofthepolygons.HowcanIgettheverticesofthepolygonsinXA...
asked by 25.07.2015 / 20:30
1
answer

When should I include "../" in the path to an include or image? [duplicate]

I have this doubt because time is only necessary the path pasta/arquivo.ext and time I have to put ../pasta/arquivo.ext . Is there a rule?     
asked by 17.01.2017 / 15:44