2015-02-11 77 views

回答

1

也許你缺少一個反斜槓

嘗試

移動C:\ Sourcefoldername \ *。* \\瀚士威。\ E

+0

你的意思是移動C:\ Sourcefoldername * * \\瀚士威。\ E – 2015-02-11 19:59:27

+0

是的,我想我所做的鍵入 「\\」,奇怪的。我不知道如果反斜槓是一個轉義字符。這裏。 – dsum 2015-02-11 20:00:42

+0

在源文件夾名稱後面也沒有斜槓,請嘗試此操作c:\ Sourcefoldername \ * \\ homeserver \ e – 2015-02-11 20:02:22

0

這裏是我們如何做到這一點對我們的網絡在我工作的地點

REM Do a net use command just to see what's mapped 
net use 



REM Delete all network connections before we start 
net use * /del /yes 




REM Do another net use to make sure the connections are gone 
net use 

REM Map network connections to use in the script 
net use S: \\folder\dir password /USER:user /persistent:no 
net use T: \\folder\dir /persistent:no 

REM Run the net use command to make sure everything is mapped correctly 
net use 

REM set the sourcedir variable to point to the directory you want to send it to 
set sourcedir=S: 

REM set the destdir variable to point to the mapped directory 
set destdir=T:\folder\sub-folder\directory 

move %sourcedir%\W* %destdir%\ 


REM Clean up by deleting all network connections before ending 
net use * /del /yes 

REM Run the net use command to make sure everything is disconnected 
net use 
+0

move C:\ sourcefolder \ * Y:\ sourceDestination 命令不起作用。 Jakepens71我試過你的選擇,但似乎無法通過設置sourcedir和destdir。我現在在CMD中運行這一切,以確保它在我將它放入.bat文件之前能夠正常工作。我做 集sourcedir = C:\完成 然後 集DESTDIR = E:\ 當我做這個沒什麼表明,它設定的目錄... 後來我做 舉動%sourcedir%\%DESTDIR%\ 在這一點上它說系統找不到指定的文件。 @ jakepens71 – 2015-02-11 20:58:16

+0

我不相信你需要在那裏的驅動器路徑的字母。只需簡單地移動%sourcedir%\ W *%destdir%\ – Jakepens71 2015-02-12 12:11:48

0

你需要把整個路徑,和w第i個A *是足夠

move [source folder] [destination folder] 

move C:\sourcefolder\* Y:\sourceDestination 
相關問題