0
votes
1answer
90 views

iterate through paths stored in a list then delete them

wanted to ask if it is possible to delete certain files after an advanced search with the use of some sort of batch, in C#. I believe I can do something like: search for the files store the files in ...
1
vote
4answers
115 views

c# scripting vs c# programming [closed]

I'm currently learning C# and I have decided to try to make a few simple games in Unity to keep motivation up while learning. I noticed that in Unity you write C# scripts for player movement etc. ...
1
vote
0answers
48 views

Changing version of assemblyInfo file does not work

I have a batch file which changes the version of AssemblyInfo cs file in order to update the version of the output dll. my script uses a perl script and includes those lines: call ...
-1
votes
2answers
53 views

A .NET scripting tool to write quick 'ad hoc' code [closed]

I always find myself creating new projects in VS just to write a oneliner to test something out, or use it as a more dynamic calculator. Is there a tool out there that I can quickly open up, write my ...
0
votes
1answer
92 views

call back to C# function from within VBScript run with msscript.ocx

I want to use msscript.ocx to call VBScript from C#, and allow the VBScript code to call back to functions in the C# program. For example, in the following VBScript code, Clicktext is a custom C# ...
0
votes
0answers
47 views

How to make this scripting system efficient?

I am currently making a custom scripting system to interact and perform common actions in my game engine, and I have set it up in a certain way, that I am unsure if it is a good idea to do in the long ...
1
vote
2answers
71 views

How do I stop GameObjects from respawning at every frame?

I've come across this little issue which I can't seem to fully understand how to solve, I've tried changing my codes countless times but I haven't gotten anywhere :( I am creating game objects ...
0
votes
0answers
21 views

Csscript using in to Silverlight project

I want to use CS-Script in to a Silverlight project, we have to validate some of fields base on the script file if it's valid then send data to save other wise display message according to field. ...
1
vote
1answer
68 views

Detecting undeclared variables in Scripts

I'm using custom script to automate the processes. (Actually learning). This is the script. var a = 5; var b = 55; return a+b; I'm just converting the source to C# and compiling it with ...
1
vote
1answer
74 views

How to get sum of nodes values in XQuery?

In below xml, there are two types of information related to parts and orders. XML: <mo> <parts> <part pno="10506"> <pname>Land Before ...
1
vote
1answer
82 views

C# script running execute line when it shouldn't

I'm new to programming C#. I've written a script that queries an oracle dB and if the rowcount is > 0, it supposed to run a bat file, but if its not, its supposed to end. Here is the code that I ...
0
votes
0answers
63 views

Can't execute powershell azure cdmlets from any other PC than server

The issue is the following. I can update user info from Office 365 using Azure cdmlets from the server, the code checks the user and updates the password. The issue is when I run it from a different ...
0
votes
0answers
31 views

How do i scrape flight availability from this site [closed]

how do i get flight availability from http://www.akbartravelsonline.com. this site generates unique key for each search. so it is difficult for me to handle.
0
votes
1answer
95 views

How to partition a hard drive using C#

I am familiar with the WMI method of formatting a partition but what if I wanted to create a partition programmatically? Is this possible and if so, can someone point me in the right direction because ...
1
vote
2answers
326 views

call a Javascript function from ascx page code behind

I am using the below client script to pass a value to a javascript function. It works fine in an aspx page but in an ascx page it, is not working. Please help me to solve this. ...
4
votes
1answer
138 views

Run Only signed powershell scripts from c#

I have a windows service that downloads a script and then runs it. I've been trying to make my windows service more secure, making it accept only signed power-shell scripts. I have ran the ...
0
votes
1answer
256 views

Multiple Google maps on single page

I would like to add multiple maps of the Google Maps API to a page of my C# ASP.NET application. However, with my current code, only the last map is shown. All the other divs that should contain a map ...
2
votes
1answer
96 views

How to avoid “Duplicate type name within an assembly” while reusing ScriptEngine with anonymouse type?

I'm working with scripting rules engine based on roslyn-ctp that will process IEnumerable<T> and returns results as IEnumerable<T>. To avoid creating of ScriptEngine, configuring and ...
1
vote
1answer
269 views

Run shell commands using c# and get the info into string [duplicate]

I want to run a shell command from c# and use the returning information inside my program. So I already know that to run something from terminal I need to do something like that string strCmdText; ...
-1
votes
2answers
86 views

How to either open a HUGE HTML file or split it into manageable chunks?

So, I made an application that cross examines information from a database, compares it to an excel sheet, and the end result is a HUGE html file. Previously I had each HTML file separated, however ...
-2
votes
1answer
51 views

c# script and unity3d [closed]

I am making a game where a player throws a rock with a force in unit y3d. The rock throwing with a force but now am trying to implement a slider that keeps moving until the player presses the throw ...
0
votes
0answers
38 views

mvc validate date/time is at least 1 minute in the future

I am still getting my hands around MVC. I have seen several similar questions, some custom code and various methods but I have not found something that works for me. I have a search model that ...
-5
votes
1answer
68 views

How to get the overlay color code of a specific layer using c#.net code and photoshop library? [closed]

How to get the overlay color code of a specific layer using c#.net code and photoshop library? i want a block of c# code that can get overlay color in the effects of a Layer. be informed that i use ...
0
votes
1answer
120 views

How to stop animation on a 3d model in unity?

how can you stop the animation on a 3D model with animation until it has had another object collide with it?
0
votes
2answers
262 views

shared printer print command in VBScript

I am trying to create a Batch file(using VB Script) in order to print a doc file, but the problem I am facing is that, the printer is shared printer in our office and when I run my following code , It ...
1
vote
1answer
119 views

Accessing a script on all objects with tag in Unity

My question is simple, how to access my gameobjects custom C# script through a foreach. I've tried following: foreach(TowerController go in GameObject.FindGameObjectsWithTag("Tower")) { ...
0
votes
2answers
154 views

dot-sourcing a powershell script in c# doesn't work

I have a powershell script, say: function2.ps1 with: function try2 { return "Hello" } and then in c#, I have: RunspaceConfiguration rsc = RunspaceConfiguration.Create(); Runspace rs = ...
2
votes
1answer
80 views

Tool for scripting C enums and constants to C# during build

I have a auto-generated .c file containing const's and enum's I need to access from .Net. I would like to run a pre-build script that would convert the .c file (with C syntax) to a .cs file (with C# ...
0
votes
1answer
96 views

MVC3 script bundles just render empty script tag

When I view a page, all I can see is - <script></script> My _Layout.cshtml looks like <script ...
1
vote
2answers
115 views

How to attach to 64-bit process without Visual Studio?

How can I attach a debugger to a running 64-bit .net process without Visual Studio? I have tried: SharpDevelop but it doesn't allow attachment to 64-bit processes Visual Studio Express but it has ...

1 2 3 4 5
15 30 50 per page