Questions tagged [file-management]

File Management relates to the efficient control over, usage of and access to files by users and computer operating systems

File Management topics covered by this tag include

  • Popular computer operating systems
  • Project management software and processes
  • Web server caching algoritms
  • Software development tools, such as XCode and phpCake
538 questions
0
votes
2 answers

Extract all the files with name containing a keyword

I have thousands of html file in a directory. I wanna extract files that contain Chennai in the file name and put it into another folder. I am sure it is possible. I am not close enough to copy the files to another folder.
Venkateshwaran Selvaraj
  • 1,745
  • 8
  • 30
  • 60
0
votes
1 answer

Swaping two files on disk

I have fileA and fileB and want to exchange them. (In computer programming, the act of swapping two variables refers to mutually exchanging the values of the variables) File fileA, fileB, temp fileA.renameTo(temp); try { fileB.renameTo(fileA); …
Val
  • 1
  • 8
  • 40
  • 64
0
votes
2 answers

In Linux - how do I delete a file with an 'erroneous' name?

I have a file that keeps popping up in my git status log. It looks like it was created by accident, but when trying to use "rm name_of_file" I get the following error: rm: cannot remove `name_of_file': No such file or directory Here's the actual…
gogogadgetinternet
  • 5,719
  • 4
  • 24
  • 28
0
votes
1 answer

Batch file move command "The system cannot find the path specified." despite correctly identifying the file to be moved

I'm trying to create a batch file that creates a folder structure with a datestamp and two folders within, then moves some files into these sub-folders as a form of archiving. After some research, i've managed to get the folder structure generating…
almg
  • 311
  • 1
  • 3
  • 10
0
votes
1 answer

Cycle through a directory and get paths of all the files and folders

Hello there im stuck on this thing where i need to cycle through a certain dir that i need to get all the file names from and get there paths as a variable. I know how to create a loop, but to get the directory's contents, I do not. Any help is…
Rstew
  • 585
  • 2
  • 9
  • 21
0
votes
2 answers

Where do data files go so the Microsoft Visual C++ 2008 debugger can find them?

I am writing code that opens an istream object on a file specified by the user. I want to be able to run the program in the debugger and just type the filename (eg data.txt) at the prompt, not the whole path. I haven't worked out how to do this…
pocketdora
  • 323
  • 3
  • 7
0
votes
0 answers

Syncing two folders continuously

I'm trying to get a for loop to get all the contents of a directory and copy it to another directory on the system, but I am faced with a dilemma: if I loop through all the files and copy those over to the other directory and vice versa, once a file…
Rstew
  • 585
  • 2
  • 9
  • 21
0
votes
3 answers

File Management in Python

I am somewhat new to Python, having made several scripts, but not too many serious programs. I am trying to understand where to put the functions/scripts (as well as any modules I create in the future) I have written so that they can be accessed by…
tlewis3348
  • 424
  • 2
  • 7
  • 21
0
votes
2 answers

Bash script to zip all the files that begin the same characters

I have a folder where files are being constantly added from other users. I would like to use a bash script to compare the first three characters in a filename of these files and if they are the same zip them together. I'm a newbie to bash (or any)…
0
votes
1 answer

User private image library management

I'd like to hear hear your opinions on this problem. On my site, users must be able to upload ten images maximum, which is no problem. But they must be able manage these images, like delete two of them and upload only 2 new... What would be the way…
AmarokM
  • 41
  • 1
  • 7
0
votes
1 answer

Am I using Gio GFile monitor_file wrong?

I'm using Gio monitor_file like this. def callback(*args): print 'ok' gio_pointer = Gio.File.new_for_path(os.environ['HOME']+'/temp') monitor = gio_pointer.monitor_file(Gio.FileMonitorFlags.NONE, None) monitor.connect("changed",…
Quentin Engles
  • 2,744
  • 1
  • 20
  • 33
0
votes
1 answer

bat: Listing empty directories, if/else statements within for statements?

I'm trying to write a script that lists every file name in a specified folder, and notifies the user if that folder is empty. So far I've got: for /r "O:\Mail\5-Friday" %%d in (*.pdf) do ( dir /a /b "%%~fd" 2>nul | findstr "^" >nul && echo…
Insarov
  • 971
  • 1
  • 10
  • 15
0
votes
5 answers

Search a record in a file with C

I'm exercising with C and file management, I'm able to open a file, write a record on the file, close the file, but I have problem to find an already written record. This is my exercise: (The search in case 2) #include #include…
Mitro
  • 1,230
  • 8
  • 32
  • 61
0
votes
3 answers

How do I write to a file in Objective-C?

I have text files that contain some basic data that I need for my app. I can read the files and I get the file path with: NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Money" ofType:@"txt"]; To write to the file I would think I…
Alex Pelletier
  • 4,933
  • 6
  • 34
  • 58
0
votes
2 answers

Permission Denied on move or delete for last file in a folder

I have an MS Access VBA procedure inside a module that has a for each loop on files in a particular folder. Inside the loop, I create a new file in a separate folder that is then filled with cleaned data from the file in the loop. I import the…
coge.soft
  • 1,664
  • 17
  • 24