All Questions
19,925 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
101
views
Open a file or directory and reuse it in other functions
I've only seen examples with using void functions for opening folders or files but I wish to use them outside the same function and in some other one.
How to go about it?
For example:
void open_dir ()
...
Advice
1
vote
5
replies
72
views
How can I setup a Batch file to recurse 2 levels of a directory and run a command?
I'm trying to write a Batch file that will recurse 1 level and for all the directories in that level, go in to each of them and run commands.
For example. In every directory in my current directory, I ...
4
votes
0
answers
100
views
How to effectively search $home in PowerShell if you are looking for hidden directories?
I am writing a Powershell script which has a function:
$CutFiles3 = @(Get-ChildItem $home -Force -Directory -Filter autoruntemp*)
This command is slowing down my script and is taking 10 seconds to ...
1
vote
2
answers
159
views
How to move a certain file to another directory?
Recently, I’ve been working on a small project that allows you to download information about a person who has participated in a powerlifting meet. The data comes from OpenIPF.
In this project, a CSV ...
0
votes
0
answers
34
views
Looking for the path of a folder on OneDrive to use in Power Query Office 365 Home edition
I want to regularly import PDF files from a specific OneDrive folder into Excel using Power Query.
The folder in OneDrive is the default email attachments folder.
The file names vary daily.
I am using ...
1
vote
1
answer
105
views
How to remove outdated files and empty directories for garbage collection
I'm tweaking a garbage collector class whose job is to iterate through a disk cache of files in subdirs, find any that are "out of date" and remove them. Further, if it finds any empty ...
4
votes
2
answers
188
views
Can PowerShell automatically create missing directories when redirecting output?
Is there a way to configure PowerShell so that the redirection operator (>) automatically creates any missing parent directories?
For example, the following command fails if c:\missing_dir\ does ...
0
votes
3
answers
135
views
Using JSch how do I check if an entry is a folder or a file?
Situation: I have two PCs with Debian 12 in LAN.
From a Java program running on PC1 I have to delete on PC2 a known directoy and its contents.
Since the ChannelSftp.rmdir() method only deletes an ...
1
vote
2
answers
123
views
Tkinter loading user Data from a file not in directory
I want to make a Tkinter program where separate users can load their data, (a dictionary) from a sub-folder within the main project directory.
My_project
|_main.py
|
|_User_data
|
|_ Data.py
...
0
votes
1
answer
44
views
How do I remove a folder from PyDev Package Explorer without removing the contained files
In PyDev Package Explorer, I've got a package and folder which both point to the same folder structure on my computer, I want to get rid of the folder reference (which I have disconnected from github),...
0
votes
0
answers
117
views
Why doesn't VS Code pop up context menu on top level folder / project folder provide Search option?
When I right-click on the top most / top level / project folder / root folder to get the context pop-up menu, I don't get a Search option in that menu:
In my case, in the picture, the top most folder ...
1
vote
1
answer
107
views
Improve Speed of AppleScript that Opens Multiple Folders in Multiple Tabs in new Finder Window?
I have a series of subfolders with a parent folder called "Inventory" within a internal hard drive.
Each subfolder name consists of a number, a hyphen and some text, such as:
"329 - ...
1
vote
0
answers
29
views
Can vimdiff do directory diffs? [duplicate]
I've been spoiled by GUI diff tools like meld, kdiff3 etc. Now I'm stuck having to do some git diff'ing via a terminal. If I:
git difftool --tool=vimdiff HEAD~
I get pairs of files which need to be ...
0
votes
0
answers
40
views
Bulk Folder Creation on Google Drive
I’m currently trying to improve how I handle client onboarding, specifically, the folder structures we set up in Google Drive. Right now, I’ve been creating folders manually for each new client, with ...
1
vote
0
answers
59
views
How to make sure that folder or file has been removed successfully from path before moving to next line in powershell? [duplicate]
I have prepared powershell script to remove files or folders from target path. Script is removing files or folders from target path but I noticed that if folder size is large (around 700-800 mb or ...