Welcome Guest ( Log In | Register )




                Web Hosting Guide

4 Pages V  < 1 2 3 4 >  
Reply to this topicNew Topic
Batch Files, Tutorial
divinity
post Mar 3 2008, 09:53 PM
Post #21


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 9
Joined: 3-March 08
Member No.: 28,877


Thanks, this helped.
Go to the top of the page
 
+Quote Post
iGuest
post Dec 31 2008, 07:22 PM
Post #22


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


Opening Multiple Files simultaneously from batch file
Batch Files

I would like to open multiple files from a batch file.My code is

Call file x
Call file y
And so on

But the files open one by one and not until I close the first file the second does not open. Kindly advise

-question by saif
Go to the top of the page
 
+Quote Post
iGuest
post Jan 14 2009, 11:21 AM
Post #23


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


I want to create a batch file the creates a Folder called= Themes & MODS
Batch Files

I am trying to create a batch file to copy loads of files to a specific Folder that will be named

Themes & MODS 

When I run the batch file it does not seem to recognize the Syntax> Themes & MODS and says an error trying to create the file?

The structure I'm using is very simple PLEASE SEE BELOW...

:BEGIN
@ECHO OFF
ECHO. **************************************
ECHO. **    PSPWillys PSP Custom waves 2009             *   
ECHO. ** For XMBeditor v2 Running CFW 3.90m33-2      *   
ECHO. **************************************
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
Md  F:\Themes&Mods\Mods\system_plugin_bg
Md  F:\Themes&Mods\Mods\system_plugin_bg\Allsort
Copy Allsort\Preview.Jpg   F:\Themes&mods\mods\system_plugin_bg\Allsort

This is just a sample of the batch code I'm writing...Is the problem with the "&" syntax?

If it is can someone point me in the right direction

ChrisUK

Go to the top of the page
 
+Quote Post
Darasen
post Jan 18 2009, 12:20 AM
Post #24


Premium Member
Group Icon

Group: [HOSTED]
Posts: 214
Joined: 3-April 08
From: Milling about
Member No.: 29,596
myCENTs:66.55


The & is telling the command line parser that a new command is beginning. Thus your sytax is not going to work.

The easiest solution would be to rename rhw offending folder to something friendlier to the batch file syntax.
Go to the top of the page
 
+Quote Post
iGuest
post Apr 6 2009, 10:40 PM
Post #25


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


Creating User Defined Folders using DOS
Batch Files

Hi there,

 

I was wondering if anyone had any code for a user to run a bat file and then have to enter a folder name to be created.

 I have seen several peices of code but nothing really stood out to me, I am a novice in DOS.

Any Help would be fantastic

Thank you

andrew


 

Go to the top of the page
 
+Quote Post
iGuest
post Apr 22 2009, 06:19 AM
Post #26


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


Opening Multiple Files simultaneously from batch file
Batch Files

This was mentioned earlier, but not explained. If you execute another application from a batch file it will halt since it then waits for input from this application. To just start it and move on use the prefix "start".

-reply by iGuests little helper

 

Go to the top of the page
 
+Quote Post
iGuest
post Jul 3 2009, 04:22 PM
Post #27


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


Anser feedbacker
Batch Files

hey,

there are two ways to fix your problem:

1.) Add anouther line to the script  and type "pause" without the air quotes.

2.) Copy the BAT script to C:\WINDOWS\system32 , hit start , hit run , type cmd and hit enter , then enter the name of your BAT (e.G. Something.Bat) then it should run properly but it will still flash away if you don't start it in cmd.

that should help.

-reply by Nick O'Neill
Go to the top of the page
 
+Quote Post
iGuest
post Jul 27 2009, 11:44 AM
Post #28


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


Open 3 command prompts and 2 folder locations in a batch file
Batch Files

Hi,

I want to open 3 command prompts those will be pointing to

cmd1 should point to 'C:\Tomcat'
Cmd2 should point to 'C:\Tomcat\lib'
Cmd3 should point to 'D:\Test'

Also I need to open 2 folder locations(2 different windows simultaneously)
1) C:\Program Files
2) D:\Lab

How can I do these all in a single bat file? I need to open the above listed windows in a single click

Go to the top of the page
 
+Quote Post
iGuest
post Jul 24 2009, 12:42 PM
Post #29


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


NEED HELP (.vbs or .bat ) getting
Batch Files

Set WTS = Wscript.CreateObject("WTSManager.Shell")
Ip = WTS.MyIPAddress
Msgbox ip

I will get ip from vbs file

 

echo off
Net use v: /delete
Net use v: \\%clientname%.Domain.Com\c$ /User:%clientname%\administrator password@pass

need to change

net use v: \ip\c$ /User:%clientname%\administrator password@pass

if NOT %errorlevel% ==0 goto :err
C:
Cd c:\program files\Stellent\IBPM
IBPM.Exe
Exit

:err
Echo %errorlevel%
Echo Error Occured Logging in to Optika
Pause 

-reply by Abdul
Go to the top of the page
 
+Quote Post
iGuest
post Sep 23 2009, 05:54 PM
Post #30


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869


Here are 2 files that I JUST made for you.

The 1st is a program that asks for a folder name to make, and will make it in the directory specified within the batch file.  I highlighted it so you can change the path. Make sure to change them ALL to the SAME EXACT PATH.

 

@echo off
Title .::FOLDER CREATOR by Dan Wager::.
Color A
:top
Cls
Echo Folder name to be created?
Set /p folder=""
If exist C:\"%folder%" goto alreadyExist
Cls
Echo Make folder "%folder%" in C:\?
Set /p choice=""
If "%choice%"=="y" goto execute  ::"y" or ENTER will Execute command
If "%choice%"=="" goto execute
If "%choice%"=="and" goto top      ::"and" will NOT execute command
Goto top
:execute
Md c:\"%folder%"
If exist C:\"%folder%" goto again
Cls
Echo Folder Creation Failed...
Echo Try Again?
Set /p bad=
If "%bad%"=="y" goto top  ::anything other than "y" or ENTER will exit
If "%bad%"=="" goto top
Cls
Echo Press ENTER to Exit
Pause >nul
Exit

:again
Cls
Echo Folder Created Successfully
Echo Make Another Folder?
Set /p another=
If "%another%"=="y" goto top  ::anything other than "y" or ENTER will exit
If "%another%"=="" goto top
Cls
Echo Press ENTER to Exit
Pause >nul
Exit

:alreadyExist
Cls
Echo Folder Already Exists
Echo Press ENTER to Choose a Different Name
Pause >nul
Goto top

_________________________________________________________

The second is a program that asks for both the folder name and path that you want to make.  When entering the path name, do NOT put a back slash at the end of the path (\) or else it wont work.

 

@echo off
Title .::FOLDER CREATOR by Dan Wager::.
Color A
:top
Cls
Echo Folder name to be created?
Set /p folder=""
Cls
Echo Where Do You Want The Folder Created?
Echo example:  C:\Documents and Settings\All Users
Set /p location=""
If exist "%location%"\"%folder%" goto alreadyExist
Cls
Echo Make folder "%folder%" in %location%?
Set /p choice=""
If "%choice%"=="y" goto execute  ::"y" or ENTER will Execute command
If "%choice%"=="" goto execute
If "%choice%"=="and" goto top      ::"and" will NOT execute command
Goto top
:execute
Md "%location%"\"%folder%"
If exist "%location%"\"%folder%" goto again
Cls
Echo Folder Creation Failed...
Echo Try Again?
Set /p bad=
If "%bad%"=="y" goto top  ::anything other than "y" or ENTER will exit
If "%bad%"=="" goto top
Cls
Echo Press ENTER to Exit
Pause >nul
Exit

:again
Cls
Echo Folder Created Successfully
Echo Make Another Folder?
Set /p another=
If "%another%"=="y" goto top  ::anything other than "y" or ENTER will exit
If "%another%"=="" goto top
Cls
Echo Press ENTER to Exit
Pause >nul
Exit

:alreadyExist
Cls
Echo Folder Already Exists
Echo Press ENTER to Choose Again
Pause >nul
Goto top

 

HOPE THIS HELPS!!

 


Go to the top of the page
 
+Quote Post

4 Pages V  < 1 2 3 4 >
Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new 23 curare 10,757 Yesterday, 07:01 AM
Last post by: iG-Faisal
No New Posts   17 elevenmil 18,874 9th March 2010 - 04:56 AM
Last post by: iG-ScottAgnew
No new   29 WeaponX 12,057 18th February 2010 - 05:26 AM
Last post by: iG-Riyaz
No New Posts   7 kenjvalip 2,739 13th February 2010 - 02:28 PM
Last post by: magiccode9
No New Posts   4 lonebyrd 2,206 13th February 2010 - 04:33 AM
Last post by: iG-hh
No New Posts   3 helix 1,472 23rd January 2010 - 07:35 PM
Last post by: iG-Marcus
No New Posts   9 soleimanian 2,717 16th January 2010 - 09:27 AM
Last post by: iG-kishore negi
No New Posts   5 turbopowerdmaxsteel 2,388 11th January 2010 - 03:34 PM
Last post by: iG-great video
No new   33 NilsC 22,127 7th January 2010 - 01:17 AM
Last post by: iG-Mantvis
No New Posts   18 lorenza pietersen 6,682 4th January 2010 - 07:50 PM
Last post by: iG-Cassandra
No new   20 vicky99 9,665 3rd January 2010 - 03:23 PM
Last post by: iG-raju garu
No New Posts   6 soleimanian 3,867 31st December 2009 - 03:13 AM
Last post by: iG-Jason
No New Posts 8 santed 518 23rd December 2009 - 10:53 AM
Last post by: iG-Danny
No new   19 bongbong18 8,025 7th December 2009 - 06:23 AM
Last post by: iG-zainal
No New Posts   3 SunBlind 3,418 26th November 2009 - 02:41 PM
Last post by: iGuest


Web Hosting Powered by ComputingHost.com.
HONESTY ROCKS! truth rules.
Creative Commons License