Questions tagged [getfiles]
266 questions
0
votes
4 answers
Show files in my website
Hi how can I show files in my website to download it. I have got code :
Directory.GetFiles("http://example.com/Folder1/Folder2", "*.*")
But it isn't working. I can use it like this :
Directory.GetFiles(@"C:\Program Files\Folder1\Folder2",…

WalkerJetBat
- 11
- 3
-1
votes
1 answer
DirectoryInfo.GetFiles with multiple filters
I am trying to get a list of FileInfo objects that satisfy multiple filters.
Every suggestion I have seen uses array of file names/paths instead of FileInfo:
var files = Directory.GetFiles(sLogPath, "*.*", SearchOption.TopDirectoryOnly)
…

NoBullMan
- 2,032
- 5
- 40
- 93
-1
votes
1 answer
VBA to open Excel file based on cell value WITHIN that file
I've been looking all over the web for an answer to this question. I see many blogs and postings regarding opening an excel file based on a cell value NOT within that file.
My question: Is it possible to open a file based on a cell value within the…

deadxcell
- 11
- 4
-1
votes
2 answers
C# returning all files located in a directory which has folders in it
How can I retrieve all the files in a directory that has files, sub-folders, and files in that folders.
NOTE: The folder/files is not constant

xSynaptic
- 3
- 2
-1
votes
2 answers
Google-App-Scripts-Search files does not find spreadsheet
I created 3 untitled Google Spreadsheets to test this script. Search in My Drive for title:untitled or just untitled found all three, but in this script searchFiles method finds the Doc and the Slide but not the Spreadsheet and getFilesByName does…

aNewb
- 188
- 1
- 12
-1
votes
1 answer
Why Directory.GetFiles only returning 1 match when using asterisk in SearchPattern?
As the subject says - I'm trying to understand, why Directory.GetFiles only returns 1 result, when using asterisk in the SearchPattern.
For example, I'm trying to find all .nfo files in my directory, so I'm searching like…

user1855026
- 95
- 9
-1
votes
1 answer
Find file with Name and Extension
I want to find a file that has .pdf extension and I want to find with name too. For example I have filename = "Work.pdf". I want to write a method that
could find with name. Is there any builtin method for this?
string fileName = "Work.pdf"
string[]…

Huma Ali
- 1,759
- 7
- 40
- 66
-1
votes
2 answers
Check if multiple files exist from using Get Files and if they do exist then copy
I currently have 2 folders on my desktop "START" and "END".
There could be any number of files in start folder but I need to figure out the following.
If the filenames exist in the START FOLDER then check if they exist in the END Folder and if they…

Dibsy
- 1
- 1
- 2
-1
votes
1 answer
Find files and exit if file no exist in powershell
Have some simple script:
$sql = Get-ChildItem -Path "C:\files\" -Filter *.sql
In C:/files/ can be:
1. No file. (my issue)
One file (test.sql)
Multiple files. (test1.sql , test2.sql , etc)
For 3 i'm using if ($sql.Count -gt 1 ) and its working…

Sinai R.
- 33
- 10
-1
votes
2 answers
System.IO.Directory.GetFiles for specific file name
in my local file folder,contain files.
eg TB2.8.5_asd_asd and TB2.9.5_asd_asd. How can i do only get the file which the name start with TB2.6.5_
string[] dirs = System.IO.Directory.GetFiles(ConfigurationManager.AppSettings[@"LocalFolderPath"], "*" +…

Yeep
- 43
- 1
- 2
- 11
-1
votes
2 answers
How to get path from SDcard in android for audio, video, image, files?
I have developing app which get the path from SDcard for all types (Images, Audio, Video)...
It works fine for opening the Default Android Browsers(Gallery). But when i open the SDcard in other app's it throws NullPointer. For example i have…

Kabil Dev
- 1
- 2
-1
votes
1 answer
Second Line of Text File Not Reading; C++; Visual Studio
I am in a second-year computer science class and we are learning C++.
The assignment is to write a text file and calculate totals and averages based on the text file's data.
This is what my text file looks like:
Angela Langston Maya Malcolm…

Quishe' Branch
- 3
- 3
-1
votes
2 answers
condition, file exist, sample code, checking directory for file
Hi everyone i'm just a beginner at .net programming and i really need some help regarding this matter, the logic of my code was "supposed" to look at every directory that a put inside the array.. then will validate if every folder have file inside…

alv
- 47
- 5
-1
votes
1 answer
Performance issues getting list of files (VBA and C# .NET 4.0)
I'm trying to write a piece of code getting a list of files which are present in a folder structure but not present in another folder structure.
In other words, I have to archive files only if they are not already archived.
The two rootfolders are…

Marco
- 17
- 4
-1
votes
2 answers
how connect with ftp from code
hello how can I replace our ftp to our server on driver address in this code?
string[] filePaths = Directory.GetFiles(@"c:\MyDir\", "*.bmp");
for example:
string[] filePaths = Directory.GetFiles(@"our ftp address", "*.bmp");
the first code is…

Atena
- 1
- 1