473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

making folder

lee123
556 512MB
Question 1

is it possible to make folders for you project

Question 2,

is it possible to copy a file to put in that folder you made example: (a song).

so when you package it up the new folder & file (the song) is in there..

lee123
Aug 29 '08 #1
3 1108
QVeen72
1,445 Expert 1GB
Hi,

Yes, You can Create a Folder by using IO Dos Commands and also using FileSystemObject..

Simple IO Commands to create Folder:
MkDir "C:\MyFolder"

Copy file from one folder to another:
FileCopy "C:\Temp.txt", "C:\MyFolder\Temp.txt"


Regards
Veena
Aug 29 '08 #2
lee123
556 512MB
sounds easy, but what is IO Dos Commands? and where is this located and do i put this in a modual code or somewhere else? please Explain to me because i have never done this before. a step by step would be nice if your up to it with a good example. acually this would be a great tutorial you guys can post for all us can see..who doesn't know how to do this.

lee123
Aug 29 '08 #3
vdraceil
236 100+
sounds easy, but what is IO Dos Commands? and where is this located and do i put this in a modual code or somewhere else? please Explain to me because i have never done this before. a step by step would be nice if your up to it with a good example. acually this would be a great tutorial you guys can post for all us can see..who doesn't know how to do this.

lee123

Mkdir,FileCopy comes under VBA library and so when you open a new project commands like them are available by default.

you can use FileSystemObject for file/folder operations-this has got more options than the IO DOS Commands-like FileExists,FolderExists,GetFileVersion,GetExtensio nName..etc.,
but to use this you have to include 'Microsoft Scripting Runtime' library to your 'Project References' and is not available by default.

its not necessary that you must use these in the module-you can use it anywhere in your project.

you can make good use of the ObjectBrowser in VB6 to know about all methods in loaded libraries.
Aug 30 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Daniel | last post by:
Hello, I'm using Brinkster Professional for web hosting. And they give me a common bin folder, that all projects should use, however Visual Studio compiles the assemblies to the application...
4
by: Pavel | last post by:
Hello. I am trying to make a folder compressed and failing miserably. Below are three ways that I tried to make it compressed, all of them compile and run w/o any problems, but the folder is...
0
by: Andy Sutorius | last post by:
Hi, I have been working on creating an administrative section of a website. I have been using MS KB Article 301240. I created a root/test2 folder and placed all of the files inside of test2. I...
3
by: Brian Henry | last post by:
How would you go about doing this I have a tree view which where anything is a parent it is a folder (folder icon, and the tag for the object is a string that says "FOLDER:{name of folder...
4
by: Ernesto | last post by:
I used Popen to launch a seperate telnet window, like this: subprocess.Popen("start telnet.exe -f C:\Folder\File.txt localhost 6000",shell=True) I is preferable to have this telnet window with...
1
by: keithb | last post by:
My ASP.NET 2.0 application has a User Control that contains a DataList that is unable to get style information from a style located in a css file in the themes folder. The user control CssClass and...
3
by: webandwe | last post by:
Hi, I got form that let you state a folder name, on sumbit thw script creates the folder with the name you stated, the problem is I want it to upload the php file "view.php" when the folder is...
3
by: Gurpreet Singh | last post by:
hi everyone, i want to create a folder on the harddisk using c program. the folder is infact a nested folder like sec1\subsec22\subsec9 to be created in c:\ drive. I tried the following...
0
by: Tim Golden | last post by:
dudeja.rajat@gmail.com wrote: The most obvious possiblity (there are others) is that you don't have permission to delete / rename the files. That's a question of NTFS permissions, not...
4
lee123
by: lee123 | last post by:
Hi there i was wondering how you make a folder in code to place a text document. another words, i want to create a folder for a text file i create so when iim done with writing the txt file it will...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.