filesystemobject Questions

3

Solved

In VBScript, I want to get a list of files in a folder ordered by creation date. I saw that in order to do that I will need to either use a record set (seems like an overkill to me) or sort the col...
Analogical asked 3/6, 2013 at 11:20

3

I am writing a VB Script to update some files on the network. Before beginning, I want to know if any of the files are locked. I'd like to do this before I actually do any updates. I am aware that...
Ectomorph asked 6/9, 2012 at 12:59

3

Solved

I want to know if it's possible to rewrite this piece of code: Private Sub PrepareDir(ByVal dir As String) Dim fso As New FileSystemObject If fso.FolderExists(dir) Then Call fso.DeleteFolder(dir...
Centralization asked 20/8, 2014 at 9:55

2

Solved

I want to be able to view the contents of my access database's laccdb file through VBA so I can use it to alert users (through a button) who else is in the database. I specifically don't want to u...
Nonferrous asked 8/9, 2016 at 13:54

3

Solved

I am trying to extract tables from pdf files with vba and export them to excel. If everything works out the way it should, it should go all automatic. The problem is that the table are not standard...
Muscovado asked 23/2, 2013 at 20:43

4

Solved

I am trying to create an ActiveXObject (to use FileSystemObject) but it's only supported in IE. Is there a way I can make it work in Chrome or Firefox? I need to read all the files in a specific gi...
Subalpine asked 11/8, 2011 at 7:54

1

I'm trying to delete folders in a shared location on a network using C#. Some of the folder paths are too long for Windows to handle. I've tried multiple options for this. The best one I found was ...
Dexter asked 10/7, 2017 at 14:36

8

Solved

Using C#, I am finding the total size of a directory. The logic is this way : Get the files inside the folder. Sum up the total size. Find if there are sub directories. Then do a recursive search. ...
Kittle asked 5/6, 2010 at 6:34

5

Solved

Is there something that I need to reference? How do I use this: Dim fso As New FileSystemObject Dim fld As Folder Dim ts As TextStream I am getting an error because it does not recognize these o...
Sememe asked 13/7, 2010 at 0:0

3

Solved

I have a simple vbs-file on my drive c: with following content: Set objShell = CreateObject("Scripting.FileSystemObject") When I'm trying to launch it, I get error c:\fso.vbs(1, 1) Microsoft...
Angus asked 28/3, 2011 at 9:27

3

Solved

I'm using Microsoft Scripting Runtime (FSO) to parse folders and produce a list of all of its contents, the folders are on a network and resultant paths end up longer than 260. The minimum code I h...
Anglicanism asked 18/7, 2016 at 8:46

2

EDIT: I'm trying to read all the files in a specific folder and list the files in there, not read the content of a specific file. I just tried to simply create an FileSystemObject and it doesn't do...
Lavona asked 11/8, 2011 at 7:4

2

Solved

I'm close to going insane. I have a configuration of code in VBS and it throws an error that should be logically impossible. Check this code: (You need at least 10 reputation to post images. Well ...
Grinnell asked 4/6, 2015 at 12:33

3

Solved

I need to get a collection of file names from a folder on a remote server using VBA in excel 2010. I have a function that works and in the majority of cases it would do the job, however the remote ...
Drowse asked 8/10, 2014 at 17:34

1

I want to read a file with FileSystemObject. My code is as following: <!DOCTYPE html> <html lang="en"> <head> <title>Read json</title> </head> <body> &lt...
Disclamation asked 17/10, 2012 at 6:6

2

Solved

I'm looking for a VBA script that will loop through all subfolders of a specified folder. When I say all subfolders, I mean each folder inside the specified folder, and each folder inside of ...
Bock asked 25/3, 2014 at 20:16

2

Solved

I am trying to use FileSystemObject methods to find a specific line in a text file, and within that line replace a specific string. I am relatively new to this, as my current code has excel open th...
Espresso asked 15/10, 2013 at 1:40

1

Solved

I need to loop through the files in a given folder in descending order of 'Last Modified Date'. In the first iteration of the loop I need to be able to open the most recently modified file for rea...
Ludovico asked 29/4, 2013 at 21:29

3

Solved

I have a vbscript that is used to rename files. What I need to implement into the script is something that deletes the "new file" if it already exists. For example: I have a batch of files that a...
Babysitter asked 26/1, 2012 at 0:36

2

Solved

Is it possible to read and write csv files using FileSystemObject in VBA?
Columbic asked 25/2, 2012 at 7:32

2

Solved

I have a classic ASP page - written in JScript - that's using Scripting.FileSystemObject to save files to a network share - and it's not working. ("Permission denied") The ASP page is running unde...
Gloom asked 7/5, 2010 at 19:19
1

© 2022 - 2024 — McMap. All rights reserved.