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 ... |
| Notices | Welcome to the Gamerz Needs forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |  | | 
07-08-2008, 03:26 AM
|  | 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 Points: 577.10 Bank: 3,566.86 Total Points: 4,143.96 | | 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: | 
07-08-2008, 07:02 AM
|  | 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 Points: 5.50 Bank: 91,795.06 Total Points: 91,800.56 | | |
Visual basics, Then I can't Help you on that.
Or Can I?!
Time to Make a DLL.
I'll eidt this once done
| 
07-08-2008, 07:08 AM
|  | 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 Points: 577.10 Bank: 3,566.86 Total Points: 4,143.96 | | Quote:
Originally Posted by 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 | 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.
| 
07-08-2008, 07:41 AM
|  | 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 Points: 5.50 Bank: 91,795.06 Total Points: 91,800.56 | | |
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();
Last edited by kaswar; 07-08-2008 at 07:50 AM.
| | The Following User Says Thank You to kaswar For This Useful Post: | | 
07-08-2008, 08:36 AM
|  | 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 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. | 
07-08-2008, 10:30 AM
|  | 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 Points: 5.50 Bank: 91,795.06 Total Points: 91,800.56 | |
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: | | 
07-08-2008, 05:33 PM
| | 1k Points Wasted | | | Join Date: Aug 2006 Location: over there
Posts: 2,122
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 Points: 2,462.30 Bank: 77,975.67 Total Points: 80,437.97 | |
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.
| 
07-09-2008, 04:38 AM
|  | 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 Points: 577.10 Bank: 3,566.86 Total Points: 4,143.96 | |
im using VB 2008 BTW.. | 
07-09-2008, 05:14 AM
|  | 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 Points: 5.50 Bank: 91,795.06 Total Points: 91,800.56 | |
dirky you got everything going good? any questions just ask me | 
07-09-2008, 06:09 AM
|  | 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 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..
|  | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | |