Watermarking Software That Works Via Shell Command And Hence Can Be Automated Via VB?
Dec 31, 2009Is there a way to do that in vb.net OR Is there a watermarking software that works via shell command and hence can be automated via VB?
View 5 RepliesIs there a way to do that in vb.net OR Is there a watermarking software that works via shell command and hence can be automated via VB?
View 5 RepliesPuzzled why the same Sub Page_Load code will not work if used on the codebehind file. Current code works fine if used directly on the aspx page,but as soon as i try placing the same code in a codebehind file the images will not show at all. Will post code sample if requested.. The way the code is setup thumbnail page opens a new page that displays larger image with watermark. the watermark page only contains code that creates the watermark for the larger image page.
View 7 RepliesI am not stuck with the code side but rather what seems an issue when using VB and creating well verifying an Twitter Account. I have tried to explain as best as possible but please ask if you need more info
I am currently well on the way to finishing my Twitter Account Creator which also verifies and completes the profile fields but I have encountered a problem and for once not a problem relating to the code side of things at least I don't think it is.
At the moment for testing reasons I have 2 buttons one which creates the account and a second which verifies the account now I am using incognitomail.com (temp email provider) and have 2 web browsers running within my VB program. 1 is for Twitter and 1 is for Incognitomail.com I have no problems clicking and navigating to the verify link and then logging in to verify the Twitter Account but it never verifies and I cannot figure out why.
Say I put another text box and used it to navigate to url's on web browser 1 (twitter) and copied the verify link and put it in the text box it navigates I login and its the fine the account is verified but if I set VB to navigate (can't click because it opens in IE and not within the VB web browser) to the verify link it never verifies I have even tried making the text box fill and then navigate via that just as if a human was doing it but still no luck.
Does anyone have any idea as to why these Twitter Accounts are not verifying when the VB program performs the navigating to the verify link then login but if I do it myself i.e copy the verify link put it in the text box which navigates the web browser then it verifies fine?This is the one step standing in the way from my program being about to create and verify accounts and will not cost a fortune as this was a personal project to counter the lack of Twitter Creators which both work fully and are cheap.
The code in question is in place, and it works. The project is all but wrapping up. That being said, I would love to find a better way to run this section of code in an x64 system so I have the solution ready for future projects. What I currently have in place is as follows:
Function TimeDelay(vDelay)
Dim vTimmer, vTargetTime
vTimmer = TimeValue(Now)
[CODE]...
Now I know the easy way to achieve my goal would be to use the timer object in Visual Studio. The problem I ran into is I was developing an automated command line program. As such there was nothing I could attach the timer to (that I'm aware of). I just needed to pause the program for a few seconds to allow the DTSX package (SSIS file if you're not familiar) to load the file before I remove it from the staging folder.
While I was doing research for this issue I came across the old Sleep() function (referenced to a library in kernel32 as I understand it...never used this before either). When I tried to use this on my current system (64-bit system) I received stack overflow errors. Additional research lead to something called wow64, but I did not have enough time to fully research what this is / how to use it.
I have a VB.net program in which I call the Shell function. I would like to get the text output that is produced from this code in a file. However, this is not the return value of the executed code so I don't really know how to.
This program is a service but has access to the disk no problem as I already log other information. The whole service have multiple thread so I must also make sure that when the file is written it's not already accessed.
So the app that I am working on requires me to launch shell commands that output text into a command prompt window. I need to be able to capture that text into a string.
View 3 RepliesI'm using a VB.net process to shell another exe process (which will wait until completion before processing is continued in the main app); however, I need to know if there is an error in the shelled exe process before continuing in the main app.
View 2 RepliesI'm trying to run batch files code within Visual Basic. I've been told you can do this using the Shell command, however I'm running into trouble with double quotes.As the Shell command syntax is Shell("codecodecode"), I'm not sure what to do when the batch file already contains quotes.
For example, how would I use the code:
copy "file location" "destination"
I know this is simple but if I want to run a shell command upon termination of the application,
where do I put the code?
I have multiple shell statements, give code example if you can
I am trying to execute a shell command with vb.net that includes variable from the vb.net code.I have experience with batch, and Unix scripting. I had to modify the contents of the code as it is confidential to me at the moment.Example of my problem:
Dim Variable1 As String = "Location_to_.exe"
Dim Location As String = "UNC_Path_Goes_Here"
Dim Options As String = "/Options go here"
Shell("cmd.exe", /C Variable1, Location, Options) This is something that must be run from CMD.exe and I am trying to do it this way to make it as dynamic as possible.
I have the below code in a VB Console project. The AppWinStyle function is not hiding the window as expected?[code]...
View 3 RepliesI know the "Process.Start" function, but it creates a new object of the cmd shell which terminates itself when the Python script is at its end. How can i open the original Windows Command Shell so that the Python file can run to its end without the box getting closed?
View 6 RepliesJust wondering how can i repeat a shell command every 10 or so seconds
View 6 RepliesI am trying to setup a variable in VB, which will execute a shell command (autostatus.exe) with a parameter (-j JobName), and later display the output of the said variable. The code thus far is...
Dim JobName
Dim JobStatus
JobName = "asysr11_set_global_var_2day"
JobStatus = ShellExecute("autostatus.exe", -j, JobName)
What is the easiest way to achieve this? Currently, the above code returns error message "line:4, Type mismatch: 'ShellExecute', code: 800A000D"
I have a visual basic shell command that installs an IPP printers with a shell command. It asks for the username for the port.
userport = username.Text
How do I Incorporate that into:
Shell("rundll32 printui.dll,PrintUIEntry /b ""AT-LAB-BWQ"" /if /f %windir%inf
tprint.inf /r
""[URL]"" /m
""HP Color LaserJet 2800 Series PS"" /z /u")
I've created a very basic WF Shell project which runs an EXE (xyz.exe) in the WF Shell project's Resource folder. I can get a command line working from the Shell to open the other EXE (xyz.exe). But, I can't get code to close the Shell project's other EXE (xyz.exe) once it is opened. The xyz.exe windows called by the Shell continues to stay open even if I pass a "close" command line to the Shell.
The following code (which Paul suggested in another posting) will not close the other (xyz.exe) EXE's running process (when called by the Shell). While the Shell seems to be able to return it's called subordinate EXE's (xyz.exe) ID, not sure how to use such an ID to close its process.
Imports System.Diagnostics
Module Module1
Dim resourceFolder As String = Application.StartupPath & "Resources"
[code]....
I've researched this - and have read the other posts on this forum so this isn't a request for the commands themselves.My issue is that I can't get the 'desktop background' (to change the picture) applet to run from the following:Call Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0", 1)
what I get from changing the commands are the following:Desktop Icon Settings Call Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0", 1)
Screensaver Call Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1", 1)
Appearance settings Call Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2", 1)
Resolution settings Call Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3", 1)
If I increment up from 3 (desk.cpl,,3) to 4,5,6 etc it still only gives me resolution settings. I tried up to 15 but lost the will to live after that! I'm using Vista (and VB 2008) so not sure if this is the issue, but if anyone has any suggestions please - I'm all ears.
I'm using the following code to execute a command-line script, which uses imagemagick (a third-party, free, image tool) to create a watermark. (And then I run a similar command to attach the watermark to my image.)What I need, though, is to be able to receive the RESPONSE/RETURN CODE from the execution...it seems to sometimes fail.
[Code]...
Is there any way i can run a Quest AD management shell command (not a plain powershell command) from Vb 2005 ? i mean do i need to register a snap-in within vb or register a dll or something ?for eg. i need to create a simple script to add multiple users to multiple groups then i can quickly design the front end in VB with 1 textbox for users & 1 for groups & then in background can i run a quest ad management shell command to actually add the groups (using add-qadgroupmember in this case)
View 3 RepliesI searched around and could not find a solution so I am sorry if I started something that has already been covered. Want I want to do is run a command line code and simply return a boolean of if it was successful or not. Is this possible? Typically when you run something (example net user User Pass) it will return a value "The command Completed Successfully." If I return this value I will have it from there.
View 10 RepliesI haven't touched VB or Visual Studio in an incredibly long time, so I appologize if this sounds ignorant.
Right now, my application (pictured below) is a simple button that executes a shell command. I was thrilled that I even managed that, but it got me to wondering if my application could execute that command, rather than sending the process to cmd.exe.
I would like to have the single command shell, aka cmd, in my app within a form in an interactive way.
View 6 Repliesi am trying to open a excel 2007 file using a shell command in visual studio .net 2008 from a button object but it says "File Not Found" even though I created the file and put it into the same folder as the application.
View 2 RepliesI have a legacy vb6 application that uses a shell command to launch a newer .net application. It's a very simple command, just launches an app. Here's the problem. When I run the .net app through the shell command, it tries to connect to a database that is not referenced in it. If I double-click the .net executable, it runs just fine and connects the way it is supposed to. Normal, no problems. Only when I run it from the shell command do I have problems. I have checked everything I can think of and simply can not come up with a reason why the app would behave differently when launched from a shell command.
View 3 RepliesI am trying to convert one of my unix text files to a dos text file. I am using the following command:
Shell(string.format("unix2dos {0}", sFileCompletePath))
I've already added the unix2dos command in my environment path on the server.But when I execute the above mentioned command I get a FileNotFound exception even when the file is located on the disk.
I'm having trouble getting this Shell command to hide this script. I got this Shell command to work with other compiled VB script but blog_finder.exe was created by some other program. Any ideas on how to hide it or minimize it. All variations of AppWinStyle.xxx doesn't seem to work. [Code]
View 2 RepliesIf I execute any shell command in VB application How can I capture the return code from the shell command. I have written something like this
shell(db2look ....,AppWinStyle.Hide)
Now I want to know the return code of the above command which ran using shell script.
Since redemption isn�t working [URL] - I need to have outlook running to do what I want.For some reason the only time it works is when I have started outlook manually. It doesn�t work when I use:
Shell("C:ProgramMicrosoft OfficeOFFICE11outlook.exe")
or
Shell("C:ProgramMicrosoft OfficeOFFICE11outlook.exe", AppWinStyle.MaximizedFocus)
Do you know how to call the shell command so that the program starts as if I had started it manually?
ok, i've been able to figure out that i can add a button to a menubar (like the file edit view, ones at the top of most programs) and so far i have figured out:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
form1.MenuStrip1.Items.Add(TextBox1.Text)
[code]......
I'm using VB2008 Shell function to execute file with arguments. But I'm not sure how should look my PathName in Shell function with all necessary arguments and command-line switches. Without arguments: [Code]
View 4 Replies