Page 1 of 1 1
Topic Options
#59851 - 2001-10-16 02:39 PM win 95 move command, with shell
Darren_W Offline
Hey THIS is FUN
*****

Registered: 2001-10-10
Posts: 208
Loc: Bristol, England
Hi,

I am trying to move documents from local computer documents directory to a location on my server if I use:

move /y "c:\my documents\*.doc" "\\NTSERVER1\cdrives$\pc_010\"

on the command line it works fine and moves all the files with the extension of doc to the appropiate directory, in conjunction with the shell command I have with no luck when I used this command:

shell "%comspec% /c move /y c:\my documents\*.doc \\NTSERVER1\cdrives$\" + @WKSTA + "\"

The computer knows what @WKSTA as it has previously created the directory.

Any ideas, do I need to put more speech marks in?

Darren


[EMAIL]null[/EMAIL]

_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.

Top
#59852 - 2001-10-16 03:13 PM Re: win 95 move command, with shell
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hmmm ...
seems to be a quotation puzzle ...

If
move /y "c:\my documents\*.doc" "\\NTSERVER1\cdrives$\pc_010\"

works on the commandline ,

this should work in Kix :

code:

shell '%ComSpec /c move /y "c:\my documents\*.doc" "\\NTSERVER1\cdrives$\'+@wksta+'\"'

Jochen

ps. note the single quotation wraps the shell string (w/o @wksta) so that the double quotation is treated as part of the string !

[ 16 October 2001: Message edited by: jpols ]

_________________________



Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.05 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org