Jump to content

%1 Issues.


Recommended Posts

Guest Kardon Coupé
Posted

Dear All,

 

I was wondering is there only %1 available when changing Folder Options/File

Types?

 

I'm noticing the %1 passed the whole filename including folder, I think this

is causing a program with the DOS program I'm using and I was wondering if

there is anyway of just passing the filename?

 

Hope someone can help..

 

Regards

Paul.

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest Kardon Coupé
Posted

Re: %1 Issues.

 

So, a bit of research turned up %~nx1 which works....

 

got it from.

http://windowsitpro.com/article/articleid/13443/how-do-i-pass-parameters-to-a-batch-file.html

 

"Kardon Coupé" <prefer.to@readon.newsgroups> wrote in message

news:%23t9ddr07IHA.4928@TK2MSFTNGP05.phx.gbl...

> Dear All,

>

> I was wondering is there only %1 available when changing Folder

> Options/File Types?

>

> I'm noticing the %1 passed the whole filename including folder, I think

> this is causing a program with the DOS program I'm using and I was

> wondering if there is anyway of just passing the filename?

>

> Hope someone can help..

>

> Regards

> Paul.

>

Guest AlmostBob
Posted

Re: %1 Issues.

 

%~nx1 = $~s1 = short file name

http://www.ss64.com/ntsyntax/parameters.html

 

--

Adaware http://www.lavasoft.de

spybot http://www.safer-networking.org

AVG free antivirus http://www.grisoft.com

Etrust/Vet/CA.online Antivirus scan

http://www3.ca.com/securityadvisor/virusinfo/scan.aspx

Panda online AntiVirus scan http://www.pandasoftware.com/ActiveScan/

Catalog of removal tools (1)

http://www.pandasoftware.com/download/utilities/

Catalog of removal tools (2)

http://www3.ca.com/securityadvisor/newsinfo/collateral.aspx?CID=40387

Blocking Unwanted Parasites with a Hosts file

http://mvps.org/winhelp2002/hosts.htm

links provided as a courtesy, read all instructions on the pages before use

 

Grateful thanks to the authors and webmasters

_

 

"Kardon Coupé" <prefer.to@readon.newsgroups> wrote in message

news:e2IE%23N17IHA.2016@TK2MSFTNGP02.phx.gbl...

> So, a bit of research turned up %~nx1 which works....

>

> got it from.

> http://windowsitpro.com/article/articleid/13443/how-do-i-pass-parameters-to-a-batch-file.html

>

> "Kardon Coupé" <prefer.to@readon.newsgroups> wrote in message

> news:%23t9ddr07IHA.4928@TK2MSFTNGP05.phx.gbl...

>> Dear All,

>>

>> I was wondering is there only %1 available when changing Folder

>> Options/File Types?

>>

>> I'm noticing the %1 passed the whole filename including folder, I think

>> this is causing a program with the DOS program I'm using and I was

>> wondering if there is anyway of just passing the filename?

>>

>> Hope someone can help..

>>

>> Regards

>> Paul.

>>

>

>


×
×
  • Create New...