473,808 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copying root directory

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
Dec 17 '05
16 2450
Don't I know it <g>.

..MoveNext the bane of my life. If I get a bug in a recordset iteration it's
because I've missed that line by typing faster than I can think (and I don't
type fast <g>).

--
Terry Kreft

<pi********@hot mail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
sorry, that's what happens when you write off the top of your head in
notepad...

Dec 20 '05 #11
Terry & Piet.

Firstly, Seasons greetings to both you and your families.

Thank you so much, between the 2 of you I managed to piece it together.

I would like to go 2 steps further if you can assist:

I think this is a big ask & will test you.. :-)

1. I need to copy a portion of text from 1 field to another. eg "Tom Jones -
She's A Lady"... I would like to cut "Tom Jones - " delete the 2 spaces &
dash then paste "Tom Jones" into the new field, structured in a loop fashion
to do all records that match this type of criteria.

2. It would save me literally months of data entry if there was a way of
copying the "tag info" of each file, that which is displayed in the windows
explorer.

Thx again.

TIA
Mark.
"Terry Kreft" <te*********@mp s.co.uk> wrote in message
news:1E******** ************@ka roo.co.uk...
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


Dec 22 '05 #12
I managed to fix no.1 by parsing the text using Left$ & Right$, so thats
cool.

thx again
Mark
"NoodNutt" <no******@iprim us.com.au> wrote in message
news:43******** @news.iprimus.c om.au...
Terry & Piet.

Firstly, Seasons greetings to both you and your families.

Thank you so much, between the 2 of you I managed to piece it together.

I would like to go 2 steps further if you can assist:

I think this is a big ask & will test you.. :-)

1. I need to copy a portion of text from 1 field to another. eg "Tom
Jones - She's A Lady"... I would like to cut "Tom Jones - " delete the 2
spaces & dash then paste "Tom Jones" into the new field, structured in a
loop fashion to do all records that match this type of criteria.

2. It would save me literally months of data entry if there was a way of
copying the "tag info" of each file, that which is displayed in the
windows explorer.

Thx again.

TIA
Mark.
"Terry Kreft" <te*********@mp s.co.uk> wrote in message
news:1E******** ************@ka roo.co.uk...
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



Dec 22 '05 #13

Mark, Are you trying to read in the MP3 tags off of MP3 files, or are
you using the file names themselves?

On Thu, 22 Dec 2005 21:42:04 +1100, "NoodNutt"
<no******@iprim us.com.au> wrote:
Thank you so much, between the 2 of you I managed to piece it together.
I would like to go 2 steps further if you can assist:
I think this is a big ask & will test you.. :-)
1. I need to copy a portion of text from 1 field to another. eg "Tom Jones -
She's A Lady"... I would like to cut "Tom Jones - " delete the 2 spaces &
dash then paste "Tom Jones" into the new field, structured in a loop fashion
to do all records that match this type of criteria.
2. It would save me literally months of data entry if there was a way of
copying the "tag info" of each file, that which is displayed in the windows
explorer. "Terry Kreft" <te*********@mp s.co.uk> wrote in message
news:1E******* *************@k aroo.co.uk...
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 <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

--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing

Dec 22 '05 #14
G'day chuck,

Thx for replying, I actually have imported all the file names already, I was
hoping there was a way of extracting the tagged info that accompanies mp3
files.

unless there is another program that can store tag info & export in
tab/comma delimited.

thx again.
Mark

"Chuck Grimsby" <c.*******@worl dnet.att.net.in valid> wrote in message
news:32******** *************** *********@4ax.c om...

Mark, Are you trying to read in the MP3 tags off of MP3 files, or are
you using the file names themselves?

On Thu, 22 Dec 2005 21:42:04 +1100, "NoodNutt"
<no******@iprim us.com.au> wrote:
Thank you so much, between the 2 of you I managed to piece it together.
I would like to go 2 steps further if you can assist:
I think this is a big ask & will test you.. :-)
1. I need to copy a portion of text from 1 field to another. eg "Tom
Jones -
She's A Lady"... I would like to cut "Tom Jones - " delete the 2 spaces &
dash then paste "Tom Jones" into the new field, structured in a loop
fashion
to do all records that match this type of criteria.
2. It would save me literally months of data entry if there was a way of
copying the "tag info" of each file, that which is displayed in the
windows
explorer.

"Terry Kreft" <te*********@mp s.co.uk> wrote in message
news:1E****** **************@ karoo.co.uk...
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 <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

--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing

Dec 23 '05 #15

Check out the Tag & Rename program. It will do exactly that!

http://www.softpointer.com/tr.htm

I think it's about $25.

If you want to do it all inside Access, there are a couple of MP3
class files on the web that can do this, but the tag&rename program is
a lot nicer to use, and has a bunch of nice features already built-in
that you won't have to program in.

I have the Tag&&Rename program myself (I'm a user, I didn't write it)
and use it for editing the tags and exporting the tag information to a
CSV, then I import the data into my MP3 Database in Access/SQL.

I spent quite a bit of time doing it all myself with my own code, but
in the end it was just easier and simpler to do it with the Tag&Rename
program (which will also link up with a couple of CD Libraries on the
web and grab information for you.)

On Fri, 23 Dec 2005 20:30:49 +1100, "NoodNutt"
<no******@iprim us.com.au> wrote:
Thx for replying, I actually have imported all the file names already, I was
hoping there was a way of extracting the tagged info that accompanies mp3
files.
unless there is another program that can store tag info & export in
tab/comma delimited. "Chuck Grimsby" <c.*******@worl dnet.att.net.in valid> wrote in message
news:32******* *************** **********@4ax. com...

Mark, Are you trying to read in the MP3 tags off of MP3 files, or are
you using the file names themselves?

On Thu, 22 Dec 2005 21:42:04 +1100, "NoodNutt"
<no******@iprim us.com.au> wrote:
Thank you so much, between the 2 of you I managed to piece it together.
I would like to go 2 steps further if you can assist:
I think this is a big ask & will test you.. :-)
1. I need to copy a portion of text from 1 field to another. eg "Tom
Jones -
She's A Lady"... I would like to cut "Tom Jones - " delete the 2 spaces &
dash then paste "Tom Jones" into the new field, structured in a loop
fashion
to do all records that match this type of criteria.
2. It would save me literally months of data entry if there was a way of
copying the "tag info" of each file, that which is displayed in the
windows
explorer.

"Terry Kreft" <te*********@mp s.co.uk> wrote in message
news:1E***** *************** @karoo.co.uk...
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

<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

--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing

--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing

Dec 23 '05 #16
Thx heaps chuck, I'll get strait on it after my new year hangover.

reg's
Mark.

"Chuck Grimsby" <c.*******@worl dnet.att.net.in valid> wrote in message
news:7m******** *************** *********@4ax.c om...

Check out the Tag & Rename program. It will do exactly that!

http://www.softpointer.com/tr.htm

I think it's about $25.

If you want to do it all inside Access, there are a couple of MP3
class files on the web that can do this, but the tag&rename program is
a lot nicer to use, and has a bunch of nice features already built-in
that you won't have to program in.

I have the Tag&&Rename program myself (I'm a user, I didn't write it)
and use it for editing the tags and exporting the tag information to a
CSV, then I import the data into my MP3 Database in Access/SQL.

I spent quite a bit of time doing it all myself with my own code, but
in the end it was just easier and simpler to do it with the Tag&Rename
program (which will also link up with a couple of CD Libraries on the
web and grab information for you.)

On Fri, 23 Dec 2005 20:30:49 +1100, "NoodNutt"
<no******@iprim us.com.au> wrote:
Thx for replying, I actually have imported all the file names already, I
was
hoping there was a way of extracting the tagged info that accompanies mp3
files.
unless there is another program that can store tag info & export in
tab/comma delimited.

"Chuck Grimsby" <c.*******@worl dnet.att.net.in valid> wrote in message
news:32****** *************** ***********@4ax .com...

Mark, Are you trying to read in the MP3 tags off of MP3 files, or are
you using the file names themselves?

On Thu, 22 Dec 2005 21:42:04 +1100, "NoodNutt"
<no******@iprim us.com.au> wrote:
Thank you so much, between the 2 of you I managed to piece it together.
I would like to go 2 steps further if you can assist:
I think this is a big ask & will test you.. :-)
1. I need to copy a portion of text from 1 field to another. eg "Tom
Jones -
She's A Lady"... I would like to cut "Tom Jones - " delete the 2 spaces
&
dash then paste "Tom Jones" into the new field, structured in a loop
fashion
to do all records that match this type of criteria.
2. It would save me literally months of data entry if there was a way of
copying the "tag info" of each file, that which is displayed in the
windows
explorer.

"Terry Kreft" <te*********@mp s.co.uk> wrote in message
news:1E**** *************** *@karoo.co.uk.. .
> 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

> <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
--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing

--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing

Dec 30 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1988
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
5
3672
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?)
4
7869
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...
19
10243
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
10
7841
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
4
15425
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.
17
2923
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...
8
1845
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...
4
2450
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;
0
9600
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,...
0
10633
Oralloy
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...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
agi2029
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...
1
7651
isladogs
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...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
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
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.