Click here to Skip to main content
15,891,431 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 Title

Script 

5 Feb 2018 by shahriar1996
I have a number of fixed-width and variable-length images I want to put these images together in page indesign.(Like newspaper ads.) What I have tried: I have a number of fixed-width and variable-length images I want to put these images together in page indesign.(Like newspaper ads.)
5 Feb 2018 by Richard MacCutchan
You have been told repeatedly where to get support for this product. See How script indesign for select rectangle in document indesign.[^].
3 Jul 2017 by Member 13290939
How to perform 4 arithmetic operations in one function using text areas in java script? What I have tried: by using different functions i have tried.....but by using one function performing arithmetic operations i am not getting in java script.
3 Jul 2017 by Kornfeld Eliyahu Peter
JavaScript has a lot of nasty things one of them is eval[^], and while it can solve your little problem here, you do not want to use it for real - believe me!
15 Dec 2016 by Richard MacCutchan
If you are not sure then post your question in the Article Writing forum and one of the editors or administrators will help you.
6 Jul 2012 by meenakshi mehra
I have code like this: /> />this code will display one record in text box and other outside the box having same results when record in database is empty then the...
6 Jul 2012 by Arunprasath Natarajan
Dear Friend,You can go this."" then %&gt/>
7 Jul 2012 by Bryian Tan
hello,Use the isNull() function, for instance /> />
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.
3 Feb 2012 by Sanjay K. Gupta
usevar thelabel=document.getElementById('');
17 Mar 2018 by Promis Patel
Hello friends, I am facing "Access Control Origin not Allowed" issue in web application. And am using Thomson API and SaveImage API Call then after generate this type issues. Am using Thomson API + visual studio 2015 + Web application When am using Simpel HTMl file and using this process...
21 May 2021 by webmail123
I have a batch file that is scheduled to run after every half hour in the windows scheduler. The batch file will create a text file and it will write some data into a text file. In that, I want to run a command line to count the number of folders...
12 May 2020 by Richard MacCutchan
Try this : @echo off echo # Title to be displayed echo # Purpose to count the directories in a folder rem save the count in a variable to use below dir /b /ad "C:\Users\rjmac\Documents\Code" | find /c /v"" > zz set /p count=
21 May 2021 by l o o l
You can get the value in a variable without creating/read a file and in a line.. @echo off >"c:\demo.txt" ( echo # Title to be displayed echo # Purpose to count the directories in a folder for /f %%i in ('dir/b/ad...
14 Jan 2020 by honey the codewitch
Easily add scripting support to your apps using Microsoft's active script technology
9 Jul 2013 by kesav prakash
I'm using the AJAX popup (popuping panel)in ASP.net i'm calling that panel popup for inserting and updating data. for insert i had call popup in button btnShowPopup after insert it will added to the grid if i click the row in grid again the same popup should be open by grid grdTimeSheetEntry....
9 Jul 2013 by Raju Bollam
if u take all AJAX popup code with in the Update Panel your problem is solve.Accept as answer if solve you problem.
9 Jul 2013 by Priyanka7777
Try declaring style="display: none" for your panel pnlPopup.See if it works.
9 Jul 2013 by Raju Bollam
try this one Here add ur code ----- ----
8 Oct 2013 by Member 10323076
I need to create a script that allows any user in the classroom to click a button that creates a pop up message on every computer in the room, to warn everyone that a guest is in the room.In other words. when a guest walks in, a user will click a button, which will launch a pop-up message,...
8 Oct 2013 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
3 Aug 2020 by Member 14864964
In the following batch script, I would like to be able to input multiple choice at a time from the menu. For example, choice 1, 3 and 5. And make the /LOADFILES argument take only one item at a time using a loop : @echo off setlocal set...
16 Jun 2020 by Richard MacCutchan
You need to use the set and for commands to get and parse the values. The following example merely echoes them back to the console, but should give you the idea. set /P choice=What are your choices? echo %choices% for %%i in (%choices%) do echo...
3 Aug 2020 by l o o l
Something very similar I did some time ago, below is an adaptation / merging with your code and also using for... this is string %errorlevel% == 1 and this is int comparation %errorlevel% EQU 1 @echo off && setlocal enabledelayedexpansion...
14 Jan 2014 by Nicholas Vielbig
Hi all, thanks in advance for any help.I'm running into a strange scenario where any page that I have implemented JavaScript/jQuery on my .aspx page, my menu is in turn showing a 15 pixel "padding-top".I am going to link a few screenshots, both of pages without any scripts (i.e. displaying...
2 Jan 2012 by mmvr2k11
I have to develop an application named smart client score board in vbMain requirements for this application are that application should display the live scores, detailed score board, running commentary (in text), players and team profiles, statistics of matches, results and fixtures for...
2 Jan 2012 by OriginalGriff
The first thing you need to do is make your mind up which of the possible solutions you have set as the Tags you are planning to use, as this will have a big effect on how it all works:C# ASP.NET XML Java SQL VB.NET Server scriptIt is not likely that all of these will feature in a...
29 May 2012 by rehanfaruqi
I want to change the font see this example code please}function reo(){letters=new Array(10);for(k=0;k
15 Jun 2011 by Sona from kerala
How to check whether a variable is array using scripts????//
15 Jun 2011 by CS2011
i think array index starts from zero(0) so it should be like $posArray[0],$posArray[1],$posArray[2],$posArray[3.Hope it helps.
30 Aug 2018 by KD209
Hello All, I am trying to create a PS Script that will search AD account with the following conditions: Account is Active/Enabled (account not disabled) Account is expired 90 days or more Account password is not set to never expire or Account password has expired I want the result to return...
21 Sep 2018 by Richard Deeming
Try PasswordLastSet instead of PwdLastSet. As far as I can see, there isn't a PwdAge property; you'll need to calculate it from the PasswordLastSet property. Something like this should work: Search-ADAccount -AccountInactive -TimeSpan 90 -UsersOnly -SearchBase "OU=User...
19 Mar 2020 by Member 14637786
Is it possible to access devops repo within powershell script using managed identity without any manual steps like interactive login (this has to run automatically as azure function)? The goal is to attach a master branch to appservice but this...
28 Dec 2010 by hooli
Hi All,I thought of a general use case which needs to be implemented:Query:- User is present in Desktop- Keys in word 'go' followed by the google search string: for example if the user wants to search for 'java'. Then the user will key in 'gojava'- Now the script has to detect that...
30 Dec 2010 by Sherylee
string SearchString = textboxSearch.Text.Replace(" ", "+");then just have it open a browser window with inital page URL"http://www.google.com/search?q=" + SearchString;plenty of help on how to open a browser online, its easy enough
4 Aug 2014 by Member 10985813
how to create automatic slide show with radio button using java script
4 Aug 2014 by Maciej Los
See the past answer: Javascript for slide show[^]
25 Jan 2024 by Wessel Beulink
Azure spearheads cloud evolution, Azure Automation Runbooks manage hybrid/SOC environments effectively
31 May 2016 by DataBytzAI
How to ensure there is sufficient disk-space for SQL backup before you run a backup!
15 Apr 2024 by Piniyi
Hello, I'm looking for help to design a bash script to locally backup a MySQL database and copy it to a network share. Ideally a retention option of X day(s) would be welcome. I have no knowledge of computer language. Your help is sincerely...
14 Apr 2024 by OriginalGriff
This isn't a "code to order" website - I suggest that if you can't do it for yourself (and are unwilling to learn how) you try somewhere like Freelancer.com - but be aware: you get what you pay for. Pay peanuts, get monkeys.
14 Apr 2024 by Pete O'Hanlon
This is the type of question that you could probably get answered using something like ChatGPT or Google Gemini. You have the information you want in your question, so what you need to do is write a prompt that will give you a suitable answer....
11 Nov 2011 by Member 8395282
This is a script to avoid disrupting the speed on an open network i am connected. I dont want to slow the net down for the owners.between basic on line reading, googling and guesing here's what i have any help is much apreciated#!/bin/bash if [ ping -c 2 192.168.2.101 | grep -o...
3 May 2012 by vikram_shinde
Hi,I have to write a batch script for comparing two files.The filenames should be like -- HP_OTT_todaydate.txt and HP_OTT_yesterdaydate.txtHT_OTT is fixed part in both filenames. I want to get today's date and yesterday's date and suffix these date to the fixed part of filename....
4 May 2012 by vikram_shinde
I am able to solve problem using powershell,$yesterday = Get-Date -UFormat %d%m%Y -Date (Get-Date).adddays(-1)$today=Get-Date -UFormat %d%m%Y$strReference = Get-Content C:\batchtest\HP_OTT$today.txt$strDifference = Get-Content C:\batchtest\HP_OTT$yesterday.txt Compare-Object...
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: ...
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...
9 Feb 2019 by Member 14144306
So I have this localhost website that shows gridview of images that can be downloaded (link button used). I created a batch file and wrote some script to import it in Windows Task Scheduler. It works fine. But now, i'm trying to make the script do the clicking. Currently, it just runs/ open the...
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.
29 May 2020 by CodingGreek
I want to learn C # and Unity together but I am new to programming and I would like to know the best ways there are. Maybe a website, videos or even a book that could help me out in anyway. I am new to programming and already I'm understanding a...
29 May 2020 by OriginalGriff
Start of by learning C# first - ignore Unity until you have the basics done and properly sorted in your head. A course is the best idea - check locally, you may find evening classes - or a book if that isn't available (Wrox, Addison Wesley, and...
1 Jul 2013 by Divay Singh Parihar
I am having php file, from which i am getting data in the form of xml, i am having .ascx page in which i have used select statement to use as drop down list. how to bind the data to that drop downlist of select tag ?thank you in advance
6 Jul 2013 by Kislay Raj
use$kis=simplexml_load_file(...
8 Feb 2016 by Kasthuri Gunabalasingam
I need to user to browse to folder while in installation, select it, and then have this folder copied from selected source to application folder.ExistfilePage := CreateInputDirPage(OptionPage.ID, 'Select File Location', 'Where should personal data files be stored?', 'Personal data...
22 Mar 2016 by Member 12267258
Hi i have a syntax error on my c menu script that i cant figure out how to resolveError:./menu.c: line 2: syntax error near unexpected token `(''/menu.c: line 2: `void Menu(void);Code:#include void Menu(void);void Top(void);void Watch(void);void ping(void);void...
21 Mar 2016 by OriginalGriff
You can remove some of the voids:void Menu() { int choice; ...void Top() { int ch; ...But you need the one at the start of the declaration.And you are right not to try and include them when you call the functions: Menu();Is fine.But...If I try your code...
22 Mar 2016 by CPallini
In order to compile it you have to include the proper headers, namely: stdlib.h and unistd.h.
22 Mar 2016 by Jochen Arndt
Usinggcc -Wall -c menu.cthe error shown in your question does not occur. But there are some other errors and warnings. Most of them can be avoided by including additional header files:# include # include # include # include # include...
7 Oct 2014 by Jaxam
In a command prompt I can type "ipconfig" and a list of internet information will appears. I want to do this in a C# console program. Basically, I want to run the C# program and I want to read and store everything that is given in "c:\ipconfig"."ipconfig" is a String in which that I can set...
7 Oct 2014 by User 11060979
You can use the class Process and Redirect Input and Output of cmd.exe.More or less an easy Thing, simply read the doc in MSDN an Play a Little bit.BTW 1.) it is not DOS it is as you mentioned also "command prompt". BTW 2.) There are other/better ways to get the same...
7 Oct 2014 by PIEBALDconsult
My ProcessCommunicator[^] article may give you an idea of how to do that and some of the pitfalls.I'd also like to point out that maybe the console app that processes the output needn't actually execute the command. You can write a processor app that reads its input from a...
7 Oct 2014 by Sergey Alexandrovich Kryukov
This application should not be in C:. Do you know that a system does not even have to have drive C?!And this is not a "DOS command". In modern OS, there is no such thing.Simply use System.Diagnostics.Process.Start with redirection of...
7 Oct 2014 by Maciej Los
Why to torture yourself by sending some command to the 'command prompt'?Isn't better to use .net classes, objects?Please, see:Network Programming in the .NET Framework[^]NetworkInterface Class[^]Quite often used alternative is WMI[^], which provides functionality to get information...
18 Dec 2018 by TheChewingTurkey
Hello, I'd like to take a .CSV file that is currently formatted as: 2018-08-16 06:06:40,35.938 2018-08-16 06:09:14,35.938 2018-08-16 06:24:14,34.862 2018-08-16 06:39:14,34.862 2018-08-16 06:54:14,35.399 and have an output like this: ("2018-08-16 06:06:40","35.938") ("2018-08-16...
17 Dec 2018 by OriginalGriff
Use string.Split to break each line of the input in two: string[] parts = input.Split(','); Then use string.Format to "bolt them together" again: if (parts.Length == 2) { string output = string.Format("\"{0}\",\"{1}\"", parts[0], parts[1]); ... Or even like this: if (parts.Length == 2)...
17 Dec 2018 by Wendelius
Based on the question title it sounds like you're trying to build INSERT statements with literal values based on the data in a CSV file. If this is the situation, I would advice not to use the data from the CSV as is since this would leave you open to SQL injections. One very simple way to...
18 Dec 2018 by TheChewingTurkey
Hello, OriginalGriff made me realize I was making things more complicated then I needed. What I ended up doing is fixing the python script generating the csv file: from gpiozero import CPUTemperature cpu = CPUTemperature() from time import sleep, strftime, time with...
1 Jun 2017 by User 11061201
Is it possible to call the VBScript Compiler WScript.exe with parameters from CMD, like; WScript.exe -"WScript.Echo Hello World" to display a message box. I know how to use a VBScript but i want to run a script without being saved to a .vbs file. Thanks in advance What I have tried: ...
1 Jun 2017 by Leo Chapiro
WScript.exe is not a compiler but an interpreter because VBScript is not a compiled programming language but a script language. This interpreter expects as the first parameter the path to script and will interpret it. You can add further parameters like this: wcscript.exe test.vbs "C:\temp\" ...
29 Aug 2011 by uspatel
I want to make news section in intranet portal.I want to retrive these news from other website that have these news in a div.is it possible?
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.
22 Jul 2015 by EdithMS
Hello i need change account password on 300 servers without domainthe Administrator password doh you have any tool can help me ?i try with pspasswd the sysinternlas but the error is "access denied". maybe you know a project where, i can access with my user and put a range of...
22 Jul 2015 by Sergey Alexandrovich Kryukov
If you target Windows, one set of tools would be the Windows remote administration service (which should work on target computers anyway) and PowerShell.Please see: https://4sysops.com/archives/change-the-local-administrator-password-on-multiple-computers-with-powershell[^].In principle,...
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
16 Feb 2014 by Lakamraju Raghuram
For getting it done via command line check here: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cacls.mspx?mfr=true[^]
14 Mar 2011 by Member 7754070
I have looked around the net and tried diffrent scripts but they all are bassed on rooms or multi users.What I look for is when a member logs in to his/her account and has favorites or friends in that account he or she can chat only with that person when it shows that that person is...
5 Mar 2021 by Shaik Izaz
Hello All, I am trying to find all the pendinglist files in my perforce depoth opened by me and if there are some pendingfiles in the pendinglist I want to execute :eof funtion, if not I want to do something When I execute the below mentioned...
2 Jan 2022 by l o o l
Use double quotes in if "string" == "" () else () Not if string == "", or if defined var () else () Use double quotes in set "var=string" At the end of each label, if you don't want the processing to proceed to the next one, use Goto: EoF You...
27 Sep 2015 by Sandeep-ATOS
I have a list of 30 servers with its scheduled re-boot time in an excel file. I just want to check whether the servers are up after its scheduled re-boot using vb script and mail me the status after checking each server.
27 Sep 2015 by Garth J Lancaster
Add a column to your script with the tcp/ip address of each server and do a ping perhaps ?Something like this will get you started on the ping bit itself - do a google for 'vbscript smtp mail' and Im sure you'll find plenty of code for emailing yourself...
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%>> ...
2 May 2015 by Vamsi Krishnna
I'm using Chosen Jquery[^]within my application for a dropdownlist. Unfortunately if doesn't work when the dropdownlist is in updatepanel.I know their is some conflicts between the scripts. But Unable to trace it out.Any help is appreciated.My Code is
19 Jul 2012 by Mikhail-T
Powershell script that automatically installs and updates your Chromium browser in Windows
13 Oct 2011 by Morgs Morgan
Hi guys, I have a situation where a user enters a search query and on each keyup event of the input box i set a timeout (setTimeout) to execute the search(asp.net script service call). But if the user is still typing a search query i have to clear the set time out.I have tried something...
13 Oct 2011 by DaveAuld
Seeing as you are already using JQuery, why not use the autocmplete plugin;http://docs.jquery.com/Plugins/autocomplete[^]could save you some t+e.
13 Oct 2011 by Muralikrishna8811
Hi, Try this once for get results ...
18 Jul 2012 by KiranKumar0407
Hi,I am new to the deployment world can any one please provide the code for publishing a .csproj in remote machine using batch file or VBScript.Thanks,Kiran
18 Jul 2012 by Sandeep Mewara
Why not prepare an installer and use it? Here: Miscrosoft Support: How to prepare installers[^],Alternatively, For hosting a web application: MSDN: Walkthrough: Publishing a Web Site[^]It clearly states: If you want to deploy a finished Web site to a server, you can use the Publish Web...
10 Jul 2012 by Sandeep Mewara
It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy...
20 May 2014 by Kinna-10626331
Hi ,I have one excel table worksheet (source1) and a csv (source2) with some common attributes (fields) to the first one. I would like to join them. I accomplish it exporting the data in a finalmerged.csv file with a power-shell script.The problem is doing that I lose all the link fields...
20 May 2014 by V.
As far as I know csv is an ASCII format file. See here[^]That means you can only copy the "values" from an excel sheet, not formulas or links or anything else.Hope this helps.
23 Jun 2015 by Suvendu Shekhar Giri
There are thousands of free javascript/jquery date pickers available for download in the internet. A simple google search with phrase "free javascript date picker" would return you thousands of results.Anyway, check these date pickers, view demo & download the your prefered one.40 Free...
23 Jun 2015 by Sergey Alexandrovich Kryukov
If you want to complete the code, here is how you do it: sit down at the computer and complete it.Good luck.—SA
23 Jun 2015 by Peter Leow
You shall write the source code by learning from these resources:1. Demo[^]2. Documentation.[^]
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...
7 Jul 2014 by pravin_tavagad
I have very large perl source code file and I want to replace every occurrence function say foo,The function foo has some arguments and I want to replace 2nd argument,the current argument is hex integer and i want to replace it to equivalent string.Also I want to replace function name foo with...
26 Sep 2013 by Sivarjun Chikkala
Hi all can any one tell me how it is work. and how can I get OK or cancel buttons. string strconfirm = "if(!window.confirm('On this Payment date " + DateTransaction + " there are " + countpayments + " are there. Do you want to Import any way?.'))"; ...
26 Sep 2013 by Rick van Woudenberg
Hey Sivarjun,I know of two ways how you can go about this :ConfirmSave() { var Ok = confirm('Are you sure want to save the changes?'); if(Ok) return true; else return false; }...