
Thoth
Avatar/Signature-
Posts
26 -
Joined
-
Last visited
About Thoth
- Birthday 11/12/1983
Personal Information
-
Visual Studio .NET Version
Visual Studio .NET Professional
-
.NET Preferred Language
VB .NET
Thoth's Achievements
Newbie (1/14)
0
Reputation
-
The For Each loop doesn't solve the problem. I get this error message every time the Droplet is called with an argument: Cannot run droplet because file cannot be found. This error message comes from inside Photoshop, which means the droplet itself is opening properly. However, dragging the files manually onto the droplet works just fine. Agh, I don't understand.
-
I need to load multiple files into a Photoshop droplet. Here is my code: Dim runDroplet As New Process 'Name of the droplet. runDroplet.StartInfo.FileName = "PHAction.exe" 'Folder where droplet is located. runDroplet.StartInfo.WorkingDirectory = CStr(regKey.GetValue("DropletLocation", System.Reflection.Assembly.GetExecutingAssembly.Location.ToString)) 'Directory where files are located, the Remove method removes the last '\' character in the folder. Dim DropletDirectory As String = strDropletInputFolder.Remove(strDropletInputFolder.Length - 1, 1) runDroplet.StartInfo.Arguments = DropletDirectory runDroplet.Start() 'Wait for Photoshop to do work on the files before continuing the process. runDroplet.WaitForExit() I guess I could a For Each loop for every file in the directory.
-
It looks like I'm still having this problem... when I pass the pathname as an Argument with Process.StartInfo.Arguments, the droplet loads, but says that the droplet could not be run because the file could not be found, the file in this case being a directory. What is the proper way to pass a folder as an argument in a Process?
-
How do you bring up the dialog box that allows a user to navigate to a specific folder or directory where he wants something to be placed? I cannot, for the life of me, in all my VB .NET books, find such a control or function or method.
-
Problem solved, ignore this thread.
-
I'm still getting the same issue... in my wwwroot\appname folder, I have a folder named Database, and inside it I have a file, CBSWeb.mdb. So, because I want to use relative pathnames, I set this for my connection string: Me.objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=Database\CBSWeb.mdb;" When I try to run the program, I get this error: 'C:\WINNT\system32\Database\CBSWeb.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. So it somehow thinks I am running from the system32 directory. Is there any way around this so I can use a relative path name?
-
Alright, I see what you mean. However, I'm having a lot of trouble inserting a String object into the Connection String; it seems like the object is being completely ignored. I want to be able to dynamically set the pathname of the Connection String.
-
I did that, however, I also did this: Dim strExe as String = System.Reflection.Assembly.GetExecutingAssembly.Location.ToString Dim d As System.IO.FileInfo d = New System.IO.FileInfo(strExe) By doing this, I determined that it's executing from the WINNT\System32 directory. I need to have something that can be set at runtime in the Connection String.
-
I want to use a relative path to open a database, however, I am doing this from a webform. I put the database in the same directory as the webform, but when I try to make the connection, I get this error: Could not find file 'C:\WINNT\system32\CBSWeb.mdb'. I don't think that putting the database in that directory is the proper solution, so can anyone help? Is it even possible to do relative paths with webforms? I think the issue is that I'm not quite sure where the application "resides", per se, so maybe I'm thinking it's in a directory when it's actually not.
-
Thanks for your help guys, the program now works as specified.
-
This code won't compile, saying that there's no suitable main method. Can anyone tell me what I need to do to make this thing happy? Imports System.Windows.Forms 'Program to insert a comment with the current name and date into the open application. Public Class CommentHeader Sub Main() Dim Name, Time As String 'Get the current time. Time = System.DateTime.Now.ToString 'Get the name of the user logged in. Name = Environment.UserName 'Send the information to the appropriate application. SendKeys.Send("'" & Time & " " & Name) End Sub End Class
-
I'm trying to design some small applications, and these applications don't necessarily need to have forms, in fact it is better if they don't. All I want is the program to run, give a message that it's run, and then quit. In Visual Studio .NET 2003, when I try to create an Empty Project (using VB .NET), and I start writing my Main, I notice I can't use many of the functions I normally could in a Windows Application, like SendKeys, for example. Is there any way I can get all the functions I need without having to deal with forms?
-
The Photoshop droplet is just an .exe. So that looks like it will work, but I'll try both things just to be safe.
-
I have a program that calls a Photoshop droplet with a process. I want this droplet to do some work on all the files in a directory, so I want to call the directory with: 'proc is declared as New Process proc.StartInfo.Arguments = "c:\letspretendthisisthefolder" Is that fine? Or do I need to do something like "c:\letspretendthisisthefolder\*" to tell it to take everything inside that directory?
-
I love them too... but see, the thing is, I thought the problem was this really deep, widespread thing. It took me two days just to isolate it. And then I was so stubborn about getting a DBTimeStamp to work I didn't look at my other options.