Visual Basic Questions ~ Adidam

Welcome to CPAElites - the original incentive CPA affiliate marketing forum online, solely based on "Cost Per Action".

Be a part of something great, join today! Learn CPA marketing with CPAElites, we will teach you everything such as the best CPA networks, CPA offers with highest payouts and best conversion rates, unsaturated CPA niches, most effective traffic sources and more.

adidam

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
July 26, 2013
Messages
960
Reaction score
0
Location
192.168.1.1
Hey There,

I prepare my own Applications like Downloaders, Cracks, Keygens, Hack Tools etc. So it's like I have learned a lot here and there on forums but I have certain questions to ask now. I'm sorry If I'm annoying but I'm a newbie I never used Visual Basic or VB.Net. I have started using it just 1 month ago so I actually don't know the correct terms even so that I can search on Google for tutorials.

Well, Here are the questions.

1. How can I make a tool which can create a folder while running? As we see when installation are processing it creates folders for the game automatically like Bin, Music, Images, System, Help etc. So How can I do this with an Application made up from Visual Basic?


I will add more questions time to time when I will have them in my mind. I will just update this very first post :)


P.S.: I'm making this thread so that every newbie can learn from it. I like sharing :)


@Admins and Mod: I'm sorry if I have to use some Niches in this thread because sometimes it's necessary to tell the example to ask the questions. Please, Taking knowledge in any manner is not a rule breaking :)
 

moneyboy2012

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
May 3, 2013
Messages
1,520
Reaction score
0
Age
28
Location
India
Website
profitnotch.com
punkHD said:
System.IO.Directory.CreateDirectory(Folder Path Here)

thanks for that.:)
well can u provide me a solution like i wanna create a folder with custom name onto desktop after progressbar finishes ;)
 

adidam

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
July 26, 2013
Messages
960
Reaction score
0
Location
192.168.1.1
punkHD said:
System.IO.Directory.CreateDirectory(Folder Path Here)

Thanks. Can you tell me. Like I want user a choice that whererver he want's to make the folder. He can just browser and select.

I want that at that browsed and selected place only the folder should create.

How to do so?
 

-qwerty-

Banned
Banned
Banned, please read member profile -> "About"
Joined
May 31, 2013
Messages
532
Reaction score
0
moneyboy2012 said:
punkHD said:
System.IO.Directory.CreateDirectory(Folder Path Here)

thanks for that.:)
well can u provide me a solution like i wanna create a folder with custom name onto desktop after progressbar finishes ;)

Here you go:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\FolderName")

Change "Foldername" with the name of your new folder.
 

adidam

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
July 26, 2013
Messages
960
Reaction score
0
Location
192.168.1.1
-qwerty- said:
moneyboy2012 said:
punkHD said:
System.IO.Directory.CreateDirectory(Folder Path Here)

thanks for that.:)
well can u provide me a solution like i wanna create a folder with custom name onto desktop after progressbar finishes ;)

Here you go:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\FolderName")

Change "Foldername" with the name of your new folder.

Wrong ^^

Correct is:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) & "\FolderName")
 

-qwerty-

Banned
Banned
Banned, please read member profile -> "About"
Joined
May 31, 2013
Messages
532
Reaction score
0
adidam said:
-qwerty- said:
moneyboy2012 said:
punkHD said:
System.IO.Directory.CreateDirectory(Folder Path Here)

thanks for that.:)
well can u provide me a solution like i wanna create a folder with custom name onto desktop after progressbar finishes ;)

Here you go:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\FolderName")

Change "Foldername" with the name of your new folder.

Wrong ^^

Correct is:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) & "\FolderName")

Actually, you're wrong.. it's not hard to search on the Internet, because Microsoft made a whole Wikipedia for all the codes they have in VB.NET.

http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx

Desktop - The logical Desktop rather than the physical file system location.

DesktopDirectory - The directory used to physically store file objects on the desktop. Do not confuse this directory with the desktop folder itself, which is a virtual folder.
 

adidam

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
July 26, 2013
Messages
960
Reaction score
0
Location
192.168.1.1
-qwerty- said:
adidam said:
-qwerty- said:
moneyboy2012 said:
punkHD said:
System.IO.Directory.CreateDirectory(Folder Path Here)

thanks for that.:)
well can u provide me a solution like i wanna create a folder with custom name onto desktop after progressbar finishes ;)

Here you go:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\FolderName")

Change "Foldername" with the name of your new folder.

Wrong ^^

Correct is:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) & "\FolderName")

Actually, you're wrong.. it's not hard to search on the Internet, because Microsoft made a whole Wikipedia for all the codes they have in VB.NET.

/en-us/library/system.environment.specialfolder.aspx

Desktop - The logical Desktop rather than the physical file system location.

DesktopDirectory - The directory used to physically store file objects on the desktop. Do not confuse this directory with the desktop folder itself, which is a virtual folder.

All I know is, Your command is not making any folder on Desktop and Mine command is making the folder. :)

I'm not saying I know better than you. I have started using Visual Basic just 1 month ago. But the thing is from what thing we getting our work done. Maybe you are right but the thing is your code is not making any folder.
 

-qwerty-

Banned
Banned
Banned, please read member profile -> "About"
Joined
May 31, 2013
Messages
532
Reaction score
0
adidam said:
-qwerty- said:
adidam said:
-qwerty- said:
moneyboy2012 said:
thanks for that.:)
well can u provide me a solution like i wanna create a folder with custom name onto desktop after progressbar finishes ;)

Here you go:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\FolderName")

Change "Foldername" with the name of your new folder.

Wrong ^^

Correct is:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) & "\FolderName")

Actually, you're wrong.. it's not hard to search on the Internet, because Microsoft made a whole Wikipedia for all the codes they have in VB.NET.

/en-us/library/system.environment.specialfolder.aspx

Desktop - The logical Desktop rather than the physical file system location.

DesktopDirectory - The directory used to physically store file objects on the desktop. Do not confuse this directory with the desktop folder itself, which is a virtual folder.

All I know is, Your command is not making any folder on Desktop and Mine command is making the folder. :)

I'm not saying I know better than you. I have started using Visual Basic just 1 month ago. But the thing is from what thing we getting our work done. Maybe you are right but the thing is your code is not making any folder.

I'm not sure what's wrong, but it works fine for me.

At least you got it working, so it doesn't really matter, does it? :)
 

adidam

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
July 26, 2013
Messages
960
Reaction score
0
Location
192.168.1.1
-qwerty- said:
adidam said:
-qwerty- said:
adidam said:
-qwerty- said:
Here you go:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\FolderName")

Change "Foldername" with the name of your new folder.

Wrong ^^

Correct is:
Code:
System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) & "\FolderName")

Actually, you're wrong.. it's not hard to search on the Internet, because Microsoft made a whole Wikipedia for all the codes they have in VB.NET.

/en-us/library/system.environment.specialfolder.aspx

Desktop - The logical Desktop rather than the physical file system location.

DesktopDirectory - The directory used to physically store file objects on the desktop. Do not confuse this directory with the desktop folder itself, which is a virtual folder.

All I know is, Your command is not making any folder on Desktop and Mine command is making the folder. :)

I'm not saying I know better than you. I have started using Visual Basic just 1 month ago. But the thing is from what thing we getting our work done. Maybe you are right but the thing is your code is not making any folder.

I'm not sure what's wrong, but it works fine for me.

At least you got it working, so it doesn't really matter, does it? :)

No Sir. All I liked that you are continuously helping newbies which makes a difference :) I like your this helps and I hope you will continue helping us :)

Thanks a lot :)
 
Top Bottom