Click here to Skip to main content
15,891,316 members
Everything / Script

Script

script

Great Reads

by Simon P Stevens
How to set the current directory correctly when running batch scripts as administrator
by Sujeet Bhujbal
In this article, I will tell you how to create a cross-browser session expiration popup box using jQuery easily
by Jack Devey
This post delves into the perplexing Monty Hall paradox, examining the probabilities associated with sticking or switching doors in the game scenario.
by Er. Puneet Goel
This tip implements the TreeView like DropDownList with Search Functionality using Telerik Kendo.

Latest Articles

by Wessel Beulink
Azure spearheads cloud evolution, Azure Automation Runbooks manage hybrid/SOC environments effectively
by Federico Di Marco
Create quickly VPN connections in Windows according to a XML configuration file
by Jack Devey
This post delves into the perplexing Monty Hall paradox, examining the probabilities associated with sticking or switching doors in the game scenario.
by ToughDev
How to identify used and unused resources in VS Project Resources.resx file

All Articles

Sort by Updated

Script 

29 Aug 2011 by #realJSOP
That's not legal. An implied copyright is attached to everything that's ever published. You need to get permission from the other web site(s) to use their content, and I doubt you'll get that permission. The best you can do is to provide a link to that news story.
30 Nov 2011 by #realJSOP
You can't protect SWF files. Once they've been served to the machine, they can be modified, erased, or moved/copied. Believe me - I dealt with this for a year.
6 Dec 2016 by $*Developer - Vaibhav*$
[How to Call javascript function on button click event]
15 Aug 2013 by $r!dh@r
Hi All, How we can secure the our web Application by using Jquery or java script.and if we connected to data base through java script. is this Secure or not?
5 Dec 2014 by /\jmot
same question.Stop print Screen for all web browser[^]
14 Oct 2013 by 101zeeshan101
You can use sed like this:Solution:s='1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4'p='1 2 3 4'echo "$s"|sed "s/$p\s*/&\n/g"1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4You can use infinite while loop and use the input file and iterate through each line to use this logic for murtiple lines.Live...
27 Nov 2017 by __Radik__
I was looking for a way to scan using .net. Found such a script This script works correctly with the Brother 7057 and with the Canon MF 3228 Option Explicit Const ScannerDeviceType = 1 Const ColorIntent = 1 Const wiaFormatJPEG = "{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}" Dim...
27 Nov 2017 by __Radik__
Private WiaItem As WIA.Item = Nothing Private Sub Scan_Load(sender As Object, e As EventArgs) Handles MyBase.Load Try Dim CommonDialog12 As New WIA.CommonDialog Dim Device12a As WIA.Device = CommonDialog12.ShowSelectDevice(WiaDeviceType.ScannerDeviceType,...
17 Jul 2012 by _Amy
Hi,Try this:// open a pop up window at the center of the page.ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(760/2);var Mtop = (screen.height/2)-(700/2);window.open( '39;your_page.aspx?InvoiceID='" + strInvoiceID.ToString();+"',...
26 Aug 2013 by _Asif_
Check this linkPass the values to the sybase stored procedure using DBI-Sybase module and exexute the procedure[^]
26 May 2015 by _Asif_
I have not tried it myself but it seems that this could help you out[^]
29 Jan 2016 by _RishabhGupta
Approach Followed:Actually,for deleting some data present in List View.I am going through ajax calland finding some data from DataBase with respect to that id.And showing that data on Popup.Now if user OK then it should perform the action through item command otherwise...
11 Nov 2013 by _Starbug_
hi all,i want to add artificial intelligence to my object(human in game) to it can pass through other objects like wall and other things like this.thanks for your help;
14 Aug 2013 by Aamir Mitha
Hi, I am trying to write a script which populates a database.I have been told I need to use temporary tables and cursors to write the script.The instructions are to use a temporary table to store the "inputs" to your script, then use a cursor to iterate over those inputs and to generate...
14 Jul 2013 by Abhimanyu vij
Hi i want to know that i am wrking in the visual studio when i am trying to rrdirect the page locally i am not able to redirect like success: function (response) { var Result = response.d if (Result == true) { var url =...
13 Apr 2011 by Abhinav S
I presume your changed event is not firing.You will need to handle text changed via JavaScript unless you set auto post back to true.
14 Apr 2011 by Abhinav S
Try ImageRotator[^].
25 Dec 2011 by Abhinav S
Have a look at Click... It's Copied![^]. Nice way to copy text.Javascript Copy To Clipboard[^] might help you as well.This[^] is another link that provides a similar solution.
9 Jun 2012 by abhinavvijay
you can see below linkGoogle Maps in HTML, ASP.NET, PHP, JSP etc. with ease[^]
31 Dec 2021 by Adam Flow
document.getElementsByClassNam...
18 Nov 2015 by AdamASPGeek
Just find yesterday post on social media, it is good explanation and maybe it will be helpful for you, just readt http://bit.ly/1lhLnHh
5 Jul 2018 by Aditya_ETL
Hi, I am trying to include a delay of 120 secs between following two DOS commands in .bat script: COPY \\CDFS23001\\SOURCE\ORG\*ACCOUNTS*.xml \\CDFS23001\\SOURCE\TGT\ TIMEOUT /T 120 /NOBREAK dir /b \\CDFS23001\\SOURCE\TGT\*ACCOUNTS*.xml > \\CDFS23001\\SOURCE\TGT\List_Accounts.txt The above...
30 Jul 2018 by Aditya_ETL
Hi Below code looks for a file present in a directory and if present sents it to a log file, but is not executing correctly. Even if the file is not present the goto statement executes and echo writes the output to log file I need a script which can run continously and log the file arrival...
11 Sep 2018 by Aditya_ETL
Hi, I am writing a batch script to find sum of size of files present in a directory which contains payments as a word On executing below code: set Size_slu = 0 for %I in (c:\Systems\SLU\*payments*.xml) do set Size_slu+=%~zI echo total file size :%size_slu% Above code gives me only the size...
4 Oct 2018 by Aditya_ETL
I am using CHOICE command in below script to include a delay of 120 secs. But when running it for the first time its going for an infinite delay rather than 120 secs. The 2nd run and so on is running and completing in time although. ECHO WAIT START.. %time:~0,2%:%time:~3,2%:%time:~6,2%>> ...
11 Oct 2018 by Aditya_ETL
Hi, On running below batch script my second last IF condition is not working: Batch code: set count_slu=0 for %%A in (C:\SLU\*accounts*.xml) DO SET /A count_slu+=1 ECHO Netsol ACCOUNTS File SLU_COUNT: %count_slu% >> C:\SLU\Netsol_SLU_File_Delay\Net_Account_Log_%dt%.txt echo =============...
25 Oct 2018 by Aditya_ETL
Hi, I am looking for a script which can delete a part of an xml, a complete tag from the xml and save the new result into another xml: For example, XML below contains 3 parent tags with creditapplicationid: ...
5 Jul 2015 by Afzaal Ahmad Zeeshan
Because that is not how if...else block works. An if else block (with complex expressions) requires you to use AND operator (which you are) along with different expressions or variable or statements that resolve to boolean value (true or false). Your code does not follow the guidelines. I...
16 Nov 2015 by Afzaal Ahmad Zeeshan
This is a very broad question. But, start by revoking any "write" access to your users, unless they are admin and then try to secure your control panel. Unless that is someone from within, he won't be able to access it. Also, try to see who makes changes, thus "source control" is always a...
12 Nov 2013 by agent_kruger
just on leave event of UserName check if the user exsits and if it does show windows notification message or message box
8 Aug 2012 by agha_ali22
Can i add a form which contains only text to the postscript and then insert that form in multiple pages, or is there a way to insert a textbox in a postscript? an example would be helpful.
24 Sep 2012 by aianne
hi everyone!i need help..i don't know how to fix errors in my script..i need to get and put data in other machine using ftp..please help me..thanks!#!/bin/kshREMOTE='000.000.0.000'USER='xxx'PASSWORD='xxx'source_dir='cd /usr/src'target_dir='cd /usr/src'ftp -n $REMOTE...
20 Jun 2011 by Alan N
Yes this is tricky but it seems a work a lot better if you use the -File named argument on the powershell command line.In your case this would bepowershell -File "ScriptwithArguments.ps1" "arg with space"which should resolve toProcess.Start(@"path\to\Powershell.exe", @"-File...
23 Jan 2014 by AlexEvans
Hello,I am trying to load post codes into a combobox on my web page, from a csv file that has in it only one column per record for each post codeI am looking for an example on how to go about itThanksAlex
1 Nov 2012 by ali64iust
hello dearsi want convert this below code from vb to c++/mfc.Set objNet = CreateObject("WScript.NetWork") c = c & "UserName: " & objNet.UserName & vbCrLf c = c & "ComputerName: " & objNet.ComputerName & vbCrLf c = c & "DomainName: " & objNet.UserDomain & vbCrLfi...
16 Feb 2013 by Ali_100
I have 90 scripts in C:\SQL Scripts\*sqlhow could i execute by command ,i saw many things on net but could execute it successfully,,,I am using sql 2008 R2 , not a default instance
7 Mar 2014 by Allan Wissam
//scrips code$(document).ready(function(){ $('#måndag').click(function(){ $('#måndagm').slideToggle("slow"); }); $('#tisdag').click(function(){ $('#tisdagt').slideToggle("slow"); }); $('#onsdag').click(function(){ ...
19 May 2012 by almajhool_i
dear all , am trying to write a curved text around a circle in - Adobe Flash Professional - and i cant do it .also i want the text to be changed dynamically by the user . i found lots of tutorials to do it in - Photoshop - but it seems that Flash do not supporting it , if there is a way...
19 May 2012 by almajhool_i
that is really helpful ... thanks a lot ( Espen Harlinn )
17 Apr 2012 by Altaf N Patel
try following:Process.Start(@"path\to\Powershell.exe", "&'@"-File ""ScriptwithArguments.ps1"" ""arg with space""'""")
U 22 Apr 2024 by Aman Zoraiz
Myy problem is that i have an application the app can b read RSS feeds and display them on my page or screen. Also i have used the timer to reload the component of rss feed. I have set some matching keywords like if some keywords match with rss...
14 Jun 2013 by amit29391
you can't do it alone in html since html is static languageyou can use javascript to serve your purposerefer the link below if you want to use javascripthttp://www.webdeveloper.com/forum/showthread.php?1957-Reading-Writing-data-in-MS-Access-database-using-javascript[^]
8 Aug 2012 by AmitGajjar
Hi,you can check this[^] forum for your answer. hope it will help you,Thanks-Amit Gajjar
13 Jan 2015 by Amlan Sengupta
Hi All,Is there any API available to convert lotus notes script to C# ? I searched a lot, but didn't found one.
19 Apr 2012 by Amol k Nagarkar
Hi Want more information on what is a MQ depthI want a write a unix script for knowing the MQ depth...
10 Nov 2013 by Andreas Gieriet
Have a look at http://stackoverflow.com/questions/2335762/sed-calculations[^].CheersAndi
25 Oct 2011 by Andrew Brock
Although it is possible to change the MAC address in windows this just means windows ignores the hard coded MAC address when sending packets, the MAC address the NIC listens for in the WoL packet is hard coded (usually into read only memory). There is no way to change this.As for changing...
30 Nov 2012 by André Kraak
This looks like homework.It would be best if you did your own homework. It is given to you so that you will learn something, think about what have been taught. Read your text books and give it a try.Once you have code and run into problems you can always come back here with a more...
16 Feb 2014 by Ankita M
I have one folder ,i want to add Everyone user with all rights to that folder using Windows script host or command promt how can i achive thisThank you Ankita
6 Apr 2011 by Ankur\m/
Try below code:if(document.getElementById("rbYes").checked == true){ document.getElementById('Panel1').style.display = "none";}else{ document.getElementById('Panel1').style.display = "block";}Replace rbYes and Panel1 with id of yes radiobutton and panel...
30 Apr 2013 by anshu77
dear sir/mam, how to check that any url is mobile web site or simple(regular) web site via java script or give me any logic?thanks
6 Apr 2011 by Anuj kumar jain
Hello sir,i have a radio button list with two list items YES & NO.and a Pannel in my asp.net web applicationwhat i want to do is if i select the YES radio button then Pannel will remain in visible mode but if I select NO then my pannel becomes unvisible.if any one have the sample code...
20 Nov 2016 by anup.bhunia
For decision making popup instead of open a new window, you should open a DIV (if you are not using any client based UI framework like Kendo UI).DIV should show the four lines of text and two buttons OK and Cancel. On clicking OK, you should open the new window using Window.Open javascript...
20 Nov 2016 by anup.bhunia
In ASP.NET MVC retaining data is very simple;if you POST a form where controller found some error and revert back the view with input module bound with it, so no worry.If you do a custom Ajax post, HTML would not be changed, you need to show the Action result on top of the earlier HTML,...
25 Dec 2011 by anushripatil
in ur textbox use ... onFocus="javascript:this.select()eg.With this u can select the text of ur textboxAn onClick="Copy(this.id)"function Copy(IDS) { document.getElementById("ur id...
14 Feb 2014 by AnvilRanger
Post the markup for your master page and form. It is hard to give an answer from the small snippets that you have.The first thing would be, have you included a reference to the jQuery scripts?
7 Nov 2012 by arch06
use the jQuery library to print the particular section of the page
29 Feb 2012 by aress2010
Hi,I am a Novice but recently had a problem of running a batch file on the 'n' number of usb disk attached leaving the local disks. If anybody can help in a batch script file to find the number of disk attached to the system , run the batch file in n number of disk. run the batch file on all...
3 Jan 2013 by Ariel Riyo
Hi guys!Good Day...I have a problem in my access 2003. I have a duplicate data in my table. The 2nd column needs to be zero out when it has duplicate in 1st column. Tody i have this..TicketNumber ShippingContainer Weight SRN1 2-0002-01 56 SRN2 ...
6 Feb 2014 by Arjunwalmiki
i have same query how to convert select and insert query in script and save in dynamic table ob single click event
9 Nov 2020 by arminamini
Hi every one. I have a SPA website that OG informations, Title, Description and ... Override by script after Document Ready. But when people copy some page addresses by hand to whatsapp, Whatsapp dont find overwrited title, description and...
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. :)
2 Mar 2017 by Arun-23
hi, i want check javascript is availabel or not in web page once it loaded. need to do without using session or cookie. javascript may be used internal or externalWhat I have tried:
6 Jul 2012 by Arunprasath Natarajan
Dear Friend,You can go this."" then %&gt/>
8 Jul 2012 by Arunprasath Natarajan
Dear Friends,I ve a text box to get E-Mail ID.Using normal Javascript validation I can check weather entered string is email id or not.But is there any option to find weather entered email id is valid one.Eg. test@testing.comIn normal validation, It accept it as Email ID.In real,...
25 Sep 2012 by Arunprasath Natarajan
Dear Friends,What is different between ScriptManager and ToolKitScriptManager?If we use ToolKitScriptManager, will it have the properties of ScriptManager too.
21 Oct 2011 by arya1685
Check out this.....function CalculateSum() { var grid = document.getElementById(''); var gridinput = grid.getElementsByTagName('input'); var sum = 0*1; for(i = 0; i
3 Feb 2012 by Ashish Naval
I have a label control. On mouse hover, a java script function is invoked. Now I want to set the property of same label control in the same java script function.
5 Mar 2014 by Asitsingh
Hi i have a web user control LoginControl.ascx, and a userinfo page on which I have two radio button "yes" and "no" for choice for complete your profile now or later if user select "yes" then a panel be visible for fill the detail and all other things be unvisible using java script when user...
7 Apr 2011 by AskerSwali
I need to write a VB script that that fetches the members of Remote Desktop users for a single domain. please help
11 Oct 2013 by ASP.NET Community
Differences between RegisterClientScriptBlock & RegisterStartupScript:-We usually write the javascript functions on aspx page. If we want dynamic
11 Oct 2013 by ASP.NET Community
I had to create Umbraco database on my shared hosting (I am using Winhost at the moment) couple of days ago.After checking few examples on
11 Oct 2013 by ASP.NET Community
After few projects, finally come out with this simple loading panel scripts. Hope it useful for your.JavaScripts  function ShowLoading() {
11 Oct 2013 by ASP.NET Community
Today i'm going to show you how to select all records in a gridview from one checkbox which located in gridview header.First set gridview like below
11 Oct 2013 by ASP.NET Community
Normal 0 false false false EN-US X-NONE X-NONE
11 Oct 2013 by ASP.NET Community
Following script will move the selected items from one list box item to another list box item.Markup:
11 Oct 2013 by ASP.NET Community
suppose your url ishttp://www.xyz.com/defaultand some hacker try for hacking the website so type some script text on url
11 Oct 2013 by ASP.NET Community
step1. drag create use wizard and drop on design window on your web page(default1.aspx).step2. go to website tab and click on asp.net
11 Oct 2013 by ASP.NET Community
This WIKI displays how to populate a dropdown using KNockOutJS with jQuery.KNockOutJs is a JavaScript Library which used MVVM pattern and provides
14 Jan 2014 by ASP.NET Community
Many of you might have come across the situation where you need to making server side discussion based on client side JavaScript confirm message
11 Oct 2013 by ASP.NET Community
By using ICallbackEventHandler we can make asynchronous calls to server so that we can avoidpost back of the web page.Firstly we have to implement
11 Oct 2013 by ASP.NET Community
Hi,Here i am going to explain how to call the javascript function of a parent window from the child window(pop-Up).Some may know before reading this
7 Mar 2011 by AspDotNetDev
You can use C# (or VB.net) to load up the page using the WebClient class. You can then search the string for "1000" and "1,000". Then you can send out an email using the SmtpClient class. Unless somebody knows of an existing tool that does this, you'll have to build it yourself.
18 May 2011 by ataaaa
what script have been used for this site ?ravishare.comI want this site script for my site !regards
19 Jan 2016 by Avron Polakow
This article presents a client-side, JavaScript Relational Database Simulator in the browser, using SQL commands to Create, Read, Insert, Update and Delete in-browser table data, as well as formatting the output as HTML objects in a Webpage.
25 Nov 2012 by Azaone
Hello,I try to do a simple test in a custom form (task or calendar).I add a button (GoButton), and add the following code (script editor):Private Sub GoButton_Click ()MsgBox ("Yop!")End SubIf I test directly the form, I click the GoButton and the window with "Yop!" appears.If I...
22 Oct 2013 by bbirajdar
We here on CP do not encourage any type of frauds, cheats or hacks.Secondly, you should read this - Quote:Here's a for instance: Website A has an ad belonging to an AdWords advertiser. The ad receives ten clicks. The advertiser's website records ten visitors and two sales. Website B has...
21 Jun 2014 by BCN-163
as the title,I need to know which office bitness installed on my x64 pc.I checked regedit and did not find any tip.Maybe I can find the install path, and check the pe header, but it's Complicated, I want check in NSIS script, so the easier the better.Any tips? thanks a lot in advance.
28 Feb 2013 by bEGI23
There are many solutions to install your spyware simultanously with another application.1. You can mount both, spyware and clean application in Resources on VBNET or C#. you can program at run time to execute both apps on the same time.Set the App's State to Hidden(Me.Hide())In Load...
27 Feb 2012 by Bernhard Hiller
Get the longutide and latitude coordinates from your database, and the zoom level. Place those data into their respective positions of the URL.
3 Oct 2013 by Bhagavan Raju M
var Pname = document.getElementById('').value; if (Pname == " " ) { alert("Please Enter Date."); return false; } var vechileno = document.getElementById('').value; ...
6 Feb 2012 by BobJanova
Do you just mean you want the 'print' button (that you hid in its event handler) to come back again? If so, you need to give it an id, and then do: document.getElementById("print_button").style.visibility = '';(Note: I usually use .style.display instead, but I think that makes little...
6 Jun 2012 by BobJanova
You need to write a browser, pretty much. Or embed one (e.g. the WebBrowser control). And then you need to work out how to determine when 'everything' has been done, since the completion of the request and the onLoad event won't tell you any more.It's a huge can of worms, you should use an...
17 Dec 2014 by Brad Joss
Export a System.Data.DataTable/DataSet into a T-SQL script that when run creates a #TEMP table of the same definition filled with data.
19 Jul 2013 by Brian Adamski
The simple question: How do I run a remote aspx webservice dynamically from Javascript?Background Info:There is a 3rd party remote aspx webservice that I normally run with no problems from a Wordpress webpage by simply putting it in like this:
7 Jul 2012 by Bryian Tan
hello,Use the isNull() function, for instance /> />
29 Apr 2020 by BuckGup
I have two questions I am working on and I'm simply having a hard time understanding the question. The first being: Quote: Create a Prolog predicate flatten_append/3 which has 3 arguments that are all lists. The third list should be equivalent...
26 May 2013 by bucky
How to control the shortcut order in startmenu by using NSIS script?I searched by google ,but no one can tell me the way control the order.They said that the order in startmenu control is default.So,I need a help to work out the problem.
11 Nov 2013 by C For Code!!!
First you need to add two update panel first will hold all of the content and with following properties1.UpadteMode:conditional2.childrenastriggers:false3.Postback trigger controlid:"youbutonid"now put another update panel inside of put youtextbox in which you are entering username.As...