Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 29th, 2008, 01:48 AM
lee123's Avatar
Needs Regular Fix
 
Join Date: Feb 2007
Location: United States
Age: 37
Posts: 465
Default making folder

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
Reply
  #2  
Old August 29th, 2008, 07:51 AM
QVeen72's Avatar
Moderator
 
Join Date: Oct 2006
Location: Bangalore
Posts: 1,292
Default

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
Reply
  #3  
Old August 29th, 2008, 03:46 PM
lee123's Avatar
Needs Regular Fix
 
Join Date: Feb 2007
Location: United States
Age: 37
Posts: 465
Default

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
Reply
  #4  
Old August 30th, 2008, 04:28 AM
vdraceil's Avatar
Familiar Sight
 
Join Date: Jul 2007
Location: tamil nadu, INDIA
Age: 20
Posts: 187
Default

Quote:
Originally Posted by lee123
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.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles