Jump to content

Recommended Posts

Posted

public static void batRemove(String store, String remove)
        {
            StreamWriter tw = new StreamWriter(store);
            tw.WriteLine("@echo off");
            tw.WriteLine(":a");
            tw.WriteLine("del \"" + remove + "\"");
            tw.WriteLine("IF EXIST \"" + remove + "\" GOTO a");
            tw.WriteLine("del %0");
            tw.Close();
            Process proc = new Process();
            proc.EnableRaisingEvents = false;
            proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
            proc.StartInfo.FileName = store;
            proc.Start();
        }

 

This is a .bat program that makes the program to vanish itself. Is there any way to make it for VB with a timer?

Posted

Actually if you tell me what you wanna do I can help you.

But I don't get it , you want to remove the vb program or the bat file?

In the code above the bat file removes itself, but if done a lot of times causes the system to melt.

(you know like those trojans sometimes do)

Posted

I want to make for example a small release of a program and it will be like preview with less features than the full version, so it will last for 2 weeks and then it gets vanished itself so it wont be cracked ..

Posted

OMG Thanks SO MUCH FOR THE IDEA!!!!!!!!!!!!!!!!!!!!!!!!!!

I finally utilized what I had in mind for sooooooooooooooooo long.

Here's the code:

Private Sub Expire(ByVal expire_day As Integer, ByVal expire_month As Integer, ByVal expire_year As Integer)
        Dim expire_date As Date = New Date(expire_year, expire_month, expire_day)
        If Today.Date = expire_date Or Today.Date > expire_date Then
            MsgBox("Oh shit your software has expired!")
        Else
            MsgBox("Ok you can go on!")
        End If
    End Sub

After the first msgbox you can add code like this Me.close and the form will play the message "Oh shit your software has expired!" and then quit.

Thats all from me.

 

Guest
This topic is now closed to further replies.


  • Posts

    • 👑 [FOR SALE] Lineage 2 Premium UCP – Modern Web Panel with Progression & Reward Systems. Looking for the ultimate edge to make your server boom and boost revenue? Introducing the L2 Premium UCP—the most comprehensive and modern User Control Panel on the market. Developed with a total focus on player experience (UX) and administrative automation. Say goodbye to outdated, buggy panels. Give your server the look and feel of an official game!  
    • Here I agree with you, because I get tired of clients like you and I don’t see any problems. Since you act in such a strange way, I’ll mirror it back to you, little brother.   Alice will even post a correspondence with you where you've been asking the same stupid questions (about prices or products) for three years and let everyone look and draw two personal conclusions about you (you're a little child)     If anyone wants to add you as a buyer to their group, let them take you hand and foot. I'll even help you pack you into an iron box.   Let's look at your last reply where you wish me luck in sales but then immediately run off to complain on the forum  yes, that's what people like you do and yes, I don't want to see people like you in my group or anywhere near it.   We're freelancing here, and yes, at first I check for loyalty and patience with clients, but when year after year they only ask me about prices - you know, if someone needs this, it's definitely not me.   Go with God, little brother, and find happiness in your life and stop making kindergarten on forums.😂   I don't need clients like that for free - who can't even look at payment methods and immediately become aggressive - and you always use free goods, just like your favorites from the Brazilian forum, you apparently have a fever about this - I have nothing against it - we had a nice conversation, everything is fine.            
    • Looking to release interface source from newer clients, if you got a client message me on discord: ilikebeer.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..