hi all, i a newbie to scripting and am trying to figure out how to run a script from the command line. only problem is i don't what/where the command line is. could somebody get me pointed in the right direction?
thanks
bryan
command line script
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: command line script
Check out this:
To see the attached files, you need to log into the forum.
FAQ | XY News RSS | XY X
-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: command line script
By "The command line" is meant the WindowsTM command line / command prompt / DOS-Box.bwhatch2 wrote:hi all, i a newbie to scripting and am trying to figure out how to run a script from the command line. only problem is i don't what/where the command line is. could somebody get me pointed in the right direction?
thanks
bryan
You can access them in several ways:
* Start > Run > your command
* Press Win-Key+R
* Start > Programs > Accessories > command prompt
* Create an shortcut to an executable and modify the target field ( see picture)
* Use the address bar from XYplorer by using one or two leading !-signs as modifier.
* Open an DOS-Box with button in XYplorer menu bar.
* create an batch.cmd and write the commands in there.
Then you can use the XYplorer "command line" switches/commands like:
Code: Select all
Command line switches
The overall command line format is:
X:\path\to\XYplorer.exe[ /win=min|max|normal][ /ini=myini][ mystartpath]
You can run a script on startup directly from the command line.
The switch is /script=[script resource], where [script resource] can be:
1) The path to a script file (commonly called *.xys).
For example XYplorer.exe /script=test would run the file <xyscripts>\test.xys on startup.
2) A script. It must be preceded by ::, and it must not contain double quotes
or other characters that might lead to problems when parsing the command line.
For example XYplorer.exe /script="::msg 'Welcome to XY!';"
-
bwhatch2
- Posts: 13
- Joined: 03 Apr 2011 07:21
Re: command line script
THANKS! i got it now and am up and running.By "The command line" is meant the WindowsTM command line / command prompt / DOS-Box.
You can access them in several ways:
XYplorer Beta Club