Making a program. Need some help

Visual Basic Discuss, Making a program. Need some help at Programmers Lounge forum; Hi. i was told to make a program.. this might me a simple one for some so i am hoping ...


Go Back   Gamerz Needs - For All Your Gaming Needs! > Technology Zone > Programmers Lounge > Visual Basic
Forgot Password? | Sign Up!

Notices

Advertisement
   

Reply
 
Bookmark this Thread Tools Display Modes
  #1  
Old 07-08-2008, 03:26 AM
dirky00018's Avatar
Violet Hole
 
Join Date: Mar 2007
Posts: 351
Thanks: 42
Thanked 18 Times in 12 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 5
dirky00018 is on a distinguished road
Points: 577.10
Bank: 3,566.86
Total Points: 4,143.96
   
Question Making a program. Need some help

Hi. i was told to make a program.. this might me a simple one for some so i am hoping somebody could help me..

Program to make:

create a simulation of the ff. commands

1. display files in a directory (dir)
2. copy files
3. move files
4. delete files (del)
5. create new folder (mkdir)
6. delete folder (sub directory) (rd)
7. change folder (sub directory) (cd)
8. rename file(ren)


just made number 5 (made number 5 first since its the easiest for me.LoL).. but im trying to figure out how to put all lists of drives and directories in one combo box.. by this i mean that the program will auto search for all drives and directories available in the computer that the program is running on..

something like this:
  #2  
Old 07-08-2008, 07:02 AM
kaswar's Avatar
All Hope is Gone!
 
Join Date: Nov 2006
Location: Location:
Posts: 1,973
Thanks: 228
Thanked 215 Times in 139 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
kaswar will become famous soon enough
Points: 5.50
Bank: 91,795.06
Total Points: 91,800.56
     
  
   
Send a message via MSN to kaswar
Visual basics, Then I can't Help you on that.

Or Can I?!

Time to Make a DLL.
I'll eidt this once done
__________________
  #3  
Old 07-08-2008, 07:08 AM
dirky00018's Avatar
Violet Hole
 
Join Date: Mar 2007
Posts: 351
Thanks: 42
Thanked 18 Times in 12 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 5
dirky00018 is on a distinguished road
Points: 577.10
Bank: 3,566.86
Total Points: 4,143.96
   
Quote:
Originally Posted by kaswar View Post
Visual basics, Then I can't Help you on that.

Or Can I?!

Time to Make a DLL.
I'll eidt this once done
i dont know anything about dlls

just want to have a listbox that displays all directories in the computer. so it will be alot easier for the user to select the directory where they would like to copy or make their new/copied folders or files..

i only got to until displaying the available drives.. but not specific directories like: program files, my documents, etc..

Last edited by dirky00018; 07-08-2008 at 07:34 AM.
  #4  
Old 07-08-2008, 07:41 AM
kaswar's Avatar
All Hope is Gone!
 
Join Date: Nov 2006
Location: Location:
Posts: 1,973
Thanks: 228
Thanked 215 Times in 139 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
kaswar will become famous soon enough
Points: 5.50
Bank: 91,795.06
Total Points: 91,800.56
     
  
   
Send a message via MSN to kaswar
Thats Where my Help comes in. I program in Delphi But If you use my
DLL i just made you can

1.Show all files in a Drive
2. copy files
3. move files
4. delete files
6. delete folder


You have to Declare them but I don't know how, I"LL HAVE TO DIG UP SOME OLD POST
it's easy and It works well.

The functions are

ListFileDir(Path: string; FileList: TStrings); stdcall;
CopyPasteFile(ToCopy: PChar; ToPaste: Pchar); stdcall;
MoveFile(mainfile: Pchar; WhereToGo: Pchar); stdcall;
DeleteFolder(DirName : string): Boolean; stdcall;


And Also for Renaming a File

Just Do Rename();
Attached Files
File Type: rar FilePack.rar (153.5 KB, 2 views)
__________________

Last edited by kaswar; 07-08-2008 at 07:50 AM.
The Following User Says Thank You to kaswar For This Useful Post:
dirky00018 (07-08-2008)
  #5  
Old 07-08-2008, 08:36 AM
dirky00018's Avatar
Violet Hole
 
Join Date: Mar 2007
Posts: 351
Thanks: 42
Thanked 18 Times in 12 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 5
dirky00018 is on a distinguished road
Points: 577.10
Bank: 3,566.86
Total Points: 4,143.96
   
i dunno how to open the file, i dont have delphi compiler. it wont show the right words with notepad either.. i really appreciate you trying to help me. thanks.
  #6  
Old 07-08-2008, 10:30 AM
kaswar's Avatar
All Hope is Gone!
 
Join Date: Nov 2006
Location: Location:
Posts: 1,973
Thanks: 228
Thanked 215 Times in 139 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
kaswar will become famous soon enough
Points: 5.50
Bank: 91,795.06
Total Points: 91,800.56
     
  
   
Send a message via MSN to kaswar
Don't worry dood I'll help you Learn everything about DLLs
It is vital for VB Programmers

First of All Add this to your VB Project

Code:
Declare Procedure ListFileDir Lib "FilePack.dll" (ByVal Path As String, FileList As TString)

Declare Procedure CopyPasteFile Lib "FilePack.dll" (ByVal ToCopy As PChar, ToPaste As PChar)


Declare Procedure MoveFile Lib "FilePack.dll" (ByVal MainFile As PChar, WhereToGo As PChar)

Declare Function DeleteFolder Lib "FilePack.dll" (ByVal DirName As string) as boolean


AND NOW YOUR BASICALLY DONE!

You know How to call Functions Right?

Then Call the Functions From the DLL which is

MoveFile
CopyPaste
DeleteFolder
ListFileDir

have fun
__________________

Last edited by kaswar; 07-08-2008 at 10:40 AM.
The Following User Says Thank You to kaswar For This Useful Post:
dirky00018 (07-08-2008)
  #7  
Old 07-08-2008, 05:33 PM
1k Points Wasted
 
Join Date: Aug 2006
Location: over there
Posts: 2,122
Blog Entries: 6
Thanks: 48
Thanked 169 Times in 132 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog: Very random blog entries (based on time)
Rep Power: 13
cosmeo3000 will become famous soon enoughcosmeo3000 will become famous soon enough
Points: 2,462.30
Bank: 77,975.67
Total Points: 80,437.97
 
Send a message via MSN to cosmeo3000
There's a control for that... hold on lemme see if I can find it in VB.NET, I know it's in vb6. You're talking about the thing that lets see all your files?

EDIT: Hold On, I need to get to my computer with vb6 on it xD

EDIT: Sorry, can't get onto my vb6, just use his, it does seem better
__________________

Dam my other one won't animate for some reason o_O

Last edited by cosmeo3000; 07-08-2008 at 06:00 PM.
  #8  
Old 07-09-2008, 04:38 AM
dirky00018's Avatar
Violet Hole
 
Join Date: Mar 2007
Posts: 351
Thanks: 42
Thanked 18 Times in 12 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 5
dirky00018 is on a distinguished road
Points: 577.10
Bank: 3,566.86
Total Points: 4,143.96
   
im using VB 2008 BTW..
  #9  
Old 07-09-2008, 05:14 AM
kaswar's Avatar
All Hope is Gone!
 
Join Date: Nov 2006
Location: Location:
Posts: 1,973
Thanks: 228
Thanked 215 Times in 139 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 10
kaswar will become famous soon enough
Points: 5.50
Bank: 91,795.06
Total Points: 91,800.56
     
  
   
Send a message via MSN to kaswar
dirky you got everything going good? any questions just ask me
__________________
  #10  
Old 07-09-2008, 06:09 AM
dirky00018's Avatar
Violet Hole
 
Join Date: Mar 2007
Posts: 351
Thanks: 42
Thanked 18 Times in 12 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 5
dirky00018 is on a distinguished road
Points: 577.10
Bank: 3,566.86
Total Points: 4,143.96
   
actually i havent tried the .dll yet..>.< im had a really bad migraine last night after working on that project!! it took me about 2 hours just to figure out how to display the drives in a listbox. i still havent figured out how display all possible directories. damn!! soo noob!LoL.. at least im learning.. :P its a self-study project. i could actually use any language in making that(would be a bit easier with java. LoL).. but want to learn VB..


just wanna have a break before working back on it again. will be trying your .dll as soon as i can.. thanks for the help dude..
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Advertisement
   


Main Navigation
Home
GzN Forums
GzN Games
GzN News
Top Games
GzN Cheats
GzN Articles
GzN Reviews
GzN Downloads
User Control Panel
Advertising
RSS Feed
2Moons
Adventure Quest
AirRivals