filepath Questions
2
Solved
11
Solved
I'm using Python on Windows and I want a part of my script to copy a file from a certain directory (I know its path) to the Desktop.
I used this:
shutil.copy(txtName, '%HOMEPATH%/desktop')
Whil...
6
Solved
A subsystem which I have no control over insists on providing filesystem paths in the form of a uri. Is there a python module/function which can convert this path into the appropriate form expected...
12
Solved
I am looking for an efficient way to convert back slash to forward slash in R. Sometime I copy the link of the directory in Windows and I get something like this:
C:\Users\jd\Documents\folder\file....
11
Until now I have not been specifying a MongoDB data directory and have had only one 30 GB primary partition.
I just ran out of space and added a new hard disk. How can I transfer my data (that is ...
Enamor asked 11/5, 2011 at 8:10
4
Solved
I have a directory that looks something like this:
C:\Users\me\Projects\
In my application, I append to that path a given project name:
C:\Users\me\Projects\myProject
After, I want to be able...
2
Solved
So I have this code:
$userprofile=Get-ChildItem Env:USERPROFILE
$localpath="$userprofile\some\path"
I would expect output of the below from $localpath:
c:\users\username\some\path
However wha...
Spurtle asked 8/12, 2016 at 19:15
2
Solved
Say I have the paths
a/b/c/d/e/f
a/b/c/d
How do I get the below?
e/f
7
Solved
6
Solved
I have a file path like this:
/home/Dara/Desktop/foo/bar/baz/qux/file.txt
In Java, I would like to be able to get the top two folders. Ie. baz/qux regardless of file path length or operating sys...
6
Solved
I want the Perl's equivalent of Python's os.path.normpath():
Normalize a pathname by collapsing redundant separators and up-level references so that A//B, A/B/, A/./B and A/foo/../B all become A...
15
Solved
My program will take arbitrary strings from the internet and use them for file names. Is there a simple way to remove the bad characters from these strings or do I need to write a custom function f...
11
I tried a solution (see below) that works fine, except in Android 4.4 the call to startActivityForResult() brings up an activity titled "Open from", which has "Recent", "Images", "Downloads" as wel...
Ahmed asked 14/11, 2013 at 18:18
5
Solved
I have two Bash scripts in the same folder (saved somewhere by the user who downloads the entire repository):
script.sh is run by the user
helper.sh is required and run by script.sh
The two scr...
13
Solved
I have been trying to get the URI path for an asset file.
uri = Uri.fromFile(new File("//assets/mydemo.txt"));
When I check if the file exists I see that file doesn't exist
File f = new File(f...
5
Solved
At present I am opening a file with my vbscript as follows:
strFile = "C:\Users\test\file.txt"
Set objFile = objFSO.OpenTextFile(strFile)
I would like to change this so that a file can be selec...
4
Solved
I'm making a script in Powershell ISE and to prevent piracy a part of the script needs to locates the file name and if it exists on the computer the script won't work. This will work cause download...
Soult asked 15/9, 2019 at 18:36
8
Solved
Does C++ have any equivalent to python's function os.path.join? Basically, I'm looking for something that combines two (or more) parts of a file path so that you don't have to worry about making su...
7
Solved
I have to build the full path together in python. I tried this:
filename= "myfile.odt"
subprocess.call(['C:\Program Files (x86)\LibreOffice 5\program\soffice.exe',
'--headless',
'--conver...
3
I would like to retrieve the font file path with its extension (for example "arial.ttf").
The QFont::rawname() method always returns "unknown".
Is there another way to obtain the name and the ext...
1
After selecting a file in Chrome I need to get the full client side path to that file. Currently, the only path I get is something similar to:
C:\fakepath\some_file
All my googling lead me...
Rosalynrosalynd asked 28/9, 2018 at 7:20
3
I've been searching for a solution to this but couldn't find one. Not sure if its possible.
Can I pass into command-line execution that passes a in a bat file which has an input file as its argume...
Pentahedron asked 10/12, 2013 at 1:37
14
Solved
How to get full path of file while selecting file using <input type=‘file’>
<input type="file" id="fileUpload">
<script type="text/javascript">
function getFilePath(){
$('input[...
Eighteenth asked 4/3, 2013 at 11:59
8
Solved
I want to change my Anaconda Prompt User file path. Currently it is as follows:
I want it to change to: C:\Users\u354590
How do I do this?
The current version of anaconda I have is:
Python 3...
7
Solved
This is very common thing but i am very confused to get around this.
Taking file path as command line argument in c#.
If i give input "F:\\" then this works perfect.
But when i give input "F:\" ...
Cabernet asked 9/3, 2014 at 8:36
1 Next >
© 2022 - 2024 — McMap. All rights reserved.