All Questions
19,922 questions
-4
votes
0
answers
124
views
Regex VBA macro
I'm having difficulties with the below regex which should find files in directory with a specific pattern. Directory is ok, if else statement files are being printed. But regex.test doesn't match. ...
0
votes
1
answer
149
views
Get a file name with extension from a folder and use it for opening
The main function contains arguments check and a switch for arguments so in packing process, the argument -p FOLDER is passed. The basename does its thing to get the folder name from the path but I am ...
1
vote
2
answers
142
views
Where does the actual source code belong in an Eclipse IDE Gradle project?
I have just picked up Java with Gradle again with the intention to recall my skills with a social-network backend practice project. As I've neither used Gradle nor Eclipse IDE for long, I'm stuck on a ...
3
votes
1
answer
115
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
6
replies
74
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
108
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
169
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
43
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
109
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
190
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
136
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
125
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
122
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
108
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 - ...