Sponsored Content
Special Forums Windows & DOS: Issues & Discussions How to start a vbs from a windows batch file? Post 302588857 by itkamaraj on Tuesday 10th of January 2012 05:30:52 AM
Old 01-10-2012
In the start command, you have the filename as .vbc

windows has file association and it already having that .vbs will be starting with cscript.exe

you can also, execute the .vbc file as

Code:
 
cscript.exe c:\lib\runit.vbc

i dont think, we can execute it as above.

so ignore the above command.

but you can execute the .vbs file using cscript.exe
This User Gave Thanks to itkamaraj For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can I run scripts in my unix account from batch file in Windows?

Hi all, I'm working on Windows, connecting to my Unix account by different ways: by FTP opening files in UltraEdit32, by mapping drive to browse, by Exceed or Telnet to compile at Unix account. Actually, that is what I would like to change: I'd like to make a batch file which would connect to... (7 Replies)
Discussion started by: olgafb
7 Replies

2. UNIX for Dummies Questions & Answers

Append value(batch number) to start of records

Hi all, I am new to unix shell scripting and I am trying to append batch number that comes in Trailer record to the detailed record. TR|20080312|22881 |000000005|20080319|2202 LN|20080312|077777722220 |0000100000017|ABS LN|20080312|000799439326 |0000709943937|AA TR|20080313|22897 ... (6 Replies)
Discussion started by: kiran_418
6 Replies

3. UNIX for Dummies Questions & Answers

backup through batch file in windows

Hi, I would like to backup particular files from unix to windows for every day through ftp to my desktop. For that anyone tell me syntax for create batch file in windows. Regards, Arulkumar (0 Replies)
Discussion started by: arulkumar
0 Replies

4. Shell Programming and Scripting

Executing Windows batch file from UNIX

Hi everyone, let me get straight to the points. My manager wants to execute a remote batch file (on a Windows server) from a UNIX Machine, does anyone know if this is possible and what packages would be needed? Thanks p.s. Sorry i cant give OS specifics, we use most UNIX's; AIX, Solaris,... (5 Replies)
Discussion started by: flip387
5 Replies

5. Windows & DOS: Issues & Discussions

Check the file size using Batch script in windows

Hi, I need to check the file size using a batch script. Pls advise. (0 Replies)
Discussion started by: krackjack
0 Replies

6. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

7. Windows & DOS: Issues & Discussions

Gawk Script in Windows batch file - Help

Good morning all. I have been running into a problem running a simple gawk script that selects every third line from an input file and writes it to an output file. gawk "NR%3==0" FileIn > FileOut I am attempting to run this command from a batch file at the command line. I have several hundred... (6 Replies)
Discussion started by: 10000springs
6 Replies

8. Shell Programming and Scripting

To run a shell script in remote server from windows batch file

Hi all, i need to run a shell script on remote server. I have created file .bat file in windows server with following code, c:\Users\Desktop\putty.exe -ssh -pw password user@server ./script.sh i need to run the script.sh in my remote server Above command is not working, any... (4 Replies)
Discussion started by: rammm
4 Replies

9. Shell Programming and Scripting

Start process on X number of files and then wait for the next batch

Thanks for RudiC for his extraordinary help on organizing files in a batch of 10 using below code. FL=($(ls)); for ((i=0;i<=${#FL};i++)); do for j in ${FL:$i:10}; do $batch ${j} ${j}.txt done; echo "Pausing for next iteration"; echo... (6 Replies)
Discussion started by: busyboy
6 Replies
Catalyst::Manual::Deployment::IIS::FastCGI(3pm) 	User Contributed Perl Documentation	   Catalyst::Manual::Deployment::IIS::FastCGI(3pm)

NAME
Catalyst::Manual::Deployment::IIS::FastCGI - Deploying Catalyst with Microsoft IIS Microsoft IIS It is possible to run Catalyst under IIS with FastCGI, but only on IIS 6.0 (Microsoft Windows 2003), IIS 7.0 (Microsoft Windows 2008 and Vista), and (hopefully) its successors. FastCGI is sometimes said to be supported on IIS 5.1 (Windows XP), but some features (specifically, wildcard mappings) are not supported. This prevents Catalyst applications from running on the server. Let us assume that our server has the following layout: d:WWWWebApp path to our Catalyst application d:strawberryperlinperl.exe path to perl interpreter (with Catalyst installed) c:windows Windows directory Setup IIS 6.0 (Windows 2003) Install FastCGI extension for IIS 6.0 FastCGI is not a standard part of IIS 6 - you have to install it separately. For more info and the download, go to <http://www.iis.net/extensions/FastCGI>. Choose the appropriate version (32-bit/64-bit); installation is quite simple (in fact no questions, no options). Create a new website Open "Control Panel" > "Administrative Tools" > "Internet Information Services Manager". Click "Action" > "New" > "Web Site". After you finish the installation wizard you need to go to the new website's properties. Set website properties On the tab "Web site", set proper values for: Site Description, IP Address, TCP Port, SSL Port, etc. On the tab "Home Directory" set the following: Local path: "d:WWWWebApp oot" Local path permission flags: check only "Read" + "Log visits" Execute permitions: "Scripts only" Click "Configuration" button (still on Home Directory tab) then click "Insert" the wildcard application mapping, and in the next dialog set: Executable: "c:windowssystem32inetsrvfcgiext.dll" Uncheck: "Verify that file exists" Close all dialogs with "OK". Edit fcgiext.ini Put the following lines into c:windowssystem32inetsrvfcgiext.ini (on 64-bit system c:windowssyswow64inetsrvfcgiext.ini): [Types] *:8=CatalystApp ;replace 8 with the identification number of the newly created website ;it is not so easy to get this number: ; - you can use utility "c:inetpubadminscriptsadsutil.vbs" ; to list websites: "cscript adsutil.vbs ENUM /P /W3SVC" ; to get site name: "cscript adsutil.vbs GET /W3SVC/<number>/ServerComment" ; to get all details: "cscript adsutil.vbs GET /W3SVC/<number>" ; - or look where are the logs located: ; c:WINDOWSSYSTEM32LogfilesW3SVC7whatever.log ; means that the corresponding number is "7" ;if you are running just one website using FastCGI you can use '*=CatalystApp' [CatalystApp] ExePath=d:strawberryperlinperl.exe Arguments="d:WWWWebAppscriptwebapp_fastcgi.pl -e" ;by setting this you can instruct IIS to serve Catalyst static files ;directly not via FastCGI (in case of any problems try 1) IgnoreExistingFiles=0 ;do not be fooled by Microsoft doc talking about "IgnoreExistingDirectories" ;that does not work and use "IgnoreDirectories" instead IgnoreDirectories=1 Setup IIS 7.0 (Windows 2008 and Vista) Microsoft IIS 7.0 has built-in support for FastCGI so you do not have to install any addons. Necessary steps during IIS7 installation During IIS7 installation, after you have added role "Web Server (IIS)" you need to check to install the role feature "CGI" (do not be nervous that it is not FastCGI). If you already have IIS7 installed you can add the "CGI" role feature through "Control panel" > "Programs and Features". Create a new website Open "Control Panel" > "Administrative Tools" > "Internet Information Services Manager" > "Add Web Site". site name: "CatalystSite" content directory: "d:WWWWebApp oot" binding: set proper IP address, port etc. Configure FastCGI You can configure FastCGI extension using commandline utility "c:windowssystem32inetsrvappcmd.exe" Configuring section "fastCgi" (it is a global setting) appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='d:strawberryperlinperl.exe',arguments='d:wwwWebAppscriptwebapp_fastcgi.pl -e',maxInstances='4',idleTimeout='300',activityTimeout='30',requestTimeout='90',instanceMaxRequests='1000',protocol='NamedPipe',flushNamedPipe='False']" /commit:apphost Configuring proper handler (it is a site related setting) appcmd.exe set config "CatalystSite" -section:system.webServer/handlers /+"[name='CatalystFastCGI',path='*',verb='GET,HEAD,POST',modules='FastCgiModule',scriptProcessor='d:strawberryperlinperl.exe|d:wwwWebAppscriptwebapp_fastcgi.pl -e',resourceType='Unspecified',requireAccess='Script']" /commit:apphost Note: before launching the commands above, do not forget to change the site name and paths to values relevant for your server setup. AUTHORS
Catalyst Contributors, see Catalyst.pm COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-20 Catalyst::Manual::Deployment::IIS::FastCGI(3pm)
All times are GMT -4. The time now is 06:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy