Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Move Syntax Question

Featured Replies

I'm having trouble moving one particular item within the start menu. The item in question is Alcohol 120%. I'm using the command below to move the folder:

MOVE "%ALLUSERSPROFILE%\Start Menu\Programs\Alcohol 120%" "%ALLUSERSPROFILE%\Start Menu\Programs\Burning Apps"

However when I run the batch file I get the following error:

MOVE "C:\Documents and Settings\All Users\Start Menu\Programs\Alcohol 120ALLUSERSPROFILE\Start Menu\Programs\Burning Apps"
The system cannot find the path specified.

The % in the Folder name seems to be causing the problem. Any idea how I can get it to work? Thanks.

Edited by Spaceboy


You can try renaming the folder name before you do the move.

Dim Act, Fso, AU_Prog : Set Act = CreateObject("WScript.Shell")

Dim Fld1, fld2 : Set Fso = CreateObject("Scripting.FileSystemObject")

AU_Prog = Act.SpecialFolders.Item("AllUsersPrograms")

Fld1 = AU_Prog & "\Alcohol 120%"

Fld2 = AU_Prog & "\Burning Apps"

If Not Fso.FolderExists(Fld1) Then

Act.Popup "Error Cannot Find This" & vbCrLf & Fld1, 7, "Error Folder", 0 + 32

Else

Fso.MoveFolder(Fld1),(Fld2)

End If

Tested this script and it worked on my computer

If you want it in a 2 lines

Dim Act, Fso, AU_Prog : Set Act = CreateObject("WScript.Shell") : Dim Fld1, fld2 : Set Fso = CreateObject("Scripting.FileSystemObject") : AU_Prog = Act.SpecialFolders.Item("AllUsersPrograms") : Fld1 = AU_Prog & "\Alcohol 120%" : Fld2 = AU_Prog & "\Burning Apps"

If Not Fso.FolderExists(Fld1) Then Act.Popup "Error Cannot Find This" & vbCrLf & Fld1, 7, "Error Folder", 0 + 32 Else Fso.MoveFolder(Fld1),(Fld2) End If

Saves As MoveAlcohol.vbs

Edited by gunsmokingman

The line you provided should work fine in a cmd window, however in a batch file try:

@echo off
move "%AllUsersProfile%\Start Menu\Programs\Alcohol 120%%" "%AllUsersProfile%\Start Menu\Programs\Burning Apps"
goto :eof

Yzöwl beat me to the punch: You have to escape %, since it's a special character just like \.

%% = %

\\ = \

  • Author
The line you provided should work fine in a cmd window, however in a batch file try:
@echo off
move "%AllUsersProfile%\Start Menu\Programs\Alcohol 120%%" "%AllUsersProfile%\Start Menu\Programs\Burning Apps"
goto :eof

Thanks. That fixed it :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.