Click here to Skip to main content
15,891,607 members
Everything / Scripting

Scripting

scripting

Great Reads

by Simon P Stevens
How to set the current directory correctly when running batch scripts as administrator
by Mr. xieguigang 谢桂纲
The ShellScript is originally developed for the debugging of my "genome-in-code" virtual cell simulation engine, but now it becomes a script language for a .Net program.
by Dev Leader
With this post, we’re still just scratching the surface of what’s doable when integrating Python and C#.
by Gaurav Aroraa, Mahsa Hassankashi
In this article, we will discuss how to create npm packages/modules

Latest Articles

by jespa007
A simple script engine for C++
by Łukasz Bownik
Smallscript is a little scripting language inspired by Smalltalk syntax.
by Bruno van Dooren
How to clean up user profiles on a computer
by Mr. xieguigang 谢桂纲
R# language is a kind of R liked language implements on .NET environment

All Articles

Sort by Updated

Scripting 

9 Sep 2011 by #realJSOP
Google reveals all.A skinned dialog in Python and MFC[^]
15 Oct 2018 by #realJSOP
This CP article might help: Compiling C# Code at Runtime[^] You could essentially create a CSharpScript app that loads a text file that contains C# "script" code and compile that script at runtime. You could also write pre-compiled plugins for your script runner app, and specify the DLL...
14 Nov 2021 by A v Nov2021
Input in a text file: a=2*8 b=3*9 c=4*8 d=5*9 e=a+b f=c+d g=0*6 h=1*7 i=e+g j=f+h output=i+j Desired Output : output=(((2*8)+(3*9))*(0*6))+(((4*8)+(5*9))*(1*7)) What I have tried: #Logic from internet. D = dict() output = None with...
22 Feb 2010 by Abi Bellamkonda
Map the network drive use"cp [source-file] [target-file]" in solarisor"copy [source-file] [target-file]" in windows
23 Jun 2015 by Aiden.JP
I'm trying to make this bash script dispatch and email when it detects that a certain type of file (files ending in ".gz"), which was last modified 24 hours ago, is below a certain size in a directory, I currently have it running on my entire computer. (I have it set to 10 kilobytes).It just...
15 Feb 2012 by aidin Tajadod
yes, look at this linkhttp://msdn.microsoft.com/en-us/library/system.codedom.compiler.codedomprovider.aspx[^]or search for "c# codedomprovider" in google.
7 May 2010 by Alan N
I think you are a victim of Microsoft's woefully inadequate documentation. After a few tests I've come to the conclusion that when -t xx is referred to as a timeout for shutdown it means just that and it does not apply to log off. You should also test the -f switch as that seems to do the...
4 Dec 2015 by Alexander Siniouguine
Discover Bower and Gulp with Visual Studio 2015
25 May 2011 by AlexCode
Block any way for the user to change the textbox value in the DatePicker, either from the calendar popup or by direct input on the textbox.
6 Dec 2023 by Alina Matchey
I have written a pinescript strategy, it compiles fine and looks like it is entering the trade correctly as all the conditions seem to be met. However, the trade is exiting when no conditions are met. The exit conditions are just the opposite of...
10 Jun 2014 by Anamera
This XSLT will output an Excel worksheet containing a CSV type of record collection in a more usable XML format.
18 May 2012 by Anand Ayyappan
Hi,Use some code like
14 Mar 2016 by Andy Lanng
They are not even comparable:Bootstrap: A set of visual stylings to make your website look a particular way.AngularJS: A javascript library to implement a MVC-like structure to your websites client-side code.What's the difference? Everything. What is the same? They are both...
8 Oct 2015 by Anele 'Mashy' Mbanga
A look at a flexible Java MySQL CRUD PHP script generator
9 Apr 2014 by Aqeeel
Implementing security in SQL Server by only allowing TCP/IP Network Protocol and changing default TCP port
27 Sep 2017 by Arthur V. Ratz
Probably, this article would be interesting to you: Implementing the Huffman adaptive algorithm to compress 256 colors depth graphics images[^]. If you've got any more questions, just feel free to post them as the reply to my solution that comes here. :)
11 Sep 2011 by Arun Parthasarathy
Rather than dependent on a tool.i would suggest you to use ur header files under the key word#pragma onceyou may also do as follows:SampleHeader.hif !defined SAMPLE_HEADER_H // where SAMPLE_HEADER_H is a alias name for this header declaration@define...
22 Feb 2012 by Arunprasath Natarajan
What is Coffeescript and How can we use that?Is it useful or we can go with Javascript?Give small eg or link to learn about that.
25 Jul 2019 by as7951
Experts, Need your support for this awk script. we have only one input file, all these column 1 and column 2 are in same file and have to do lookup for values in one file(column1 and column2) but output we need in another file Need to grep row whose string contains 9K from column 1. When found...
7 May 2023 by as7951
Experts, Need your support for this awk script. we have only one input file, all these column 1 and column 2 are in same file and have to do lookup for values in one file(column1 and column2) but output we need in another file Need to grep row whose string contains 9K in column 1 and then grep...
11 Oct 2013 by ASP.NET Community
Hi everyone. We all know the role of ajax and its implementation. We can use ajax in asp.net as well as in javascript/jquery. But there is a
25 Aug 2017 by B.Sudhir
1. I was trying to execute a Bash Shell Script from any directory in the system. for this I need to make it available to execute anywhere in the system. 2. I also mistakenly added wrong path which I wanted to delete but its not happening. Please help. What I have tried: 1. I've added the...
17 Jul 2012 by barneyman
how about HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96D-E325-11CE-BFC1-08002BE10318}?
6 Dec 2014 by Basharat Hussain
HI am working on football game i have a character name lonhjhon tag name player and a ball tag name "ball" i need help in scripting regarding how to keep ball in front of player while player is moving forward or right left. (ball control remain in player hand until he kicks) i have made the...
29 Dec 2011 by Be Yourself
I have two solaris servers having IP10.10.36.20(A) and 10.90.33.22(B)The server B is exposed to internet but server A is intranet server.I want to transfer some files from server B to server A but in order to do this I have to bypass the firewall installed in server A which can raise...
29 May 2012 by Bernhard Hiller
In a custom action of the setup, a VB Script is run to perform several actions. i also want to set permissions on file "abc.def" such that only "Local System" (S-1-5-18) can access it. I tried to find out how to do that with cacls:cacls abc.def /G SID#S-1-5-18:FBut that command results in...
9 Mar 2023 by Bruno van Dooren
How to clean up user profiles on a computer
17 May 2017 by CHill60
You need to learn how to research topics. Have a look at these resources: Using Powershell to export SQL table data to text files[^] 8 Ways to Export SQL Results To a Text File - SQLServerCentral[^] World of Whatever: Powershell export query to csv[^] All of which I found by pasting the title...
3 Dec 2020 by CHill60
If that is really your script then you are looking for a repository with registryId "string" - I doubt that there are any repositories called that. You also want a repository with a blank name, and a previous call has returned a nextToken of...
21 Dec 2021 by CHill60
I used to do this. 1. Write some VBA to read the contents of a text file into a table. There are many examples on the internet e.g. VBA procedure to import csv file into access[^] 2. Write another VBA function to list the files in the folder...
4 Dec 2009 by Christian Graus
wrote:please send me urgentlyThis is rude. Your need for help is not urgent to us, we are helping you for free, as our time and schedule permits. If you want to give a deadline, pay someone to help you.You want your stored proc to save the table to the server as a .xl file ? Do you...
7 Mar 2014 by Christopher Ayres
Track usage of a value overtime
28 May 2020 by CodingGreek
I'm a beginner learning to code with Unity as well. I want to set up a Fuel System so that when the car moves the Gas is used up. But my UI slider (that shows the fuel gauge) just doesn't seem to be working. Please help on the below 2 scripts: ...
29 Sep 2016 by CPallini
Well, you may hack the more by learning how to properly use Q&A.
9 Sep 2011 by Dave Calkins
Can anyone recommend a tool for analyzing and cleaning up excess #include statements throughout a large number of source/header files which aren't actually needed? It would need to be something that could intelligently analyze the files and figure out which #include statements ARE needed to...
4 Sep 2013 by Dave Kreskowiak
The only way to do what you describe is to Remote Desktop into each of those workstations. You'd use the Remote Desktop Services API to do this, the documentation of which can be found here[^]. Warning! It's not the friendliest API to use.
16 Jan 2017 by Dave Kreskowiak
This is not a script but a configuration file that is loaded by your terminal app. There's nothing to change here.You'd have to write a script from scratch to do what you're talking about, IF your terminal app supports doing so. I have no idea if it does or how to do it.
26 Feb 2017 by Dave Kreskowiak
Unless you own and operate the site, no there is no way to fix the script.
3 Apr 2017 by Dave Kreskowiak
Windows multi-file search and replace[^]
17 Aug 2018 by Dave Kreskowiak
This is quite a bit off-topic for this site. You're best bet is going to be forums dedicated to Cisco routers. There is no such thing here.
9 Feb 2019 by Dave Kreskowiak
You're going to have to write an application to load the web site and do the "clicking". There's nothing you can put into a batch file that will click a link.
22 Feb 2024 by Dave Kreskowiak
I don't know of any tools that will do this, the problem being the addition of a number to another in the replacement value. You will probably have to write your own tool to do this. This is mostly going to be reading a text file and string...
12 May 2010 by David Crow
An alternative to iterating a folder's contents to get the size is to use the scripting object, FileSystemObject.Using ClassWizard (Ctrl+W), the first thing you'll need to do is add the classes contained in the Script Runtime engine (scrrun.dll). This will add scrrun.cpp and scrrun.h to...
21 Dec 2021 by Deniskate
Hello gyus, I have a folder which has many text files with tables (delimited with fixed width) this folder is updated daily 3 times. I want a batch file script or any way to move these text files into microsoft access database file .mdb...
1 Oct 2013 by Dev Leader
With this post, we’re still just scratching the surface of what’s doable when integrating Python and C#.
5 May 2010 by Dimitri Witkowski
Try this: psexec.exe \\ -u test2 -p -d -i "c:\Users\test-2\Desktop\a.bat"
11 Feb 2022 by DoingWork
I want to start 2 applications with one shortcut. One application is GUI based while other is shell based (Terminal=true in .desktop file). What I have tried: For this goal, I created a file name **Starter** having following script in this...
24 Jun 2010 by Dr.Walt Fair, PE
I haven't used batch files for awhile, but here's how it used to work.1) If eventlog just needs to be a blank file, then you can create one by using ECHO redirected to a file name. If it needs to be some special format, then you'll need to either copy an existing file or use anotehr...
28 Sep 2012 by Dylan Morley
This is a pretty good security video which shows some MVC security techniques & ways they are attacked using XSS. http://channel9.msdn.com/Events/MIX/MIX10/FT05[^]It's MVC specific, but the techniques for exploits would be the same
6 Aug 2010 by E.F. Nijboer
Try this without the exit call:grep --quiet \[dbo\] %1\*.sqlif ERRORLEVEL 1 EXIT 0if ERRORLEVEL 0 EXIT 1Good luck!ps. it could also be that you need to lose the /B in the exit call...
6 Aug 2010 by E.F. Nijboer
The following script is working properly, you can test both results. You first need to open the command window and then execute the script. I added the /b again so the command window won't close after execution.The script below is tested by copying a file. When c:\temp\test.txt exists and...
25 Sep 2010 by E.F. Nijboer
Try enter this in the location bar: about:configPress enter and accept the terms. Maybe you can find something there. You might also want to have a look at the link below for some additional info on the configuration...
27 Apr 2010 by Eddy Vluggen
elad2109 wrote:I couldn't find the following commands (using a batch file)They're not available as DOS-commands, but you can use VBScript[^] from the console in the same way using CScript.exe[^].As an alternative, you could opt to write a small console-application in C# or...
31 Jul 2012 by efkah
If you want to work with a Postback, just add n RadioButtons and Build n ASCX Controls and load them in the RadioButtonClick event.if you want to work without a Postback, u can use javascript to load all Tabs at once and just set the Visible Style or use AJAX to Load the Controls...
27 Apr 2010 by elad2109
Hi,I know it might sound silly, but I couldn't find the following commands (using a batch file): 1. delete some log from existing eventlog? 2. Read some log from an eventlog.Is there a way to count the number of current logs attached to a specific eventlog?Is...
5 May 2010 by elad2109
Hello. I have a batch file named a.bat on a winserver2008 Desktop.That batch file only write the SessionID (from environment variable) to a local eventlog.I want to execute it remotely using cmd (otherwise the SessionName doesn't appear).so I have triedc:\PsTools\psexec.exe...
6 May 2010 by elad2109
hey,trying to run shutdown.exe -l -t 10only showed shutdown help manual.I thought of unelegant but working solution of ping -n 10 localhost shutdown.exe -lHow wasty is that solution?I thought of downloading sleep.exe, but I want my bat file to work on...
27 May 2010 by elad2109
Hi all,1. I'm trying to write a windows bat file that runs some exe,and saves it exit code in some local variable.@echo offstart %~f1but I'm missing the exit code assignment to the local variable.2. Are there any other available details I can collect from a exe...
27 May 2010 by elad2109
Hello all,I wrote a small batch file:@echo offrem runs the {arg[0].exe} - using its fully qualified name%~f1IF %errorlevel% NEQ 0 (set boolResult=False) ELSE (set boolResult=True) rem case1 EVENTCREATE /T ERROR /ID 700 /L "MyTest Application" /D "exitcode:...
11 Jul 2014 by Espen Harlinn
Have a look at http://www.swig.org/[^]This will emable you to support Tcl, Python, Perl, Guile, Java, Ruby, Mzscheme, PHP, Objective Caml, C#, javascript and more with relative ease.Best regardsEspen Harlinn
28 May 2020 by F-ES Sitecore
Does the text output reflect what you would expect? Your fuel system code only sets the max value of the slider if startFuel > maxFuel, are you setting the values in the editor for when that condition isn't true? Also in ReduceFuel you set...
3 Sep 2013 by Fran Porretto
I have a need to produce an application, which would run under Windows 2003 Server, which would:1. Log into a group of workstation computers on the server's own subnet;2. Log out of those same computers when commanded to do so.Could someone please point me at example code or a suitable...
7 May 2011 by funniezatee
Hi all,I'm trying to write a php script for on the fly compression and download.I have lots of problems trying to get it working on this particular web server. This is my code:header('Content-Type: application/octet-stream');header('Content-disposition: attachment;...
7 May 2011 by funniezatee
Thanks for viewing.I found my solution here: http://www.londatiga.net/it/programming/how-to-zip-files-or-folder-on-the-fly-using-php/[^]The CreateZipFile.inc.php files seems pretty high level for my understanding.Anybody care to explain a little for just for education's...
22 Feb 2012 by Ganesan Senthilvel
CoffeeScript code compiles one-to-one into the equivalent JavaScript, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable and pretty-printed, passes through JavaScript Lint without...
27 Mar 2012 by Ganesan Senthilvel
xcopy.exe is definitely your friend here. It's built into Windows, so it's cost is nothing. some of the options we also add include these:•/s/e - recursive copy, including copying empty directories.•/v - add this to verify the copy against the original. slower, but for the paranoid.•/h -...
10 Apr 2015 by Gaurav Aroraa, Mahsa Hassankashi
In this article, we will discuss how to create npm packages/modules
21 Dec 2014 by Gayathri Thinhar
Hi friends,We are trying to automate our manual effort by using perl script to upload some Excel files into the sharepoint directly from the solaris server (which we used to download manually from server and upload it into Sharepoint ) Since i am a newbie to this.. am learning things as i...
17 Jul 2018 by Gerald McAuley
Frankly, I'm lost in how to approach using the API for: https://www.npmjs.com/package/broken-link-checker For instance, the doc give this example: var htmlChecker = new blc.HtmlChecker(options, { html: function(tree, robots){}, junk: function(result){}, link: function(result){}, ...
1 May 2011 by Gil Fink
The store API can be used to have a storage layer in your client-side and therefore reduce calls to the server.
16 Dec 2015 by Gokulprasad05
Sub Print() OLECMDID_PRINT = 6 OLECMDEXECOPT_DONTPROMPTUSER = 2 OLECMDEXECOPT_PROMPTUSER = 1 call WB.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,1)End Subdocument.write "
22 Feb 2017 by Graeme_Grant
Here is a resource that will help you: Top 10 DOS Batch tips [^] - see tip 9This Command Reference[^] will come in handy too. :)
29 Jun 2010 by Graham Breach
I would create a new function to check the type:function check_file_type($ext, $mime){ $allowed_types = array( 'jpg' => 'image/jpeg', // add other types here ); $ext = strtolower($ext); return (array_key_exists($ext, $allowed_types) && $allowed_types[$ext] ==...
31 Dec 2011 by Graham Breach
Do a search for "ssh certificate based authentication" - as long as it is enabled, key-based authentication should allow you to use scp between trusted hosts.
3 Dec 2020 by Guru Deshmukh
I am unable to list the AWS ECR repositories through boto3 script. Can anyone help on the this issue. What I have tried: import boto3 client = boto3.client('ecr') response = client.describe_repositories( registryId='string', ...
17 Sep 2010 by Henry Minute
Have you tried googling?I just gave it a quick whirl and got lots of likely hits.
14 Jan 2020 by honey the codewitch
Easily add scripting support to your apps using Microsoft's active script technology
13 Jun 2018 by Ice-Capped Mountains
AAA URL Shortener URL Here: function generatePath id="url" (path = 'url') { let characters =...
23 Jan 2012 by Jaganathan Bantheswaran
A tool to generate SQL server DB script from the LightSwitch internal database
21 Jan 2010 by James Wucher
Examples of embedding the Iron Python engine in a C# form application.
22 Feb 2010 by jamie81
can anyone help in writing the script which copy files from solaris to windows local machine without ftp
26 Nov 2014 by Jamie888
Hi, I have the following codes, I want to make the Label disappear as according to some condition. For example, if the var result is empty, then I will set the Label's visibility to false, hidden.Below are my codes,var result = txtBatch.Text;if(result.Equals("")){ txtBatch.Visible...
27 Nov 2014 by Jamie888
From my research, I have come out with a suggestion. Below are my codes/scripts:if(label.fields.field.(@name == 'SerNumber2').@data.IsNullOrEmpty){label.fields.field.(@name == 'SerNumber2').@printingField = "false"}else{label.fields.field.(@name == 'SerNumber2').@printingField =...
6 Jul 2012 by JarrodSpendley
Hi there,Thanks in advance for any answers/input.I am currently teaching myself to work in SSIS, which is a very nice tool.However, I am having trouble with the Data Flow Scripting Components. I am trying to feed data columns into a Tranformation Script Component, run a check (If...
7 May 2012 by Jason Rudland
Trial of popular REST implimentations for NodeJS including the measuring of MongoDB insertion rates.
1 Apr 2018 by JavaScrptMaster
I am trying to write a Power Shell script which will check the connection status of paired Bluetooth devices in a certain interval (15 sec) and if found the device is out of range then will lock the users system. What I have tried: In the following code I am not able to figure out how to list...
10 Jul 2021 by jespa007
Example game engine by using SDL2 and ZetScript
27 Feb 2024 by jespa007
A simple script engine for C++
25 Sep 2012 by jmh1
I need a script engine for a C# app but can’t figure out what is the best choice. I have looked around the net and found a number of possible candidates, but I think I need some advice from someone with practical experience in C# scripting. I am looking for something that is fairly easy to...
22 Dec 2016 by Jochen Arndt
I did not checked all the code but this looks suspicious:if [ "$score" -ge 1 ]; then Number=$(($RANDOM % 52)) Gokkaart=${KAARTEN[$Number]} oldNumber=$Number echo "De kaart is $Gokkaart2"fiYou are assigning a new random number to $Number. So the old number is no longer...
25 Aug 2017 by Jochen Arndt
To change the PATH environment variable you should export it (the export command will write it to the environment): PATH=$PATH:~/bin export PATH Without the export command, the variable will be only set for the actual shell session but not for commands executed in that session or other shell...
22 Apr 2018 by JohnLeitch
This article details how to make .NET applications scriptable with Aphid, an embeddable scripting language.
29 Jul 2015 by JohnnyCee
How do I configure VS2015 to support Rosyln C# scripting? Scripting support was not part of the VS2015 RTM, so I've installed packages from roslyn-nightly and dotnet-core but I can't get past component version mismatches.1 – My goal is to embed C# expressions inside configuration-related...
9 Sep 2011 by Jonathan [Darka]
I think that PC-Lint might be able to help with this, I'm pretty sure I've seen it warn about unused headers - I don't have it installed at the moment so can't check.
16 Feb 2011 by jswolf19
Hashes in perl are called hashes because they store the data in a hash table. Hash tables use a hash function to calculate a key based on the value you give it and allow for fast searches at the expense of memory.Using your example, say the hash table has 26 entries, and the hash function...
4 Dec 2009 by jyothisai15
hi i need to write stored procedure which have one parameter(this must be table name) which have to give from outside.and then while table name is given that table data have to be scripted and save as .xl extension filefor this i have ...
18 Nov 2014 by kaushik_code
In the help of printui.dll,PrintUIEntry /?, we have the following examples for remotely installing printer driver with the help of /c switch.Add printer driver using inf:rundll32 printui.dll,PrintUIEntry /ia /c\\machine /m "Brother DCP-128C" /h "x86" /v "Type 3 - User Mode" /f...
7 Aug 2012 by kennysun
encrypt all stored procedures in SQL server with powershell