Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Better way than using a BAT file

I use a BAT file that runs from a share drive to set the security using caspol. After I make the security change, I run setup to update the client to NET 2.0 and place an ICON on the desktop to execute an application on the share drive. Is there a more elegant way to accomplish the same thing without using a BAT file? THe application is and setup are VB.NET 2005.
0
Mr_Fulano
Asked:
Mr_Fulano
1 Solution
 
djon2003Commented:
My way would be to build an installation program that would do security setup & file copy.
0
 
j0rdanCommented:
WSH (Windows Scripting Host) could probably do most of this, though it'd be as trivial as a batch file. You'd have more access to Windows-specific functions, though.

It's what I use for login scripts in place of batch files (for whatever Group Policy can't handle).
0
 
DauheeCommented:
how about using .NET publish features - you can set it for offline compatibility so it will be available even when the published location (web server) is not available. Best of all you won't have to write a line of code and can push out later versions just by republishing :)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
DauheeCommented:
Oh meant to say by publishing you won't be dependant on network drive (they have a tendancy to go down when least expected :) ) and no need for changing policies . .
0
 
Mr_FulanoAuthor Commented:
DJon2003, when you say..."My way would be to build an installation program that would do security setup & file copy", how would you do that? In other words, what would your program do in terms of the security setup? Remember, I use a BAT file that runs from a >>share drive<< to set the security using caspol.

Can you provide a more detailed explanation?

Thanks,
Fulano
0
 
Mr_FulanoAuthor Commented:
Dauhee, I'm not sure that .NET publish features would help. Could you give a more detailed example of how that would replace my BAT file.

Keep in mind, I'd really like to use an installation program, but the trick is running the install from a shared drive, where I do not know what drive that will be at design time.

In my scenario, the user wishing to use the shared application from their client would connect to the shared drive (which I do not know at design-time where that is), click on an install application and then it would change the Caspol security setting on >>their<<, machine.

Any examples would be greatly appreciated!

Thanks,
Fulano

 
0
 
DauheeCommented:
There are different ways to do it but I believe its called clickonce deployment. Here is one method:

http://www.codeproject.com/KB/install/QuickClickOnceArticle.aspx
0
 
Mr_FulanoAuthor Commented:
Dauhee, sorry for the delay. I actually converted the BAT file into an EXE with BAT2EXE. It works OK for now, but I will take your suggestions into consideration for future improvements.

Thanks,
Fulano
0
 
DauheeCommented:
No problem many thanks :)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now