G'day ppl
Is there a process whereby I can copy the text labels of all the files in a
root directory?
I recall going back a long way seeing something about it but did not take
any notice as I didn't think I would ever use it.
TIA
Mark 16 2448
"NoodNutt" <no******@iprim us.com.au> wrote in message
news:43******** @news.iprimus.c om.au... G'day ppl
Is there a process whereby I can copy the text labels of all the files in
a root directory?
I recall going back a long way seeing something about it but did not take any notice as I didn't think I would ever use it.
TIA Mark
Mark, I think you might have posted this to the wrong newsgroup. This group
is for support of Microsoft Access, the desktop database application.
--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
G'day Randy & thx for your reply.
Totally aware of the NG, my dilemma is that I want to import the root
directory file labels into a table, hence the reason I am posting in an
access forum.
Cheers.
Mark.
*** Sent via Developersdex http://www.developersdex.com ***
I think your looking for something like
dim strName as string
strname = Dir("c:\*.*")
do while len(strname) > 0
debug.print strname
strname = dir
loop
--
Terry Kreft
"NoodNutt" <no******@iprim us.com.au> wrote in message
news:43******** @news.iprimus.c om.au... G'day ppl
Is there a process whereby I can copy the text labels of all the files in a root directory?
I recall going back a long way seeing something about it but did not take any notice as I didn't think I would ever use it.
TIA Mark
Oops, sorry. Bad assumption on my part.
The code that Terry provided should do nicely, just substitute an insert for
the debug.print.
--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.
"Mark Lind" <no******@iprim us.com.au> wrote in message
news:q3******** ****@news.uswes t.net... G'day Randy & thx for your reply.
Totally aware of the NG, my dilemma is that I want to import the root directory file labels into a table, hence the reason I am posting in an access forum.
Cheers. Mark. *** Sent via Developersdex http://www.developersdex.com ***
Thx Randy & Terry
Although Terry, code did not work, though I have no idea if I did it correct
or not.
I paste the code behind the OnClick of a cmdbtn but zip happened.
here's the deal:
Using this code, I would like it to collect the info that is displayed in
the explorer view of a folder.
this info would be:
Name/Size/Type/Duration....... ...etc...etc..
I am building a jukebox/library of all the mp3/mpeg/dvd I have on my system,
and don't really want to have to pain stakingly input every one of them.
Thx again
Mark.
"Terry Kreft" <te*********@mp s.co.uk> wrote in message
news:0b******** ************@ka roo.co.uk... I think your looking for something like
dim strName as string
strname = Dir("c:\*.*")
do while len(strname) > 0 debug.print strname strname = dir loop
-- Terry Kreft "NoodNutt" <no******@iprim us.com.au> wrote in message news:43******** @news.iprimus.c om.au... G'day ppl
Is there a process whereby I can copy the text labels of all the files in a root directory?
I recall going back a long way seeing something about it but did not take any notice as I didn't think I would ever use it.
TIA Mark
Well I think you're missing where the output is going.
After you click the button press Ctrl-G on the keyboard that will take you
to the Immmediate window where you should see the file names listed.
--
Terry Kreft
"NoodNutt" <no******@iprim us.com.au> wrote in message
news:43******** @news.iprimus.c om.au... Thx Randy & Terry
Although Terry, code did not work, though I have no idea if I did it correct or not.
I paste the code behind the OnClick of a cmdbtn but zip happened.>>
<SNIP> TIA Mark
I've done this... essentially all you need to do inside the loop is
indicate where the data is going...
'--specify where the information is going to go...
dim rsFiles as DAO.recordset
set rsFIles = DbEngine(0)(0). OprenRecordset( "MyDestTable",d bOpenTable)
'--Borrowed from Terry Kreft...
dim strName as string
strname = Dir("c:\*.*")
do while len(strname) > 0
'debug.print strname
strname = dir
'--Write to table...
rs.AddNew
rs.Fields("File Name")=strname
rs.Update
loop
rs.close
set rs=nothing
Whoops, slight error there piet. It should be as below except
do while len(strname) > 0
'debug.print strname
'--Write to table...
rs.AddNew
rs.Fields("File Name")=strname
rs.Update
strname = dir ' Get thye next one after you've written to the recordset
loop
--
Terry Kreft
<pi********@hot mail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . I've done this... essentially all you need to do inside the loop is indicate where the data is going... '--specify where the information is going to go... dim rsFiles as DAO.recordset set rsFIles = DbEngine(0)(0). OprenRecordset( "MyDestTable",d bOpenTable)
'--Borrowed from Terry Kreft... dim strName as string
strname = Dir("c:\*.*")
do while len(strname) > 0 'debug.print strname strname = dir '--Write to table... rs.AddNew rs.Fields("File Name")=strname rs.Update loop
rs.close set rs=nothing
sorry, that's what happens when you write off the top of your head in
notepad... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jacob |
last post by:
Really more of a VS.NET question than a C# question.... I have a couple
files in my solution that I would like copied to the compile directory when
the solution is built. How do I set it up so that everytime I build the
solution these files will automatically be copied into the same directory?
Thanks,
Jacob
|
by: Leszek |
last post by:
Hello,
Could anybody explain what's a difference between a virtual directory and an
application root under IIS? I'm a little bit confused.
This is mu problem:
Let's assume the following directory structure:
FileManager (application name a.k.a. virtual directory?)
|
by: Win, Pats |
last post by:
I have a snippet of HTML that I inject into a number of pages throughout my
Web site at runtime. My problem is that I'm not getting the image to appear
in all documents into which this snippet is injected.
If I specify a document-relative path (e.g.,
src="../someFolder/AnotherFolder/TheGraphic.gif"), then it works fine, but
only for documents that exist at the level in the directory
structure.
I thought I could use a root-relative...
|
by: Steve Franks |
last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the
default ASP.NET Development Web Server it runs using a root address like
this:
http://localhost:11243/testsite/
However when I deploy to a remote test server running real IIS, the real
root of my application becomes:
http://localhost/
What I want to do is have it so that on my local machine the asp.net dev
|
by: Martin Ho |
last post by:
I am running into one really big problem.
I wrote a script in vb.net to make a copy of folders and subfolder to
another destination:
- in 'from.txt' I specify which folders to copy
- in 'to.txt' I specify where to copy it
- After I read content of 'to.txt' I create one more subfolder named
by current date and thats where everything gets to be copied
| |
by: zMisc |
last post by:
Is it possible to copy a table from one schema to another schema by just
copying the frm file to the directory for the new schema?
What is the best way to create a new database with all the tables in it
automatically?
I was hoping to have the tables (the frm files) included in a subdirectory
and when required, just create a new schema then copy all the frm files into
it.
|
by: Michael |
last post by:
Hello,
I am writing an app that will sit on the desktop. It needs to be able to
make a copy of a folder that sits on the server. It will copy the folder
from the server and place it in the same directory on the same server. This
is the line of code that I am using:
System.IO.File.Copy(sDistinationFolder + "NewOrderTemplate",
sDistinationFolder + myDate.Date + "_" + mtxtJobNumber.Text);
So, as you can see, I am copying a folder...
|
by: news.microsoft.com |
last post by:
I have two completely distinct ASP.NET (2.0) web applications. They share no
code, they have distinct web.config files, they don't even link to each
other. During development, they have lived happily side by side in two
virtual directories in the same IIS website.
e.g. http://localhost/dotnetnuke
and http://localhost/mobilephoneapp
Now they are ready to be deployed to a production webserver (IIS 6.0). I
want the first app to be run...
|
by: supriyamk |
last post by:
Hi,
I am trying to search a directory for subdirectories, recreate the subdirectories elsewhere and copy only certain files from current subdirectory to new subdirectory.
In other words i am sorting filetypes into subdirectories with same name.
so far i have been able to create the subdirectories, but i am not able to copy the files into those directories.
my code is :
use strict;
use warnings;
use File::Glob;
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |